/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/core/tests/coretests/src/android/view/ |
D | ScrollCaptureTargetResolverTest.java | 60 ScrollCaptureTargetResolver resolver = new ScrollCaptureTargetResolver(new LinkedList<>()); in testEmptyQueue() local 61 resolver.start(mHandler, RESOLVER_TIMEOUT_MS, mTargetConsumer); in testEmptyQueue() 64 resolver.waitForResult(); in testEmptyQueue() 89 ScrollCaptureTargetResolver resolver = new ScrollCaptureTargetResolver(targetQueue); in testNoValidTargets() local 90 resolver.start(mHandler, RESOLVER_TIMEOUT_MS, mTargetConsumer); in testNoValidTargets() 93 resolver.waitForResult(); in testNoValidTargets() 109 ScrollCaptureTargetResolver resolver = new ScrollCaptureTargetResolver(targetQueue); in testSingleTarget() local 110 resolver.start(mHandler, RESOLVER_TIMEOUT_MS, mTargetConsumer); in testSingleTarget() 113 resolver.waitForResult(); in testSingleTarget() 133 ScrollCaptureTargetResolver resolver = new ScrollCaptureTargetResolver(targetQueue); in testSingleTarget_backgroundThread() local [all …]
|
/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 public 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;
|
/frameworks/base/core/java/android/app/slice/ |
D | SliceManager.java | 224 ContentResolver resolver = mContext.getContentResolver(); in getSliceDescendants() local 225 try (ContentProviderClient provider = resolver.acquireUnstableContentProviderClient(uri)) { in getSliceDescendants() 246 ContentResolver resolver = mContext.getContentResolver(); in bindSlice() local 247 try (ContentProviderClient provider = resolver.acquireUnstableContentProviderClient(uri)) { in bindSlice() 301 ContentResolver resolver = mContext.getContentResolver(); in mapIntentToUri() local 302 final Uri staticUri = resolveStatic(intent, resolver); in mapIntentToUri() 309 try (ContentProviderClient provider = resolver.acquireUnstableContentProviderClient(uri)) { in mapIntentToUri() 339 private Uri resolveStatic(@NonNull Intent intent, ContentResolver resolver) { in resolveStatic() argument 347 if (intentData != null && SliceProvider.SLICE_TYPE.equals(resolver.getType(intentData))) { in resolveStatic() 379 ContentResolver resolver = mContext.getContentResolver(); in bindSlice() local [all …]
|
/frameworks/base/core/java/android/provider/ |
D | CallLog.java | 734 final ContentResolver resolver = context.getContentResolver(); in addCall() local 794 cursor = resolver.query(Phone.CONTENT_URI, in addCall() 803 cursor = resolver.query( in addCall() 816 updateDataUsageStatForData(resolver, dataId); in addCall() 820 updateNormalizedNumber(context, resolver, dataId, number); in addCall() 938 final ContentResolver resolver = context.getContentResolver(); in getLastOutgoingCall() local 941 c = resolver.query( in getLastOutgoingCall() 958 final ContentResolver resolver = context.getContentResolver(); in addEntryAndRemoveExpiredEntries() local 977 final Uri result = resolver.insert(uri, values); in addEntryAndRemoveExpiredEntries() 1000 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 | Settings.java | 2505 protected static boolean putString(ContentResolver resolver, Uri uri, in putString() argument 2512 resolver.insert(uri, values); in putString() 3186 public static String getString(ContentResolver resolver, String name) { in getString() argument 3187 return getStringForUser(resolver, name, resolver.getUserId()); in getString() 3192 public static String getStringForUser(ContentResolver resolver, String name, in getStringForUser() argument 3197 return Secure.getStringForUser(resolver, name, userHandle); in getStringForUser() 3202 return Global.getStringForUser(resolver, name, userHandle); in getStringForUser() 3204 return sNameValueCache.getStringForUser(resolver, name, userHandle); in getStringForUser() 3214 public static boolean putString(ContentResolver resolver, String name, String value) { in putString() argument 3215 return putStringForUser(resolver, name, value, resolver.getUserId()); in putString() [all …]
|
D | Telephony.java | 420 public static Uri addMessageToUri(ContentResolver resolver, in addMessageToUri() argument 424 resolver, uri, address, body, subject, date, read, deliveryReport, -1L); in addMessageToUri() 443 public static Uri addMessageToUri(int subId, ContentResolver resolver, in addMessageToUri() argument 446 return addMessageToUri(subId, resolver, uri, address, body, subject, in addMessageToUri() 466 public static Uri addMessageToUri(ContentResolver resolver, in addMessageToUri() argument 470 resolver, uri, address, body, subject, in addMessageToUri() 491 public static Uri addMessageToUri(int subId, ContentResolver resolver, in addMessageToUri() argument 511 return resolver.insert(uri, values); in addMessageToUri() 610 public static Uri addMessage(ContentResolver resolver, in addMessage() argument 614 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/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/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/services/backup/java/com/android/server/backup/ |
D | BackupAgentTimeoutParameters.java | 100 public BackupAgentTimeoutParameters(Handler handler, ContentResolver resolver) { in BackupAgentTimeoutParameters() argument 101 super(handler, resolver, Settings.Global.getUriFor(SETTING)); in BackupAgentTimeoutParameters() 104 public String getSettingValue(ContentResolver resolver) { in getSettingValue() argument 105 return Settings.Global.getString(resolver, SETTING); in getSettingValue()
|
/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/core/java/com/android/server/stats/pull/ |
D | SettingsStatsUtil.java | 82 final ContentResolver resolver = context.getContentResolver(); in logGlobalSettings() local 90 final String value = Settings.Global.getStringForUser(resolver, key, userId); in logGlobalSettings() 101 final ContentResolver resolver = context.getContentResolver(); in logSystemSettings() local 109 final String value = Settings.System.getStringForUser(resolver, key, userId); in logSystemSettings() 120 final ContentResolver resolver = context.getContentResolver(); in logSecureSettings() local 128 final String value = Settings.Secure.getStringForUser(resolver, key, userId); in logSecureSettings()
|
/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()
|