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"); jmethodID current_activity_on_back_pressed_method_id = (*env) ->GetMethodID(env, current_activity_class, "onBackPressed", "()V");
if((*env)->ExceptionCheck(env)) if((*env)->ExceptionCheck(env))
(*env)->ExceptionDescribe(env); (*env)->ExceptionDescribe(env);
// Either a new activity was added to the backlog or the current activity's onBackPressed method was changed // 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){ 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); (*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) { if (file) {
char *uri = g_file_get_uri(file); char *uri = g_file_get_uri(file);
(*env)->CallVoidMethod(env, d->activity, fileChooserResultCallback, d->request_code, RESULT_OK, d->action, _JSTRING(uri)); (*env)->CallVoidMethod(env, d->activity, fileChooserResultCallback, d->request_code, RESULT_OK, d->action, _JSTRING(uri));
if ((*env)->ExceptionCheck(env)) if ((*env)->ExceptionCheck(env))
(*env)->ExceptionDescribe(env); (*env)->ExceptionDescribe(env);

View file

@ -14,11 +14,11 @@
* limitations under the License. * 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. ** 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> #include <stdio.h>
@ -128,7 +128,7 @@ void throw_sqlite3_exception_errcode_message(JNIEnv* env, int errcode,
if (sqlite3Message) { if (sqlite3Message) {
char *zFullmsg = sqlite3_mprintf( char *zFullmsg = sqlite3_mprintf(
"%s (code %d)%s%s", sqlite3Message, errcode, "%s (code %d)%s%s", sqlite3Message, errcode,
(message ? ": " : ""), (message ? message : "") (message ? ": " : ""), (message ? message : "")
); );
printf("throwing new %s\n", exceptionClass); printf("throwing new %s\n", exceptionClass);

View file

@ -14,7 +14,7 @@
* limitations under the License. * 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. ** sqlite-dev@sqlite.org.
*/ */

View file

@ -14,11 +14,11 @@
* limitations under the License. * 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. ** 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> #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 ** 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 ** 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 ** named "sqlite3_android" to add extra built-in collations and functions to
** all database handles. Specifically, collation sequence "LOCALIZED". For now, ** all database handles. Specifically, collation sequence "LOCALIZED". For now,
** this module does not include sqlite3_android (since it is difficult to build ** 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 ** with the NDK only). Instead, this function is registered as "LOCALIZED" for all
** new database handles. ** new database handles.
*/ */
static int coll_localized( static int coll_localized(
void *not_used, 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 ** android implementation used the C++ interface to populate a CursorWindow
** object. Since the NDK does not export this interface, we invoke the Java ** object. Since the NDK does not export this interface, we invoke the Java
** interface using standard JNI methods to do the same thing. ** 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 ** 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. ** 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 ** iRowRequired. Ideally, all rows from iRowStart through to the end
** of the query are copied into the CursorWindow. If this is not possible ** of the query are copied into the CursorWindow. If this is not possible
** (CursorWindow objects have a finite capacity), some compromise position ** (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. ** 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 ** 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. ** the last row copied into the CursorWindow.
*/ */
JNIEXPORT jlong JNICALL Java_android_database_sqlite_SQLiteConnection_nativeExecuteForCursorWindow( JNIEXPORT jlong JNICALL Java_android_database_sqlite_SQLiteConnection_nativeExecuteForCursorWindow(
JNIEnv *env, JNIEnv *env,
jclass clazz, jclass clazz,
jlong connectionPtr, /* Pointer to SQLiteConnection C++ object */ jlong connectionPtr, /* Pointer to SQLiteConnection C++ object */
jlong statementPtr, /* Pointer to sqlite3_stmt object */ jlong statementPtr, /* Pointer to sqlite3_stmt object */

View file

@ -14,11 +14,11 @@
* limitations under the License. * 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. ** 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> #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) 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) 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. * Path to this application's internal data directory.
*/ */
const char* internalDataPath; const char* internalDataPath;
/** /**
* Path to this application's external (removable/mountable) data directory. * Path to this application's external (removable/mountable) data directory.
*/ */
const char* externalDataPath; const char* externalDataPath;
/** /**
* The platform's SDK version code. * The platform's SDK version code.
*/ */
int32_t sdkVersion; int32_t sdkVersion;
/** /**
* This is the native instance of the application. It is not used by * 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 * the framework, but can be set by the application to its own instance
@ -122,13 +122,13 @@ typedef struct ANativeActivityCallbacks {
* for more information. * for more information.
*/ */
void (*onStart)(ANativeActivity* activity); void (*onStart)(ANativeActivity* activity);
/** /**
* NativeActivity has resumed. See Java documentation for Activity.onResume() * NativeActivity has resumed. See Java documentation for Activity.onResume()
* for more information. * for more information.
*/ */
void (*onResume)(ANativeActivity* activity); void (*onResume)(ANativeActivity* activity);
/** /**
* Framework is asking NativeActivity to save its current instance state. * Framework is asking NativeActivity to save its current instance state.
* See Java documentation for Activity.onSaveInstanceState() for more * See Java documentation for Activity.onSaveInstanceState() for more
@ -139,19 +139,19 @@ typedef struct ANativeActivityCallbacks {
* entities (pointers to memory, file descriptors, etc). * entities (pointers to memory, file descriptors, etc).
*/ */
void* (*onSaveInstanceState)(ANativeActivity* activity, size_t* outSize); void* (*onSaveInstanceState)(ANativeActivity* activity, size_t* outSize);
/** /**
* NativeActivity has paused. See Java documentation for Activity.onPause() * NativeActivity has paused. See Java documentation for Activity.onPause()
* for more information. * for more information.
*/ */
void (*onPause)(ANativeActivity* activity); void (*onPause)(ANativeActivity* activity);
/** /**
* NativeActivity has stopped. See Java documentation for Activity.onStop() * NativeActivity has stopped. See Java documentation for Activity.onStop()
* for more information. * for more information.
*/ */
void (*onStop)(ANativeActivity* activity); void (*onStop)(ANativeActivity* activity);
/** /**
* NativeActivity is being destroyed. See Java documentation for Activity.onDestroy() * NativeActivity is being destroyed. See Java documentation for Activity.onDestroy()
* for more information. * for more information.
@ -163,7 +163,7 @@ typedef struct ANativeActivityCallbacks {
* for example, to pause a game when it loses input focus. * for example, to pause a game when it loses input focus.
*/ */
void (*onWindowFocusChanged)(ANativeActivity* activity, int hasFocus); void (*onWindowFocusChanged)(ANativeActivity* activity, int hasFocus);
/** /**
* The drawing window for this native activity has been created. You * The drawing window for this native activity has been created. You
* can use the given native window object to start drawing. * can use the given native window object to start drawing.
@ -194,13 +194,13 @@ typedef struct ANativeActivityCallbacks {
* returning from here. * returning from here.
*/ */
void (*onNativeWindowDestroyed)(ANativeActivity* activity, ANativeWindow* window); void (*onNativeWindowDestroyed)(ANativeActivity* activity, ANativeWindow* window);
/** /**
* The input queue for this native activity's window has been created. * The input queue for this native activity's window has been created.
* You can use the given input queue to start retrieving input events. * You can use the given input queue to start retrieving input events.
*/ */
void (*onInputQueueCreated)(ANativeActivity* activity, AInputQueue* queue); void (*onInputQueueCreated)(ANativeActivity* activity, AInputQueue* queue);
/** /**
* The input queue for this native activity's window is being destroyed. * 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 * 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
#endif // ANDROID_NATIVE_ACTIVITY_H #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); 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].index = pointer_index;
pointers[id].id = id; pointers[id].id = id;
} }
pointers[id].coord_x = x; pointers[id].coord_x = x;
pointers[id].coord_y = y; pointers[id].coord_y = y;
pointers[id].raw_x = x; 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) switch ((WrapperWidgetProperty) property_id)
{ {
case ATL_ID: case ATL_ID:
{ {
jint id_jint = (*env)->CallIntMethod(env, jobj, handle_cache.view.getId); jint id_jint = (*env)->CallIntMethod(env, jobj, handle_cache.view.getId);
if((*env)->ExceptionCheck(env)) 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); (*env)->ReleaseStringUTFChars(env, super_classes_names_obj, super_classes_names);
break; break;
} }
default: default:
G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec); 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->set_property = wrapper_widget_set_property;
object_class->get_property = wrapper_widget_get_property; object_class->get_property = wrapper_widget_get_property;
// According to testing, these properties are not evaluated till we open the GtkInspector // 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] = 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_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_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); 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); 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) 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 * 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 * a waste of resources even if we deal with fingerprinting and ads in some other way
* in the future. * in the future.
*/ */
if(!getenv("ATL_UGLY_ENABLE_WEBVIEW")) if(!getenv("ATL_UGLY_ENABLE_WEBVIEW"))
return Java_android_view_View_native_1constructor(env, this, context, attrs); 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; import android.os.Bundle;
public class AccountManager { public class AccountManager {
public static AccountManager get(Context context) { public static AccountManager get(Context context) {
return new AccountManager(); return new AccountManager();
} }

View file

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

View file

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

View file

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

View file

@ -1,5 +1,5 @@
package android.annotation; package android.annotation;
public @interface SystemApi { 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 * @param className class name of activity or null
* @return instance of main activity class * @return instance of main activity class
* @throws Exception * @throws Exception
*/ */
private static Activity createMainActivity(String className, long native_window, String uriString) throws Exception { private static Activity createMainActivity(String className, long native_window, String uriString) throws Exception {
Uri uri = uriString != null ? Uri.parse(uriString) : null; Uri uri = uriString != null ? Uri.parse(uriString) : null;

View file

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

View file

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

View file

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

View file

@ -14,5 +14,5 @@ public class WallpaperManager {
} }
private static native void set_bitmap(long texture); private static native void set_bitmap(long texture);
} }

View file

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

View file

@ -6,4 +6,3 @@ final public class JobWorkItem {
public JobWorkItem(Intent intent) { public JobWorkItem(Intent intent) {
} }
} }

View file

@ -1,6 +1,6 @@
package android.bluetooth; package android.bluetooth;
public class BluetoothProfile { public class BluetoothProfile {
public interface ServiceListener {} public interface ServiceListener {}
} }

View file

@ -3,7 +3,7 @@ package android.content;
public class ClipData { public class ClipData {
String text; String text;
public static ClipData newPlainText(CharSequence label, CharSequence text) { public static ClipData newPlainText(CharSequence label, CharSequence text) {
ClipData clip = new ClipData(); ClipData clip = new ClipData();
clip.text = text.toString(); clip.text = text.toString();

View file

@ -10,7 +10,7 @@ import android.net.Uri;
import java.util.Iterator; import java.util.Iterator;
public class IntentFilter { public class IntentFilter {
private List<String> actions = new ArrayList<>(); private List<String> actions = new ArrayList<>();
private Set<String> categories = new HashSet<>(); private Set<String> categories = new HashSet<>();
private List<String> dataSchemes = new ArrayList<>(); private List<String> dataSchemes = new ArrayList<>();

View file

@ -1674,7 +1674,7 @@ public class PackageManager {
* to modify the data returned. * to modify the data returned.
* *
* @return ProviderInfo containing information about the service. * @return ProviderInfo containing information about the service.
* @throws Exception * @throws Exception
* *
* @see #GET_META_DATA * @see #GET_META_DATA
* @see #GET_SHARED_LIBRARY_FILES * @see #GET_SHARED_LIBRARY_FILES
@ -2402,7 +2402,7 @@ public class PackageManager {
* *
* @return ContentProviderInfo Information about the provider, if found, * @return ContentProviderInfo Information about the provider, if found,
* else null. * else null.
* @throws Exception * @throws Exception
*/ */
public ProviderInfo resolveContentProvider(String authority, int flags) { public ProviderInfo resolveContentProvider(String authority, int flags) {
for (PackageParser.Provider p : Context.pkg.providers) { for (PackageParser.Provider p : Context.pkg.providers) {

View file

@ -56,4 +56,4 @@ public class PackageUserState {
? new HashSet<String>(o.enabledComponents) ? new HashSet<String>(o.enabledComponents)
: null; : null;
} }
} }

View file

@ -481,4 +481,4 @@ public abstract class AbstractCursor implements CrossProcessCursor {
} }
} }
} }
} }

View file

@ -133,7 +133,7 @@ public abstract class AbstractWindowedCursor extends AbstractCursor {
@Override @Override
protected void checkPosition() { protected void checkPosition() {
super.checkPosition(); super.checkPosition();
if (mWindow == null) { if (mWindow == null) {
throw new /*StaleDataException*/RuntimeException("Attempting to access a closed CursorWindow." + throw new /*StaleDataException*/RuntimeException("Attempting to access a closed CursorWindow." +
"Most probable cause: cursor is deactivated prior to calling this method."); "Most probable cause: cursor is deactivated prior to calling this method.");
@ -206,4 +206,4 @@ public abstract class AbstractWindowedCursor extends AbstractCursor {
super.onDeactivateOrClose(); super.onDeactivateOrClose();
closeWindow(); closeWindow();
} }
} }

View file

@ -23,11 +23,11 @@ public final class CharArrayBuffer {
public CharArrayBuffer(int size) { public CharArrayBuffer(int size) {
data = new char[size]; data = new char[size];
} }
public CharArrayBuffer(char[] buf) { public CharArrayBuffer(char[] buf) {
data = buf; data = buf;
} }
public char[] data; // In and out parameter public char[] data; // In and out parameter
public int sizeCopied; // Out parameter public int sizeCopied; // Out parameter
} }

View file

@ -88,4 +88,4 @@ public class ContentObservable extends Observable<ContentObserver> {
} }
} }
} }
} }

View file

@ -248,4 +248,4 @@ public abstract class ContentObserver {
}); });
} }
} }
} }

