/frameworks/base/packages/SettingsLib/src/com/android/settingslib/fuelgauge/ |
D | Estimate.kt | 43 val resolver = context.contentResolver in getCachedEstimateIfAvailable() constant 46 resolver, Settings.Global.BATTERY_ESTIMATES_LAST_UPDATE_TIME, -1)) in getCachedEstimateIfAvailable() 51 Settings.Global.getLong(resolver, in getCachedEstimateIfAvailable() 54 Settings.Global.getInt(resolver, in getCachedEstimateIfAvailable() 56 Settings.Global.getLong(resolver, Settings.Global.AVERAGE_TIME_TO_DISCHARGE, in getCachedEstimateIfAvailable() 70 val resolver = context.contentResolver in storeCachedEstimate() constant 71 Settings.Global.putLong(resolver, Settings.Global.TIME_REMAINING_ESTIMATE_MILLIS, in storeCachedEstimate() 73 Settings.Global.putInt(resolver, Settings.Global.TIME_REMAINING_ESTIMATE_BASED_ON_USAGE, in storeCachedEstimate() 75 Settings.Global.putLong(resolver, Settings.Global.AVERAGE_TIME_TO_DISCHARGE, in storeCachedEstimate() 77 Settings.Global.putLong(resolver, Settings.Global.BATTERY_ESTIMATES_LAST_UPDATE_TIME, in storeCachedEstimate()
|
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/inputmethod/ |
D | InputMethodAndSubtypeUtil.java | 92 private static int getInputMethodSubtypeSelected(ContentResolver resolver) { in getInputMethodSubtypeSelected() argument 94 return Settings.Secure.getInt(resolver, in getInputMethodSubtypeSelected() 101 private static boolean isInputMethodSubtypeSelected(ContentResolver resolver) { in isInputMethodSubtypeSelected() argument 102 return getInputMethodSubtypeSelected(resolver) != NOT_A_SUBTYPE_ID; in isInputMethodSubtypeSelected() 105 private static void putSelectedInputMethodSubtype(ContentResolver resolver, int hashCode) { in putSelectedInputMethodSubtype() argument 106 Settings.Secure.putInt(resolver, Settings.Secure.SELECTED_INPUT_METHOD_SUBTYPE, hashCode); in putSelectedInputMethodSubtype() 111 ContentResolver resolver) { in getEnabledInputMethodsAndSubtypeList() argument 113 resolver, Settings.Secure.ENABLED_INPUT_METHODS); in getEnabledInputMethodsAndSubtypeList() 143 private static HashSet<String> getDisabledSystemIMEs(ContentResolver resolver) { in getDisabledSystemIMEs() argument 146 resolver, Settings.Secure.DISABLED_SYSTEM_INPUT_METHODS); in getDisabledSystemIMEs() [all …]
|
D | InputMethodAndSubtypeUtilCompat.java | 92 private static int getInputMethodSubtypeSelected(ContentResolver resolver) { in getInputMethodSubtypeSelected() argument 94 return Settings.Secure.getInt(resolver, in getInputMethodSubtypeSelected() 101 private static boolean isInputMethodSubtypeSelected(ContentResolver resolver) { in isInputMethodSubtypeSelected() argument 102 return getInputMethodSubtypeSelected(resolver) != NOT_A_SUBTYPE_ID; in isInputMethodSubtypeSelected() 105 private static void putSelectedInputMethodSubtype(ContentResolver resolver, int hashCode) { in putSelectedInputMethodSubtype() argument 106 Settings.Secure.putInt(resolver, Settings.Secure.SELECTED_INPUT_METHOD_SUBTYPE, hashCode); in putSelectedInputMethodSubtype() 111 ContentResolver resolver) { in getEnabledInputMethodsAndSubtypeList() argument 113 resolver, Settings.Secure.ENABLED_INPUT_METHODS); in getEnabledInputMethodsAndSubtypeList() 143 private static HashSet<String> getDisabledSystemIMEs(ContentResolver resolver) { in getDisabledSystemIMEs() argument 146 resolver, Settings.Secure.DISABLED_SYSTEM_INPUT_METHODS); in getDisabledSystemIMEs() [all …]
|
/frameworks/base/core/java/android/database/sqlite/ |
D | SqliteWrapper.java | 58 public static Cursor query(Context context, ContentResolver resolver, Uri uri, in query() argument 61 return resolver.query(uri, projection, selection, selectionArgs, sortOrder); in query() 79 public static int update(Context context, ContentResolver resolver, Uri uri, in update() argument 82 return resolver.update(uri, values, where, selectionArgs); in update() 91 public static int delete(Context context, ContentResolver resolver, Uri uri, in delete() argument 94 return resolver.delete(uri, where, selectionArgs); in delete() 103 public static Uri insert(Context context, ContentResolver resolver, in insert() argument 106 return resolver.insert(uri, values); in insert()
|
/frameworks/base/telephony/common/com/google/android/mms/util/ |
D | SqliteWrapper.java | 71 public static Cursor query(Context context, ContentResolver resolver, Uri uri, in query() argument 74 return resolver.query(uri, projection, selection, selectionArgs, sortOrder); in query() 93 public static int update(Context context, ContentResolver resolver, Uri uri, in update() argument 96 return resolver.update(uri, values, where, selectionArgs); in update() 105 public static int delete(Context context, ContentResolver resolver, Uri uri, in delete() argument 108 return resolver.delete(uri, where, selectionArgs); in delete() 117 public static Uri insert(Context context, ContentResolver resolver, in insert() argument 120 return resolver.insert(uri, values); in insert()
|
/frameworks/base/core/tests/coretests/src/android/content/ |
D | MemoryFileProviderTest.java | 38 ContentResolver resolver = getContext().getContentResolver(); in testRead() local 41 InputStream in = resolver.openInputStream(uri); in testRead() 53 ContentResolver resolver = getContext().getContentResolver(); in testClose() local 58 InputStream in = resolver.openInputStream(uri); in testClose() 71 ContentResolver resolver = getContext().getContentResolver(); in testFile() local 74 InputStream in = resolver.openInputStream(uri); in testFile()
|
/frameworks/opt/photoviewer/src/com/android/ex/photo/util/ |
D | ImageUtils.java | 96 public static BitmapResult createLocalBitmap(final ContentResolver resolver, final Uri uri, in createLocalBitmap() argument 99 final InputStreamFactory factory = createInputStreamFactory(resolver, uri); in createLocalBitmap() 205 private static InputStreamFactory createInputStreamFactory(final ContentResolver resolver, in createInputStreamFactory() argument 209 return new DataInputStreamFactory(resolver, uri); in createInputStreamFactory() 211 return new BaseInputStreamFactory(resolver, uri); in createInputStreamFactory() 232 public BaseInputStreamFactory(final ContentResolver resolver, final Uri uri) { in BaseInputStreamFactory() argument 233 mResolver = resolver; in BaseInputStreamFactory() 246 public DataInputStreamFactory(final ContentResolver resolver, final Uri uri) { in DataInputStreamFactory() argument 247 super(resolver, uri); in DataInputStreamFactory()
|
/frameworks/base/packages/LocalTransport/src/com/android/localtransport/ |
D | LocalTransportParameters.java | 34 LocalTransportParameters(Handler handler, ContentResolver resolver) { in LocalTransportParameters() argument 35 super(handler, resolver, Settings.Secure.getUriFor(SETTING)); in LocalTransportParameters() 46 public String getSettingValue(ContentResolver resolver) { in getSettingValue() argument 47 return Settings.Secure.getString(resolver, SETTING); in getSettingValue()
|
/frameworks/base/packages/SettingsProvider/test/src/com/android/providers/settings/ |
D | DeviceConfigServiceTest.java | 169 private static void putWithContentProvider(ContentResolver resolver, String namespace, in putWithContentProvider() argument 171 putWithContentProvider(resolver, namespace, key, value, false); in putWithContentProvider() 174 private static void putWithContentProvider(ContentResolver resolver, String namespace, in putWithContentProvider() argument 182 resolver.call( in putWithContentProvider() 186 private static String getFromContentProvider(ContentResolver resolver, String namespace, in getFromContentProvider() argument 189 Bundle result = resolver.call( in getFromContentProvider() 195 private static boolean deleteFromContentProvider(ContentResolver resolver, String namespace, in deleteFromContentProvider() argument 198 Bundle result = resolver.call( in deleteFromContentProvider()
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/ |
D | SettingsObserver.java | 53 final ContentResolver resolver = mContext.getContentResolver(); in observe() local 54 resolver.registerContentObserver(uri, false, this); in observe() 61 final ContentResolver resolver = mContext.getContentResolver(); in unobserve() local 62 resolver.unregisterContentObserver(this); in unobserve()
|
/frameworks/base/core/java/android/service/resolver/ |
D | IResolverRankerService.aidl | 17 package android.service.resolver; 19 import android.service.resolver.IResolverRankerResult; 20 import android.service.resolver.ResolverTarget;
|
D | IResolverRankerResult.aidl | 17 package android.service.resolver; 19 import android.service.resolver.ResolverTarget;
|
/frameworks/base/core/java/android/app/slice/ |
D | SliceManager.java | 223 ContentResolver resolver = mContext.getContentResolver(); in getSliceDescendants() local 224 try (ContentProviderClient provider = resolver.acquireUnstableContentProviderClient(uri)) { in getSliceDescendants() 245 ContentResolver resolver = mContext.getContentResolver(); in bindSlice() local 246 try (ContentProviderClient provider = resolver.acquireUnstableContentProviderClient(uri)) { in bindSlice() 300 ContentResolver resolver = mContext.getContentResolver(); in mapIntentToUri() local 301 final Uri staticUri = resolveStatic(intent, resolver); in mapIntentToUri() 308 try (ContentProviderClient provider = resolver.acquireUnstableContentProviderClient(uri)) { in mapIntentToUri() 338 private Uri resolveStatic(@NonNull Intent intent, ContentResolver resolver) { in resolveStatic() argument 346 if (intentData != null && SliceProvider.SLICE_TYPE.equals(resolver.getType(intentData))) { in resolveStatic() 378 ContentResolver resolver = mContext.getContentResolver(); in bindSlice() local [all …]
|
/frameworks/base/core/java/android/provider/ |
D | CallLog.java | 727 final ContentResolver resolver = context.getContentResolver(); in addCall() local 787 cursor = resolver.query(Phone.CONTENT_URI, in addCall() 796 cursor = resolver.query( in addCall() 809 updateDataUsageStatForData(resolver, dataId); in addCall() 813 updateNormalizedNumber(context, resolver, dataId, number); in addCall() 931 final ContentResolver resolver = context.getContentResolver(); in getLastOutgoingCall() local 934 c = resolver.query( in getLastOutgoingCall() 951 final ContentResolver resolver = context.getContentResolver(); in addEntryAndRemoveExpiredEntries() local 970 final Uri result = resolver.insert(uri, values); in addEntryAndRemoveExpiredEntries() 993 resolver.delete(uri, "_id IN " + in addEntryAndRemoveExpiredEntries() [all …]
|
D | Contacts.java | 446 public static void markAsContacted(ContentResolver resolver, long personId) { in markAsContacted() argument 455 public static long tryGetMyContactsGroupId(ContentResolver resolver) { in tryGetMyContactsGroupId() argument 456 Cursor groupsCursor = resolver.query(Groups.CONTENT_URI, GROUPS_PROJECTION, in tryGetMyContactsGroupId() 480 public static Uri addToMyContactsGroup(ContentResolver resolver, long personId) { in addToMyContactsGroup() argument 481 long groupId = tryGetMyContactsGroupId(resolver); in addToMyContactsGroup() 486 return addToGroup(resolver, personId, groupId); in addToMyContactsGroup() 500 public static Uri addToGroup(ContentResolver resolver, long personId, String groupName) { in addToGroup() argument 502 Cursor groupsCursor = resolver.query(Groups.CONTENT_URI, GROUPS_PROJECTION, in addToGroup() 518 return addToGroup(resolver, personId, groupId); in addToGroup() 531 public static Uri addToGroup(ContentResolver resolver, long personId, long groupId) { in addToGroup() argument [all …]
|
D | Telephony.java | 419 public static Uri addMessageToUri(ContentResolver resolver, in addMessageToUri() argument 423 resolver, uri, address, body, subject, date, read, deliveryReport, -1L); in addMessageToUri() 442 public static Uri addMessageToUri(int subId, ContentResolver resolver, in addMessageToUri() argument 445 return addMessageToUri(subId, resolver, uri, address, body, subject, in addMessageToUri() 465 public static Uri addMessageToUri(ContentResolver resolver, in addMessageToUri() argument 469 resolver, uri, address, body, subject, in addMessageToUri() 490 public static Uri addMessageToUri(int subId, ContentResolver resolver, in addMessageToUri() argument 510 return resolver.insert(uri, values); in addMessageToUri() 609 public static Uri addMessage(ContentResolver resolver, in addMessage() argument 613 resolver, CONTENT_URI, address, body, subject, date, read, false); in addMessage() [all …]
|
/frameworks/base/telephony/common/com/android/internal/telephony/ |
D | HbpcdUtils.java | 33 private ContentResolver resolver = null; field in HbpcdUtils 36 resolver = context.getContentResolver(); in HbpcdUtils() 51 Cursor c2 = resolver.query(ArbitraryMccSidMatch.CONTENT_URI, projection2, in getMcc() 77 Cursor c3 = resolver.query(MccSidConflicts.CONTENT_URI, projection3, in getMcc() 112 Cursor c5 = resolver.query(MccSidRange.CONTENT_URI, projection5, in getMcc() 144 Cursor cur = resolver.query(MccIdd.CONTENT_URI, projection, in getIddByMcc()
|
/frameworks/base/test-runner/src/android/test/ |
D | ProviderTestCase.java | 100 MockContentResolver resolver = new MockContentResolver(); in newResolverWithContentProviderFromSql() local 106 resolver, targetContextWrapper); in newResolverWithContentProviderFromSql() 110 resolver.addProvider(authority, provider); in newResolverWithContentProviderFromSql() 112 return resolver; in newResolverWithContentProviderFromSql()
|
D | ProviderTestCase2.java | 225 MockContentResolver resolver = new MockContentResolver(); in newResolverWithContentProviderFromSql() local 230 Context context = new IsolatedContext(resolver, targetContextWrapper); in newResolverWithContentProviderFromSql() 234 resolver.addProvider(authority, provider); in newResolverWithContentProviderFromSql() 236 return resolver; in newResolverWithContentProviderFromSql()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/row/ |
D | NotificationInlineImageCache.java | 43 public void setImageResolver(NotificationInlineImageResolver resolver) { in setImageResolver() argument 44 mResolver = resolver; in setImageResolver() 79 PreloadImageTask(NotificationInlineImageResolver resolver) { in PreloadImageTask() argument 80 mResolver = resolver; in PreloadImageTask()
|
/frameworks/base/core/java/android/util/ |
D | KeyValueSettingObserver.java | 48 public KeyValueSettingObserver(Handler handler, ContentResolver resolver, in KeyValueSettingObserver() argument 51 mResolver = resolver; in KeyValueSettingObserver() 71 public abstract String getSettingValue(ContentResolver resolver); in getSettingValue() argument
|
/frameworks/base/services/backup/java/com/android/server/backup/ |
D | BackupAgentTimeoutParameters.java | 104 public BackupAgentTimeoutParameters(Handler handler, ContentResolver resolver) { in BackupAgentTimeoutParameters() argument 105 super(handler, resolver, Settings.Global.getUriFor(SETTING)); in BackupAgentTimeoutParameters() 108 public String getSettingValue(ContentResolver resolver) { in getSettingValue() argument 109 return Settings.Global.getString(resolver, SETTING); in getSettingValue()
|
D | BackupManagerConstants.java | 105 public BackupManagerConstants(Handler handler, ContentResolver resolver) { in BackupManagerConstants() argument 106 super(handler, resolver, Settings.Secure.getUriFor(SETTING)); in BackupManagerConstants() 109 public String getSettingValue(ContentResolver resolver) { in getSettingValue() argument 110 return Settings.Secure.getString(resolver, SETTING); in getSettingValue()
|
/frameworks/opt/vcard/tests/src/com/android/vcard/tests/testutils/ |
D | VCardVerifier.java | 67 public CustomMockContext(ContentResolver resolver) { in CustomMockContext() argument 68 mResolver = resolver; in CustomMockContext() 327 final ContentResolver resolver, in mockGetEntityIteratorMethod() argument 330 if (ExportTestResolver.class.equals(resolver.getClass())) { in mockGetEntityIteratorMethod() 331 return ((ExportTestResolver)resolver).getProvider().queryEntities( in mockGetEntityIteratorMethod() 347 final ContentResolver resolver = context.getContentResolver(); in verifyForExportTest() local 350 final Cursor cursor = resolver.query(CONTACTS_TEST_CONTENT_URI, null, null, null, null); in verifyForExportTest()
|
/frameworks/base/core/java/android/content/ |
D | AsyncQueryHandler.java | 67 final ContentResolver resolver = mResolver.get(); in handleMessage() local 68 if (resolver == null) return; in handleMessage() 79 cursor = resolver.query(args.uri, args.projection, in handleMessage() 96 args.result = resolver.insert(args.uri, args.values); in handleMessage() 100 args.result = resolver.update(args.uri, args.values, args.selection, in handleMessage() 105 args.result = resolver.delete(args.uri, args.selection, args.selectionArgs); in handleMessage()
|