run whitespace_format.py --add-new-line-marker-at-end-of-file --remove-trailing-whitespace --remove-trailing-empty-lines --new-line-marker=linux --normalize-non-standard-whitespace=remove on src/

This commit is contained in:
Mis012
2025-02-05 16:27:17 +01:00
parent 1d2450443e
commit ab5b600bf1
148 changed files with 9559 additions and 9529 deletions

View File

@@ -109,7 +109,7 @@ void current_activity_back_pressed(void){
jmethodID current_activity_on_back_pressed_method_id = (*env) ->GetMethodID(env, current_activity_class, "onBackPressed", "()V");
if((*env)->ExceptionCheck(env))
(*env)->ExceptionDescribe(env);
// Either a new activity was added to the backlog or the current activity's onBackPressed method was changed
if(g_list_length(activity_backlog) > 1 || handle_cache.activity.onBackPressed != current_activity_on_back_pressed_method_id){
(*env)->CallVoidMethod(env, activity_current, handle_cache.activity.onBackPressed);
@@ -222,7 +222,7 @@ static void file_dialog_callback(GObject* source_object, GAsyncResult* res, gpoi
if (file) {
char *uri = g_file_get_uri(file);
(*env)->CallVoidMethod(env, d->activity, fileChooserResultCallback, d->request_code, RESULT_OK, d->action, _JSTRING(uri));
if ((*env)->ExceptionCheck(env))
(*env)->ExceptionDescribe(env);

View File

@@ -14,11 +14,11 @@
* limitations under the License.
*/
/*
** Modified to support SQLite extensions by the SQLite developers:
** Modified to support SQLite extensions by the SQLite developers:
** sqlite-dev@sqlite.org.
*/
/*
** Rewritten from C++ to C for Android Translation Layer:
** Rewritten from C++ to C for Android Translation Layer:
*/
#include <stdio.h>
@@ -128,7 +128,7 @@ void throw_sqlite3_exception_errcode_message(JNIEnv* env, int errcode,
if (sqlite3Message) {
char *zFullmsg = sqlite3_mprintf(
"%s (code %d)%s%s", sqlite3Message, errcode,
"%s (code %d)%s%s", sqlite3Message, errcode,
(message ? ": " : ""), (message ? message : "")
);
printf("throwing new %s\n", exceptionClass);

View File

@@ -14,7 +14,7 @@
* limitations under the License.
*/
/*
** Modified to support SQLite extensions by the SQLite developers:
** Modified to support SQLite extensions by the SQLite developers:
** sqlite-dev@sqlite.org.
*/

View File

@@ -14,11 +14,11 @@
* limitations under the License.
*/
/*
** Modified to support SQLite extensions by the SQLite developers:
** Modified to support SQLite extensions by the SQLite developers:
** sqlite-dev@sqlite.org.
*/
/*
** Rewritten from C++ to C for Android Translation Layer:
** Rewritten from C++ to C for Android Translation Layer:
*/
#include <stdlib.h>
@@ -69,14 +69,14 @@ static const int BUSY_TIMEOUT_MS = 2500;
/*
** This function is a collation sequence callback equivalent to the built-in
** BINARY sequence.
** BINARY sequence.
**
** Stock Android uses a modified version of sqlite3.c that calls out to a module
** named "sqlite3_android" to add extra built-in collations and functions to
** all database handles. Specifically, collation sequence "LOCALIZED". For now,
** this module does not include sqlite3_android (since it is difficult to build
** with the NDK only). Instead, this function is registered as "LOCALIZED" for all
** new database handles.
** new database handles.
*/
static int coll_localized(
void *not_used,
@@ -585,17 +585,17 @@ static jboolean setWindowNumColumns(
}
/*
** This method has been rewritten for org.sqlite.database.*. The original
** This method has been rewritten for org.sqlite.database.*. The original
** android implementation used the C++ interface to populate a CursorWindow
** object. Since the NDK does not export this interface, we invoke the Java
** interface using standard JNI methods to do the same thing.
**
** This function executes the SQLite statement object passed as the 4th
** This function executes the SQLite statement object passed as the 4th
** argument and copies one or more returned rows into the CursorWindow
** object passed as the 5th argument. The set of rows copied into the
** object passed as the 5th argument. The set of rows copied into the
** CursorWindow is always contiguous.
**
** The only row that *must* be copied into the CursorWindow is row
** The only row that *must* be copied into the CursorWindow is row
** iRowRequired. Ideally, all rows from iRowStart through to the end
** of the query are copied into the CursorWindow. If this is not possible
** (CursorWindow objects have a finite capacity), some compromise position
@@ -607,11 +607,11 @@ static jboolean setWindowNumColumns(
**
** where iStart is the index of the first row copied into the CursorWindow.
** If the countAllRows argument is true, nRow is the total number of rows
** returned by the query. Otherwise, nRow is one greater than the index of
** returned by the query. Otherwise, nRow is one greater than the index of
** the last row copied into the CursorWindow.
*/
JNIEXPORT jlong JNICALL Java_android_database_sqlite_SQLiteConnection_nativeExecuteForCursorWindow(
JNIEnv *env,
JNIEnv *env,
jclass clazz,
jlong connectionPtr, /* Pointer to SQLiteConnection C++ object */
jlong statementPtr, /* Pointer to sqlite3_stmt object */

View File

@@ -14,11 +14,11 @@
* limitations under the License.
*/
/*
** Modified to support SQLite extensions by the SQLite developers:
** Modified to support SQLite extensions by the SQLite developers:
** sqlite-dev@sqlite.org.
*/
/*
** Rewritten from C++ to C for Android Translation Layer:
** Rewritten from C++ to C for Android Translation Layer:
*/
#include <jni.h>

View File

@@ -146,7 +146,7 @@ JNIEXPORT jlong JNICALL Java_android_graphics_Path_native_1transform(JNIEnv *env
JNIEXPORT void JNICALL Java_android_graphics_Path_native_1add_1rect(JNIEnv *env, jclass this, jlong builder_ptr, jfloat left, jfloat top, jfloat right, jfloat bottom)
{
gsk_path_builder_add_rect(_PTR(builder_ptr), &GRAPHENE_RECT_INIT(left, top, right-left, bottom-top));
gsk_path_builder_add_rect(_PTR(builder_ptr), &GRAPHENE_RECT_INIT(left, top, right-left, bottom-top));
}
JNIEXPORT void JNICALL Java_android_graphics_Path_native_1get_1bounds(JNIEnv *env, jclass this, jlong path_ptr, jobject bounds)

View File

@@ -78,17 +78,17 @@ typedef struct ANativeActivity {
* Path to this application's internal data directory.
*/
const char* internalDataPath;
/**
* Path to this application's external (removable/mountable) data directory.
*/
const char* externalDataPath;
/**
* The platform's SDK version code.
*/
int32_t sdkVersion;
/**
* This is the native instance of the application. It is not used by
* the framework, but can be set by the application to its own instance
@@ -122,13 +122,13 @@ typedef struct ANativeActivityCallbacks {
* for more information.
*/
void (*onStart)(ANativeActivity* activity);
/**
* NativeActivity has resumed. See Java documentation for Activity.onResume()
* for more information.
*/
void (*onResume)(ANativeActivity* activity);
/**
* Framework is asking NativeActivity to save its current instance state.
* See Java documentation for Activity.onSaveInstanceState() for more
@@ -139,19 +139,19 @@ typedef struct ANativeActivityCallbacks {
* entities (pointers to memory, file descriptors, etc).
*/
void* (*onSaveInstanceState)(ANativeActivity* activity, size_t* outSize);
/**
* NativeActivity has paused. See Java documentation for Activity.onPause()
* for more information.
*/
void (*onPause)(ANativeActivity* activity);
/**
* NativeActivity has stopped. See Java documentation for Activity.onStop()
* for more information.
*/
void (*onStop)(ANativeActivity* activity);
/**
* NativeActivity is being destroyed. See Java documentation for Activity.onDestroy()
* for more information.
@@ -163,7 +163,7 @@ typedef struct ANativeActivityCallbacks {
* for example, to pause a game when it loses input focus.
*/
void (*onWindowFocusChanged)(ANativeActivity* activity, int hasFocus);
/**
* The drawing window for this native activity has been created. You
* can use the given native window object to start drawing.
@@ -194,13 +194,13 @@ typedef struct ANativeActivityCallbacks {
* returning from here.
*/
void (*onNativeWindowDestroyed)(ANativeActivity* activity, ANativeWindow* window);
/**
* The input queue for this native activity's window has been created.
* You can use the given input queue to start retrieving input events.
*/
void (*onInputQueueCreated)(ANativeActivity* activity, AInputQueue* queue);
/**
* The input queue for this native activity's window is being destroyed.
* You should no longer try to reference this object upon returning from this
@@ -310,4 +310,3 @@ void ANativeActivity_hideSoftInput(ANativeActivity* activity, uint32_t flags);
#endif
#endif // ANDROID_NATIVE_ACTIVITY_H

View File

@@ -29,4 +29,4 @@ void android_layout_set_params(AndroidLayout *layout, int width, int height);
void widget_set_needs_allocation(GtkWidget *widget);
#endif // ANDROID_LAYOUT_H
#endif // ANDROID_LAYOUT_H

View File

@@ -181,7 +181,7 @@ static gboolean on_event(GtkEventControllerLegacy *event_controller, GdkEvent *e
pointers[id].index = pointer_index;
pointers[id].id = id;
}
pointers[id].coord_x = x;
pointers[id].coord_y = y;
pointers[id].raw_x = x;

View File

@@ -34,7 +34,7 @@ static void wrapper_widget_get_property (GObject *object, guint property_id, GVa
switch ((WrapperWidgetProperty) property_id)
{
case ATL_ID:
case ATL_ID:
{
jint id_jint = (*env)->CallIntMethod(env, jobj, handle_cache.view.getId);
if((*env)->ExceptionCheck(env))
@@ -83,7 +83,7 @@ static void wrapper_widget_get_property (GObject *object, guint property_id, GVa
(*env)->ReleaseStringUTFChars(env, super_classes_names_obj, super_classes_names);
break;
}
default:
G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
@@ -220,13 +220,13 @@ static void wrapper_widget_class_init(WrapperWidgetClass *class)
object_class->set_property = wrapper_widget_set_property;
object_class->get_property = wrapper_widget_get_property;
// According to testing, these properties are not evaluated till we open the GtkInspector
wrapper_widget_properties[ATL_ID] = g_param_spec_string("ATL-id", "ATL: ID", "ID of the component", "", G_PARAM_READABLE);
wrapper_widget_properties[ATL_ID_NAME] = g_param_spec_string("ATL-id-name", "ATL: ID name", "Name of the ID of the component", "", G_PARAM_READABLE);
wrapper_widget_properties[ATL_CLASS_NAME] = g_param_spec_string("ATL-class-name", "ATL: Class name", "Name of the class of the component", "", G_PARAM_READABLE);
wrapper_widget_properties[ATL_SUPER_CLASS_NAMES] = g_param_spec_string("ATL-superclasses-names", "ATL: Super classes names", "Names of all the superclasses of the component class", "", G_PARAM_READABLE);
g_object_class_install_properties (object_class, N_PROPERTIES, wrapper_widget_properties);
}

View File

@@ -38,11 +38,11 @@ static void web_view_load_changed(WebKitWebView *web_view, WebKitLoadEvent load_
JNIEXPORT jlong JNICALL Java_android_webkit_WebView_native_1constructor(JNIEnv *env, jobject this, jobject context, jobject attrs)
{
/*
* many apps use webview just for fingerprinting or displaying ads, which seems like
* a waste of resources even if we deal with fingerprinting and ads in some other way
* in the future.
*/
/*
* many apps use webview just for fingerprinting or displaying ads, which seems like
* a waste of resources even if we deal with fingerprinting and ads in some other way
* in the future.
*/
if(!getenv("ATL_UGLY_ENABLE_WEBVIEW"))
return Java_android_view_View_native_1constructor(env, this, context, attrs);

View File

@@ -4,7 +4,7 @@ import android.content.Context;
import android.os.Bundle;
public class AccountManager {
public static AccountManager get(Context context) {
return new AccountManager();
}

View File

@@ -11,5 +11,5 @@ public class AnimatorInflater {
public static StateListAnimator loadStateListAnimator(Context context, int resId) {
return new StateListAnimator();
}
}

View File

@@ -1,5 +1,5 @@
package android.animation;
public class ArgbEvaluator {
}

View File

@@ -1,7 +1,7 @@
package android.animation;
public class LayoutTransition {
public void enableTransitionType(int transitionType) {}
public void setStartDelay(int transitionType, long startDelay) {}

View File

@@ -1,5 +1,5 @@
package android.annotation;
public @interface SystemApi {
}

View File

@@ -83,7 +83,7 @@ public class Activity extends ContextThemeWrapper implements Window.Callback, La
*
* @param className class name of activity or null
* @return instance of main activity class
* @throws Exception
* @throws Exception
*/
private static Activity createMainActivity(String className, long native_window, String uriString) throws Exception {
Uri uri = uriString != null ? Uri.parse(uriString) : null;

View File

@@ -1,5 +1,5 @@
package android.app;
public class DownloadManager {
}

View File

@@ -1,5 +1,5 @@
package android.app;
public class SearchManager {
}

View File

@@ -3,7 +3,7 @@ package android.app;
import android.content.res.Configuration;
public class UiModeManager {
public int getCurrentModeType() {
return Configuration.UI_MODE_TYPE_NORMAL;
}

Some files were not shown because too many files have changed in this diff Show More