You've already forked android_translation_layer
mirror of
https://gitlab.com/android_translation_layer/android_translation_layer.git
synced 2025-10-27 11:48:10 -07:00
api-impl: misc stubs/additions
This commit is contained in:
@@ -3,13 +3,17 @@ package android.content;
|
||||
import java.io.File;
|
||||
import java.io.FileNotFoundException;
|
||||
|
||||
import android.accounts.Account;
|
||||
import android.database.ContentObserver;
|
||||
import android.database.Cursor;
|
||||
import android.net.Uri;
|
||||
import android.os.Bundle;
|
||||
import android.os.CancellationSignal;
|
||||
import android.os.ParcelFileDescriptor;
|
||||
|
||||
public class ContentResolver {
|
||||
public static final String SYNC_EXTRAS_IGNORE_SETTINGS = "ignore_settings";
|
||||
|
||||
public final void registerContentObserver(Uri uri, boolean notifyForDescendants, ContentObserver observer) {
|
||||
}
|
||||
public final void unregisterContentObserver(ContentObserver observer) {
|
||||
@@ -77,4 +81,17 @@ public class ContentResolver {
|
||||
else
|
||||
return 0;
|
||||
}
|
||||
|
||||
public static void requestSync(Account account, String authority, Bundle extras) {
|
||||
}
|
||||
|
||||
public static void cancelSync(Account account, String authority) {
|
||||
}
|
||||
|
||||
public static void setMasterSyncAutomatically(boolean sync) {
|
||||
}
|
||||
|
||||
public static boolean isSyncActive(Account account, String authority) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -358,6 +358,10 @@ public class Context extends Object {
|
||||
return getCacheDir();
|
||||
}
|
||||
|
||||
public File[] getExternalCacheDirs() {
|
||||
return new File[] {getCacheDir()};
|
||||
}
|
||||
|
||||
public File getNoBackupFilesDir() {
|
||||
if (nobackup_dir == null) {
|
||||
nobackup_dir = new File(getDataDirFile(), "no_backup/" + getPackageName());
|
||||
|
||||
@@ -7,6 +7,9 @@ import java.io.Serializable;
|
||||
import java.util.ArrayList;
|
||||
|
||||
public class Intent implements Parcelable {
|
||||
public static final String ACTION_MAIN = "android.intent.action.MAIN";
|
||||
public static final int FLAG_ACTIVITY_NEW_TASK = 0x10000000;
|
||||
|
||||
private ComponentName component;
|
||||
private Bundle extras = new Bundle();
|
||||
private String action;
|
||||
|
||||
Reference in New Issue
Block a user