View file

@ -74,5 +74,5 @@ public interface CrossProcessCursor extends Cursor {
* @param newPosition The position that we're moving to. * @param newPosition The position that we're moving to.
* @return True if the move is successful, false otherwise. * @return True if the move is successful, false otherwise.
*/ */
boolean onMove(int oldPosition, int newPosition); boolean onMove(int oldPosition, int newPosition);
} }

View file

@ -14,7 +14,7 @@
* limitations under the License. * 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. ** sqlite-dev@sqlite.org.
*/ */
@ -66,7 +66,7 @@ public final class DefaultDatabaseErrorHandler implements DatabaseErrorHandler {
if (!dbObj.isOpen()) { if (!dbObj.isOpen()) {
// database files are not even openable. delete this database file. // database files are not even openable. delete this database file.
// NOTE if the database has attached databases, then any of them could be corrupt. // NOTE if the database has attached databases, then any of them could be corrupt.
// and not deleting all of them could cause corrupted database file to remain and // and not deleting all of them could cause corrupted database file to remain and
// make the application crash on database open operation. To avoid this problem, // make the application crash on database open operation. To avoid this problem,
// the application should provide its own {@link DatabaseErrorHandler} impl class // the application should provide its own {@link DatabaseErrorHandler} impl class
// to delete ALL files of the database (including the attached databases). // to delete ALL files of the database (including the attached databases).

View file

@ -14,7 +14,7 @@
* limitations under the License. * 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. ** sqlite-dev@sqlite.org.
*/ */

View file

@ -14,7 +14,7 @@
* limitations under the License. * 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. ** sqlite-dev@sqlite.org.
*/ */

View file

@ -14,7 +14,7 @@
* limitations under the License. * 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. ** sqlite-dev@sqlite.org.
*/ */

View file

@ -14,7 +14,7 @@
* limitations under the License. * 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. ** sqlite-dev@sqlite.org.
*/ */

View file

@ -14,7 +14,7 @@
* limitations under the License. * 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. ** sqlite-dev@sqlite.org.
*/ */

View file

@ -14,7 +14,7 @@
* limitations under the License. * 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. ** sqlite-dev@sqlite.org.
*/ */

View file

@ -14,7 +14,7 @@
* limitations under the License. * 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. ** sqlite-dev@sqlite.org.
*/ */

View file

@ -14,7 +14,7 @@
* limitations under the License. * 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. ** sqlite-dev@sqlite.org.
*/ */

View file

@ -14,7 +14,7 @@
* limitations under the License. * 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. ** sqlite-dev@sqlite.org.
*/ */

View file

@ -14,7 +14,7 @@
* limitations under the License. * 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. ** sqlite-dev@sqlite.org.
*/ */

View file

@ -14,7 +14,7 @@
* limitations under the License. * 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. ** sqlite-dev@sqlite.org.
*/ */

View file

@ -14,7 +14,7 @@
* limitations under the License. * 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. ** sqlite-dev@sqlite.org.
*/ */
@ -130,10 +130,10 @@ public class SQLiteCursor extends AbstractWindowedCursor {
return mCount; return mCount;
} }
/* /*
** The AbstractWindowClass contains protected methods clearOrCreateWindow() and ** The AbstractWindowClass contains protected methods clearOrCreateWindow() and
** closeWindow(), which are used by the android.database.sqlite.* version of this ** closeWindow(), which are used by the android.database.sqlite.* version of this
** class. But, since they are marked with "@hide", the following replacement ** class. But, since they are marked with "@hide", the following replacement
** versions are required. ** versions are required.
*/ */
private void awc_clearOrCreateWindow(String name){ private void awc_clearOrCreateWindow(String name){

View file

@ -14,7 +14,7 @@
* limitations under the License. * 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. ** sqlite-dev@sqlite.org.
*/ */

View file

@ -14,7 +14,7 @@
* limitations under the License. * 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. ** sqlite-dev@sqlite.org.
*/ */
@ -1743,7 +1743,7 @@ public final class SQLiteDatabase extends SQLiteClosable {
* Returns true if the new version code is greater than the current database version. * Returns true if the new version code is greater than the current database version.
* *
* @param newVersion The new version code. * @param newVersion The new version code.
* @return True if the new version code is greater than the current database version. * @return True if the new version code is greater than the current database version.
*/ */
public boolean needUpgrade(int newVersion) { public boolean needUpgrade(int newVersion) {
return newVersion > getVersion(); return newVersion > getVersion();

View file

@ -14,7 +14,7 @@
* limitations under the License. * 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. ** sqlite-dev@sqlite.org.
*/ */

View file

@ -14,7 +14,7 @@
* limitations under the License. * 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. ** sqlite-dev@sqlite.org.
*/ */

View file

@ -14,7 +14,7 @@
* limitations under the License. * 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. ** sqlite-dev@sqlite.org.
*/ */

View file

@ -14,7 +14,7 @@
* limitations under the License. * 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. ** sqlite-dev@sqlite.org.
*/ */

View file

@ -14,7 +14,7 @@
* limitations under the License. * 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. ** sqlite-dev@sqlite.org.
*/ */

View file

@ -14,14 +14,14 @@
* limitations under the License. * 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. ** sqlite-dev@sqlite.org.
*/ */
package android.database.sqlite; package android.database.sqlite;
/** /**
* An exception that indicates that an IO error occured while accessing the * An exception that indicates that an IO error occured while accessing the
* SQLite database file. * SQLite database file.
*/ */
public class SQLiteDiskIOException extends SQLiteException { public class SQLiteDiskIOException extends SQLiteException {

View file

@ -14,7 +14,7 @@
* limitations under the License. * 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. ** sqlite-dev@sqlite.org.
*/ */

View file

@ -14,7 +14,7 @@
* limitations under the License. * 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. ** sqlite-dev@sqlite.org.
*/ */

View file

@ -14,7 +14,7 @@
* limitations under the License. * 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. ** sqlite-dev@sqlite.org.
*/ */

View file

@ -14,7 +14,7 @@
* limitations under the License. * 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. ** sqlite-dev@sqlite.org.
*/ */

View file

@ -14,7 +14,7 @@
* limitations under the License. * 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. ** sqlite-dev@sqlite.org.
*/ */

View file

@ -14,7 +14,7 @@
* limitations under the License. * 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. ** sqlite-dev@sqlite.org.
*/ */

View file

@ -14,7 +14,7 @@
* limitations under the License. * 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. ** sqlite-dev@sqlite.org.
*/ */

View file

@ -14,7 +14,7 @@
* limitations under the License. * 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. ** sqlite-dev@sqlite.org.
*/ */

View file

@ -14,7 +14,7 @@
* limitations under the License. * 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. ** sqlite-dev@sqlite.org.
*/ */

View file

@ -14,7 +14,7 @@
* limitations under the License. * 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. ** sqlite-dev@sqlite.org.
*/ */

View file

@ -14,7 +14,7 @@
* limitations under the License. * 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. ** sqlite-dev@sqlite.org.
*/ */

View file

@ -14,7 +14,7 @@
* limitations under the License. * 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. ** sqlite-dev@sqlite.org.
*/ */

View file

@ -14,7 +14,7 @@
* limitations under the License. * 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. ** sqlite-dev@sqlite.org.
*/ */

View file

@ -14,7 +14,7 @@
* limitations under the License. * 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. ** sqlite-dev@sqlite.org.
*/ */

View file

@ -14,7 +14,7 @@
* limitations under the License. * 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. ** sqlite-dev@sqlite.org.
*/ */

View file

@ -14,7 +14,7 @@
* limitations under the License. * 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. ** sqlite-dev@sqlite.org.
*/ */

View file

@ -60,9 +60,9 @@ public class Paint {
} }
public void getTextBounds(String text, int start, int end, Rect bounds) {} public void getTextBounds(String text, int start, int end, Rect bounds) {}
public void getTextBounds(char[] text, int index, int count, Rect bounds) {} public void getTextBounds(char[] text, int index, int count, Rect bounds) {}
public int getTextWidths(String text, int start, int end, float[] widths) { public int getTextWidths(String text, int start, int end, float[] widths) {
// TODO fix it // TODO fix it
return 0; return 0;
} }
public void setFilterBitmap(boolean filter) {} public void setFilterBitmap(boolean filter) {}
@ -100,7 +100,7 @@ public class Paint {
return colorFilter; return colorFilter;
} }
public Shader setShader(Shader shader) { return shader; } public Shader setShader(Shader shader) { return shader; }
public enum Style { public enum Style {
/** /**

View file

@ -24,13 +24,13 @@ import android.os.Parcelable;
public class PointF implements Parcelable { public class PointF implements Parcelable {
public float x; public float x;
public float y; public float y;
public PointF() {} public PointF() {}
public PointF(float x, float y) { public PointF(float x, float y) {
this.x = x; this.x = x;
this.y = y; this.y = y;
} }
public PointF(Point p) { public PointF(Point p) {
this.x = p.x; this.x = p.x;
this.y = p.y; this.y = p.y;
@ -46,7 +46,7 @@ public class PointF implements Parcelable {
this.x = p.x; this.x = p.x;
this.y = p.y; this.y = p.y;
} }
/** /**
* Set the point's x and y coordinates * Set the point's x and y coordinates
*/ */
@ -54,7 +54,7 @@ public class PointF implements Parcelable {
this.x = x; this.x = x;
this.y = y; this.y = y;
} }
/** /**
* Set the point's x and y coordinates to the coordinates of p * Set the point's x and y coordinates to the coordinates of p
*/ */
@ -62,22 +62,22 @@ public class PointF implements Parcelable {
this.x = p.x; this.x = p.x;
this.y = p.y; this.y = p.y;
} }
public final void negate() { public final void negate() {
x = -x; x = -x;
y = -y; y = -y;
} }
public final void offset(float dx, float dy) { public final void offset(float dx, float dy) {
x += dx; x += dx;
y += dy; y += dy;
} }
/** /**
* Returns true if the point's coordinates equal (x,y) * Returns true if the point's coordinates equal (x,y)
*/ */
public final boolean equals(float x, float y) { public final boolean equals(float x, float y) {
return this.x == x && this.y == y; return this.x == x && this.y == y;
} }
@Override @Override
@ -105,14 +105,14 @@ public class PointF implements Parcelable {
/** /**
* Return the euclidian distance from (0,0) to the point * Return the euclidian distance from (0,0) to the point
*/ */
public final float length() { public final float length() {
return length(x, y); return length(x, y);
} }
/** /**
* Returns the euclidian distance from (0,0) to (x,y) * Returns the euclidian distance from (0,0) to (x,y)
*/ */
public static float length(float x, float y) { public static float length(float x, float y) {
return (float) Math.hypot(x, y); return (float) Math.hypot(x, y);
} }
} }

View file

@ -1,5 +1,5 @@
package android.graphics.drawable; package android.graphics.drawable;
public interface Animatable { public interface Animatable {
} }

View file

@ -71,7 +71,7 @@ public class Drawable {
public int getChangingConfigurations() { public int getChangingConfigurations() {
return Drawable.this.getChangingConfigurations(); return Drawable.this.getChangingConfigurations();
} }
}; };
} }
@ -127,7 +127,7 @@ public class Drawable {
public void invalidateSelf() { public void invalidateSelf() {
native_invalidate(paintable); native_invalidate(paintable);
/* this shouldn't ever be needed with Gtk, but let's play it safe for now */ /* this shouldn't ever be needed with Gtk, but let's play it safe for now */
if (this.callback != null) { if (this.callback != null) {
callback.invalidateDrawable(this); callback.invalidateDrawable(this);

View file

@ -9,5 +9,5 @@ public class ScaleDrawable extends Drawable {
// TODO Auto-generated method stub // TODO Auto-generated method stub
throw new UnsupportedOperationException("Unimplemented method 'draw'"); throw new UnsupportedOperationException("Unimplemented method 'draw'");
} }
} }

View file

@ -13,5 +13,5 @@ public class ShapeDrawable extends Drawable {
public void setPadding(Rect padding) {} public void setPadding(Rect padding) {}
public void setShape(Shape shape) {} public void setShape(Shape shape) {}
} }

View file

@ -0,0 +1,37 @@
package android.location;
public final class GnssStatus {
public static final int CONSTELLATION_UNKNOWN = 0;
public static final int CONSTELLATION_GPS = 1;
public static final int CONSTELLATION_SBAS = 2;
public static final int CONSTELLATION_GLONASS = 3;
public static final int CONSTELLATION_QZSS = 4;
public static final int CONSTELLATION_BEIDOU = 5;
public static final int CONSTELLATION_GALILEO = 6;
public static final int CONSTELLATION_IRNSS = 7;
public GnssStatus() {
}
public static abstract class Callback {
public void onStarted() {
}
public void onStopped() {
}
public void onFirstFix(int ttffMillis) {
}
public void onSatelliteStatusChanged(GnssStatus status) {
}
}
public int getSatelliteCount() {
return 3; // FIXME
}
public boolean usedInFix(int index) {
return true; // FIXME
}
}

View file

@ -23,5 +23,5 @@ public class Location {
public double getBearing() { public double getBearing() {
return bearing; return bearing;
} }
} }

View file

@ -198,5 +198,5 @@ public class MediaCodec {
} }
public static interface OnFrameRenderedListener {} public static interface OnFrameRenderedListener {}
} }

