Home
last modified time | relevance | path

Searched refs:resolver (Results 1 – 25 of 154) sorted by relevance

1234567

/frameworks/base/packages/SettingsLib/src/com/android/settingslib/fuelgauge/
DEstimate.kt43 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/
DInputMethodAndSubtypeUtil.java92 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 …]
DInputMethodAndSubtypeUtilCompat.java92 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/
DSqliteWrapper.java58 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/
DSqliteWrapper.java71 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/
DMemoryFileProviderTest.java38 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/
DImageUtils.java96 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/
DLocalTransportParameters.java34 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/
DDeviceConfigServiceTest.java169 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/
DSettingsObserver.java53 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/
DIResolverRankerService.aidl17 package android.service.resolver;
19 import android.service.resolver.IResolverRankerResult;
20 import android.service.resolver.ResolverTarget;
DIResolverRankerResult.aidl17 package android.service.resolver;
19 import android.service.resolver.ResolverTarget;
/frameworks/base/core/java/android/app/slice/
DSliceManager.java223 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/
DCallLog.java727 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 …]
DContacts.java446 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 …]
DTelephony.java419 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/
DHbpcdUtils.java33 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/
DProviderTestCase.java100 MockContentResolver resolver = new MockContentResolver(); in newResolverWithContentProviderFromSql() local
106 resolver, targetContextWrapper); in newResolverWithContentProviderFromSql()
110 resolver.addProvider(authority, provider); in newResolverWithContentProviderFromSql()
112 return resolver; in newResolverWithContentProviderFromSql()
DProviderTestCase2.java225 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/
DNotificationInlineImageCache.java43 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/
DKeyValueSettingObserver.java48 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/
DBackupAgentTimeoutParameters.java104 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()
DBackupManagerConstants.java105 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/
DVCardVerifier.java67 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/
DAsyncQueryHandler.java67 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()

1234567