Home
last modified time | relevance | path

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

123456789

/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/onehanded/
DOneHandedSettingsUtil.java82 public Uri registerSettingsKeyObserver(String key, ContentResolver resolver, in registerSettingsKeyObserver() argument
86 if (resolver != null && uriKey != null) { in registerSettingsKeyObserver()
87 resolver.registerContentObserver(uriKey, false, observer, newUserId); in registerSettingsKeyObserver()
98 public void unregisterSettingsKeyObserver(ContentResolver resolver, in unregisterSettingsKeyObserver() argument
100 if (resolver != null) { in unregisterSettingsKeyObserver()
101 resolver.unregisterContentObserver(observer); in unregisterSettingsKeyObserver()
110 public boolean getSettingsOneHandedModeEnabled(ContentResolver resolver, int userId) { in getSettingsOneHandedModeEnabled() argument
111 return Settings.Secure.getIntForUser(resolver, in getSettingsOneHandedModeEnabled()
120 public boolean setOneHandedModeEnabled(ContentResolver resolver, int enabled, int userId) { in setOneHandedModeEnabled() argument
121 return Settings.Secure.putIntForUser(resolver, in setOneHandedModeEnabled()
[all …]
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/fuelgauge/
DEstimate.kt44 val resolver = context.contentResolver in getCachedEstimateIfAvailable() constant
50 Settings.Global.getLong(resolver, in getCachedEstimateIfAvailable()
53 Settings.Global.getInt(resolver, in getCachedEstimateIfAvailable()
55 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()
DBatterySaverUtils.java245 ContentResolver resolver = context.getContentResolver(); in revertScheduleToNoneIfNeeded() local
246 final int currentMode = Global.getInt(resolver, Global.AUTOMATIC_POWER_SAVE_MODE, in revertScheduleToNoneIfNeeded()
249 Global.putInt(resolver, Global.LOW_POWER_MODE_TRIGGER_LEVEL, 0); in revertScheduleToNoneIfNeeded()
250 Global.putInt(resolver, Global.AUTOMATIC_POWER_SAVE_MODE, in revertScheduleToNoneIfNeeded()
262 final ContentResolver resolver = context.getContentResolver(); in getBatterySaverScheduleKey() local
263 final int mode = Settings.Global.getInt(resolver, Global.AUTOMATIC_POWER_SAVE_MODE, in getBatterySaverScheduleKey()
267 Settings.Global.getInt(resolver, Global.LOW_POWER_MODE_TRIGGER_LEVEL, 0); in getBatterySaverScheduleKey()
283 final ContentResolver resolver = context.getContentResolver(); in setBatterySaverScheduleMode() local
286 Settings.Global.putInt(resolver, Global.AUTOMATIC_POWER_SAVE_MODE, in setBatterySaverScheduleMode()
288 Settings.Global.putInt(resolver, Settings.Global.LOW_POWER_MODE_TRIGGER_LEVEL, 0); in setBatterySaverScheduleMode()
[all …]
/frameworks/base/telephony/common/com/google/android/mms/util/
DSqliteWrapper.java37 public static Cursor query(Context context, ContentResolver resolver, Uri uri, in query() argument
40 return resolver.query(uri, projection, selection, selectionArgs, sortOrder); in query()
48 public static int update(Context context, ContentResolver resolver, Uri uri, in update() argument
51 return resolver.update(uri, values, where, selectionArgs); in update()
59 public static int delete(Context context, ContentResolver resolver, Uri uri, in delete() argument
62 return resolver.delete(uri, where, selectionArgs); in delete()
70 public static Uri insert(Context context, ContentResolver resolver, in insert() argument
73 return resolver.insert(uri, values); in insert()
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/inputmethod/
DInputMethodAndSubtypeUtilCompat.java95 private static int getInputMethodSubtypeSelected(ContentResolver resolver) { in getInputMethodSubtypeSelected() argument
97 return Settings.Secure.getInt(resolver, in getInputMethodSubtypeSelected()
104 private static boolean isInputMethodSubtypeSelected(ContentResolver resolver) { in isInputMethodSubtypeSelected() argument
105 return getInputMethodSubtypeSelected(resolver) != NOT_A_SUBTYPE_ID; in isInputMethodSubtypeSelected()
108 private static void putSelectedInputMethodSubtype(ContentResolver resolver, int hashCode) { in putSelectedInputMethodSubtype() argument
109 Settings.Secure.putInt(resolver, Settings.Secure.SELECTED_INPUT_METHOD_SUBTYPE, hashCode); in putSelectedInputMethodSubtype()
114 ContentResolver resolver) { in getEnabledInputMethodsAndSubtypeList() argument
116 resolver, Settings.Secure.ENABLED_INPUT_METHODS); in getEnabledInputMethodsAndSubtypeList()
146 private static HashSet<String> getDisabledSystemIMEs(ContentResolver resolver) { in getDisabledSystemIMEs() argument
149 resolver, Settings.Secure.DISABLED_SYSTEM_INPUT_METHODS); in getDisabledSystemIMEs()
[all …]
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 …]
/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/packages/SystemUI/src/com/android/systemui/demomode/
DDemoModeAvailabilityTracker.kt45 val resolver = context.contentResolver in startTracking() constant
46 resolver.registerContentObserver( in startTracking()
48 resolver.registerContentObserver( in startTracking()
53 val resolver = context.contentResolver in stopTracking() constant
54 resolver.unregisterContentObserver(allowedObserver) in stopTracking()
55 resolver.unregisterContentObserver(onObserver) in stopTracking()
/frameworks/base/services/core/java/com/android/server/audio/
DSettingsAdapter.java40 public String getGlobalString(ContentResolver resolver, String name) { in getGlobalString() argument
41 return Settings.Global.getString(resolver, name); in getGlobalString()
50 public boolean putGlobalString(ContentResolver resolver, String name, String value) { in putGlobalString() argument
51 return Settings.Global.putString(resolver, name, value); in putGlobalString()
78 public String getSecureStringForUser(ContentResolver resolver, String name, int userHandle) { in getSecureStringForUser() argument
79 return Settings.Secure.getStringForUser(resolver, name, userHandle); in getSecureStringForUser()
/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/base/packages/SystemUI/src/com/android/systemui/util/animation/data/repository/
DAnimationStatusRepository.kt39 private val resolver: ContentResolver, in areAnimationsEnabled() constant in com.android.systemui.util.animation.data.repository.AnimationStatusRepositoryImpl
50 val initialValue = resolver.areAnimationsEnabled() in areAnimationsEnabled()
56 val updatedValue = resolver.areAnimationsEnabled() in areAnimationsEnabled()
61 resolver.registerContentObserver( in areAnimationsEnabled()
67 awaitClose { resolver.unregisterContentObserver(observer) } in areAnimationsEnabled()
/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.java40 public LocalTransportParameters(Handler handler, ContentResolver resolver) { in LocalTransportParameters() argument
41 super(handler, resolver, Settings.Secure.getUriFor(SETTING)); in LocalTransportParameters()
64 public String getSettingValue(ContentResolver resolver) { in getSettingValue() argument
65 return Settings.Secure.getString(resolver, SETTING); in getSettingValue()
/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;
/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/app/slice/
DSliceManager.java221 ContentResolver resolver = mContext.getContentResolver(); in getSliceDescendants() local
222 try (ContentProviderClient provider = resolver.acquireUnstableContentProviderClient(uri)) { in getSliceDescendants()
248 ContentResolver resolver = mContext.getContentResolver(); in bindSlice() local
249 try (ContentProviderClient provider = resolver.acquireUnstableContentProviderClient(uri)) { in bindSlice()
294 ContentResolver resolver = mContext.getContentResolver(); in mapIntentToUri() local
295 final Uri staticUri = resolveStatic(intent, resolver); in mapIntentToUri()
302 try (ContentProviderClient provider = resolver.acquireUnstableContentProviderClient(uri)) { in mapIntentToUri()
332 private Uri resolveStatic(@NonNull Intent intent, ContentResolver resolver) { in resolveStatic() argument
340 if (intentData != null && SliceProvider.SLICE_TYPE.equals(resolver.getType(intentData))) { in resolveStatic()
372 ContentResolver resolver = mContext.getContentResolver(); in bindSlice() local
[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/packages/SystemUI/src/com/android/systemui/screenshot/
DImageExporter.java100 public ImageExporter(ContentResolver resolver, FeatureFlags flags) { in ImageExporter() argument
101 mResolver = resolver; in ImageExporter()
289 Task(ContentResolver resolver, UUID requestId, Bitmap bitmap, ZonedDateTime captureTime,
292 this(resolver, requestId, bitmap, captureTime, format, quality, publish, owner, flags,
296 Task(ContentResolver resolver, UUID requestId, Bitmap bitmap, ZonedDateTime captureTime,
299 mResolver = resolver;
367 private static Uri createEntry(ContentResolver resolver, CompressFormat format,
380 Cursor cursor = resolver.query(
395 resolver.update(resultUri, values, null);
405 resultUri = resolver.insert(uriWithUserId, values);
[all …]
/frameworks/base/services/core/java/com/android/server/pm/
DSaferIntentUtils.java109 ComponentInfo info, ComponentResolverApi resolver, boolean isReceiver) { in infoToComponent() argument
112 return resolver.getReceiver(info.getComponentName()); in infoToComponent()
114 return resolver.getActivity(info.getComponentName()); in infoToComponent()
117 return resolver.getService(info.getComponentName()); in infoToComponent()
218 ComponentResolverApi resolver = null; in blockNullAction() local
232 if (resolver == null) { in blockNullAction()
233 resolver = computer.getComponentResolver(); in blockNullAction()
236 resolveInfo.getComponentInfo(), resolver, args.isReceiver); in blockNullAction()
274 final ComponentResolverApi resolver = computer.getComponentResolver(); in enforceIntentFilterMatching() local
293 final ParsedMainComponent comp = infoToComponent(info, resolver, args.isReceiver); in enforceIntentFilterMatching()
/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()
378 final ContentResolver resolver = context.getContentResolver(); in buildVCardForExportTest() local
381 final Cursor cursor = resolver.query(CONTACTS_TEST_CONTENT_URI, null, null, null, null); in buildVCardForExportTest()
/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()
/frameworks/base/services/backup/java/com/android/server/backup/
DBackupManagerConstants.java110 public BackupManagerConstants(Handler handler, ContentResolver resolver) { in BackupManagerConstants() argument
111 super(handler, resolver, Settings.Secure.getUriFor(SETTING)); in BackupManagerConstants()
114 public String getSettingValue(ContentResolver resolver) { in getSettingValue() argument
115 return Settings.Secure.getStringForUser(resolver, SETTING, resolver.getUserId()); in getSettingValue()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/row/
DNotificationInlineImageCache.java45 public void setImageResolver(NotificationInlineImageResolver resolver) { in setImageResolver() argument
46 mResolver = resolver; in setImageResolver()
91 PreloadImageTask(NotificationInlineImageResolver resolver) { in PreloadImageTask() argument
92 mResolver = resolver; in PreloadImageTask()
/frameworks/base/packages/SettingsProvider/test/src/com/android/providers/settings/
DDeviceConfigServiceTest.java220 private static void putWithContentProvider(ContentResolver resolver, String namespace, in putWithContentProvider() argument
222 putWithContentProvider(resolver, namespace, key, value, false); in putWithContentProvider()
225 private static void putWithContentProvider(ContentResolver resolver, String namespace, in putWithContentProvider() argument
233 resolver.call( in putWithContentProvider()
237 private static String getFromContentProvider(ContentResolver resolver, String namespace, in getFromContentProvider() argument
240 Bundle result = resolver.call( in getFromContentProvider()
246 private static boolean deleteFromContentProvider(ContentResolver resolver, String namespace, in deleteFromContentProvider() argument
249 Bundle result = resolver.call( in deleteFromContentProvider()
/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

123456789