View file

@ -41,5 +41,5 @@ public class MediaDescription {
return description; return description;
} }
} }
} }

View file

@ -5,4 +5,3 @@ public class Network {
return 1L; return 1L;
} }
} }

View file

@ -10,7 +10,7 @@ public class X509TrustManagerExtensions {
public X509TrustManagerExtensions(X509TrustManager tm) {} public X509TrustManagerExtensions(X509TrustManager tm) {}
public List<X509Certificate> checkServerTrusted (X509Certificate[] chain, public List<X509Certificate> checkServerTrusted (X509Certificate[] chain,
String authType, String host) { String authType, String host) {
return new ArrayList<>(); return new ArrayList<>();
} }

View file

@ -1,5 +1,5 @@
package android.net.wifi.p2p; package android.net.wifi.p2p;
public class WifiP2pManager { public class WifiP2pManager {
} }

View file

@ -1,5 +1,5 @@
package android.nfc; package android.nfc;
public class NfcManager { public class NfcManager {
} }

View file

@ -42,7 +42,7 @@ public class ConditionVariable {
/** /**
* Create the ConditionVariable with the given state. * Create the ConditionVariable with the given state.
* *
* <p> * <p>
* Pass true for opened and false for closed. * Pass true for opened and false for closed.
*/ */

View file

@ -1,5 +1,5 @@
package android.os; package android.os;
public class DropBoxManager { public class DropBoxManager {
} }

View file

@ -7,7 +7,7 @@ public class FileObserver {
public FileObserver(String path) {} public FileObserver(String path) {}
public void startWatching() {} public void startWatching() {}
public void stopWatching() {} public void stopWatching() {}
} }

View file

@ -22,7 +22,7 @@ package android.os;
* @see CancellationSignal * @see CancellationSignal
*/ */
public class OperationCanceledException extends RuntimeException { public class OperationCanceledException extends RuntimeException {
public OperationCanceledException() { public OperationCanceledException() {
this(null); this(null);
} }
@ -30,4 +30,4 @@ public class OperationCanceledException extends RuntimeException {
public OperationCanceledException(String message) { public OperationCanceledException(String message) {
super(message != null ? message : "The operation has been canceled."); super(message != null ? message : "The operation has been canceled.");
} }
} }

View file

@ -11,7 +11,7 @@ public final class StrictMode {
public static ThreadPolicy allowThreadDiskReads() { public static ThreadPolicy allowThreadDiskReads() {
return new ThreadPolicy(); return new ThreadPolicy();
} }
public static ThreadPolicy getThreadPolicy() { public static ThreadPolicy getThreadPolicy() {
return new ThreadPolicy(); return new ThreadPolicy();
} }
@ -22,7 +22,7 @@ public final class StrictMode {
final int mask; final int mask;
final OnThreadViolationListener listener; final OnThreadViolationListener listener;
final Executor callbackExecutor; final Executor callbackExecutor;
private ThreadPolicy(int mask, OnThreadViolationListener listener, Executor executor) { private ThreadPolicy(int mask, OnThreadViolationListener listener, Executor executor) {
this.mask = mask; this.mask = mask;
this.listener = listener; this.listener = listener;
@ -37,7 +37,7 @@ public final class StrictMode {
public void execute(Runnable command) {} public void execute(Runnable command) {}
}; };
} }
public static final class Builder { public static final class Builder {
private int mask = 0; private int mask = 0;
private OnThreadViolationListener listener; private OnThreadViolationListener listener;

View file

@ -1,5 +1,5 @@
package android.os.storage; package android.os.storage;
public class StorageManager { public class StorageManager {
} }

View file

@ -3,7 +3,7 @@ package android.text;
import android.graphics.Canvas; import android.graphics.Canvas;
public class Layout { public class Layout {
public enum Alignment { public enum Alignment {
ALIGN_NORMAL, ALIGN_NORMAL,
ALIGN_OPPOSITE, ALIGN_OPPOSITE,

View file

@ -148,4 +148,4 @@ public class Selection {
*/ */
public static final Object SELECTION_START = new START(); public static final Object SELECTION_START = new START();
public static final Object SELECTION_END = new END(); public static final Object SELECTION_END = new END();
} }

View file

@ -1415,4 +1415,4 @@ public class SpannableStringBuilder implements CharSequence, GetChars, Spannable
private static final int SPAN_END_AT_START = 0x4000; private static final int SPAN_END_AT_START = 0x4000;
private static final int SPAN_END_AT_END = 0x8000; private static final int SPAN_END_AT_END = 0x8000;
private static final int SPAN_START_END_MASK = 0xF000; private static final int SPAN_START_END_MASK = 0xF000;
} }

View file

@ -13,7 +13,7 @@ public class DateUtils {
public static boolean isToday(long millis) { public static boolean isToday(long millis) {
Date d1 = new Date(millis); Date d1 = new Date(millis);
Date d2 = new Date(); Date d2 = new Date();
return d1.getYear() == d2.getYear() && d1.getMonth() == d2.getMonth() && d1.getDate() == d2.getDate(); return d1.getYear() == d2.getYear() && d1.getMonth() == d2.getMonth() && d1.getDate() == d2.getDate();
} }

View file

@ -5,5 +5,5 @@ public class LinkMovementMethod extends BaseMovementMethod {
public static MovementMethod getInstance() { public static MovementMethod getInstance() {
return new LinkMovementMethod(); return new LinkMovementMethod();
} }
} }

View file

@ -79,4 +79,4 @@ public enum JsonToken {
* tokens. * tokens.
*/ */
END_DOCUMENT END_DOCUMENT
} }

View file

@ -358,4 +358,4 @@ public class LruCache<K, V> {
return String.format("LruCache[maxSize=%d,hits=%d,misses=%d,hitRate=%d%%]", return String.format("LruCache[maxSize=%d,hits=%d,misses=%d,hitRate=%d%%]",
maxSize, hitCount, missCount, hitPercent); maxSize, hitCount, missCount, hitPercent);
} }
} }

View file

@ -77,4 +77,4 @@ public abstract class Property<T, V> {
public Class<V> getType() { public Class<V> getType() {
return mType; return mType;
} }
} }

View file

@ -1,5 +1,5 @@
package android.view; package android.view;
public class AbsSavedState { public class AbsSavedState {
} }

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