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 and fixes
This commit is contained in:
@@ -1,3 +1,6 @@
|
||||
package android.provider;
|
||||
|
||||
public interface BaseColumns {}
|
||||
public interface BaseColumns {
|
||||
public static final String _ID = "_id";
|
||||
public static final String _COUNT = "_count";
|
||||
}
|
||||
|
||||
@@ -6,9 +6,13 @@ public class ContactsContract {
|
||||
|
||||
public static final class CommonDataKinds {
|
||||
|
||||
public static class Phone {
|
||||
public static final class Phone {
|
||||
public static final Uri CONTENT_URI = Uri.parse("content://com.android.contacts/phones");
|
||||
}
|
||||
|
||||
public static final class Email {
|
||||
public static final Uri CONTENT_URI = Uri.parse("content://com.android.contacts/emails");
|
||||
}
|
||||
}
|
||||
|
||||
public static final class Profile {
|
||||
|
||||
@@ -6,6 +6,12 @@ import android.util.AndroidException;
|
||||
|
||||
public class Settings {
|
||||
public static final class Secure {
|
||||
public static final Uri CONTENT_URI = Uri.parse("content://settings/secure");
|
||||
|
||||
public static Uri getUriFor(String name) {
|
||||
return Uri.withAppendedPath(CONTENT_URI, name);
|
||||
}
|
||||
|
||||
public static String getString(ContentResolver content_resolver, String key) {
|
||||
switch (key) {
|
||||
case "android_id":
|
||||
@@ -25,6 +31,8 @@ public class Settings {
|
||||
switch (key) {
|
||||
case "limit_ad_tracking":
|
||||
return 1; // obviously, duh
|
||||
case "user_setup_complete":
|
||||
return 1;
|
||||
default:
|
||||
java.lang.System.out.println("!!!! Settings$Secure.getInt: unknown key: >" + key + "<");
|
||||
return def;
|
||||
|
||||
Reference in New Issue
Block a user