/packages/providers/ContactsProvider/test_common/src/com/android/providers/contacts/testutil/ |
D | RawContactUtil.java | 36 public static void update(ContentResolver resolver, long rawContactId, in update() argument 39 resolver.update(uri, values, null, null); in update() 42 public static String[] queryByRawContactId(ContentResolver resolver, in queryByRawContactId() argument 46 Cursor cursor = resolver.query(uri, projection, null, null, null); in queryByRawContactId() 50 public static void delete(ContentResolver resolver, long rawContactId, in delete() argument 56 resolver.delete(uri, null, null); in delete() 59 public static long queryContactIdByRawContactId(ContentResolver resolver, long rawContactid) { in queryContactIdByRawContactId() argument 63 String[] result = RawContactUtil.queryByRawContactId(resolver, rawContactid, in queryContactIdByRawContactId() 71 public static boolean rawContactExistsById(ContentResolver resolver, long rawContactid) { in rawContactExistsById() argument 72 long contactId = queryContactIdByRawContactId(resolver, rawContactid); in rawContactExistsById() [all …]
|
D | DatabaseAsserts.java | 31 public static void assertDeleteIsUnsupported(ContentResolver resolver, Uri uri) { in assertDeleteIsUnsupported() argument 33 resolver.delete(uri, null, null); in assertDeleteIsUnsupported() 41 public static void assertInsertIsUnsupported(ContentResolver resolver, Uri uri) { in assertInsertIsUnsupported() argument 44 resolver.insert(uri, values); in assertInsertIsUnsupported() 57 public static ContactIdPair assertAndCreateContact(ContentResolver resolver) { in assertAndCreateContact() argument 58 long rawContactId = RawContactUtil.createRawContactWithName(resolver); in assertAndCreateContact() 60 long contactId = RawContactUtil.queryContactIdByRawContactId(resolver, rawContactId); in assertAndCreateContact() 71 public static ContactIdPair assertAndCreateContactWithName(ContentResolver resolver, in assertAndCreateContactWithName() argument 73 long rawContactId = RawContactUtil.createRawContactWithName(resolver, firstName, lastName); in assertAndCreateContactWithName() 75 long contactId = RawContactUtil.queryContactIdByRawContactId(resolver, rawContactId); in assertAndCreateContactWithName() [all …]
|
D | DataUtil.java | 34 public static void delete(ContentResolver resolver, long dataId) { in delete() argument 36 resolver.delete(uri, null, null); in delete() 39 public static void update(ContentResolver resolver, long dataId, ContentValues values) { in update() argument 41 resolver.update(uri, values, null, null); in update() 44 public static Uri insertStructuredName(ContentResolver resolver, long rawContactId, in insertStructuredName() argument 49 Uri resultUri = resolver.insert(ContactsContract.Data.CONTENT_URI, values); in insertStructuredName() 53 public static Uri insertStructuredName(ContentResolver resolver, long rawContactId, in insertStructuredName() argument 55 return insertStructuredName(resolver, rawContactId, givenName, familyName, in insertStructuredName() 60 ContentResolver resolver, long rawContactId, String givenName, String familyName, in insertStructuredName() argument 62 return insertStructuredName(resolver, rawContactId, givenName, familyName, phoneticFamily, in insertStructuredName() [all …]
|
D | ContactUtil.java | 33 public static void update(ContentResolver resolver, long contactId, in update() argument 36 resolver.update(uri, values, null, null); in update() 39 public static void delete(ContentResolver resolver, long contactId) { in delete() argument 41 resolver.delete(uri, null, null); in delete() 44 public static boolean recordExistsForContactId(ContentResolver resolver, long contactId) { in recordExistsForContactId() argument 49 Cursor cursor = resolver.query(uri, projection, null, null, null); in recordExistsForContactId() 56 public static long queryContactLastUpdatedTimestamp(ContentResolver resolver, long contactId) { in queryContactLastUpdatedTimestamp() argument 62 Cursor cursor = resolver.query(uri, projection, null, null, null); in queryContactLastUpdatedTimestamp()
|
D | DeletedContactUtil.java | 35 public static long queryDeletedTimestampForContactId(ContentResolver resolver, long contactId) { in queryDeletedTimestampForContactId() argument 40 Cursor cursor = resolver.query(uri, projection, null, null, null); in queryDeletedTimestampForContactId() 47 public static long getCount(ContentResolver resolver) { in getCount() argument 51 Cursor cursor = resolver.query(URI, projection, null, null, null); in getCount() 64 public static List<String[]> query(ContentResolver resolver, String[] projection) { in query() argument 65 Cursor cursor = resolver.query(URI, projection, null, null, null); in query() 74 public static List<String[]> querySinceTimestamp(ContentResolver resolver, String[] projection, in querySinceTimestamp() argument 78 Cursor cursor = resolver.query(URI, projection, selection, args, null); in querySinceTimestamp()
|
/packages/providers/TvProvider/tests/src/com/android/providers/tv/ |
D | Utils.java | 40 public static void clearTvProvider(ContentResolver resolver) { in clearTvProvider() argument 41 resolver.delete(Channels.CONTENT_URI, null, null); in clearTvProvider() 44 resolver.delete(TvContract.RecordedPrograms.CONTENT_URI, null, null); in clearTvProvider() 45 resolver.delete(TvContract.WatchNextPrograms.CONTENT_URI, null, null); in clearTvProvider() 191 public static long insertChannel(ContentResolver resolver) { in insertChannel() argument 194 Uri uri = resolver.insert(Channels.CONTENT_URI, values); in insertChannel() 200 ContentResolver resolver, long channelId, Program... programs) { in insertPrograms() argument 204 Uri uri = resolver.insert(TvContract.Programs.CONTENT_URI, values); in insertPrograms() 210 public static Set<Program> queryPrograms(ContentResolver resolver) { in queryPrograms() argument 217 resolver.query(TvContract.Programs.CONTENT_URI, projection, null, null, null); in queryPrograms() [all …]
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/testutils/shadow/ |
D | ShadowSecureSettings.java | 38 public static boolean putStringForUser(ContentResolver resolver, String name, String value, in putStringForUser() argument 40 final Table<Integer, String, Object> userTable = getUserTable(resolver); in putStringForUser() 52 public static String getStringForUser(ContentResolver resolver, String name, int userHandle) { in getStringForUser() argument 53 final Table<Integer, String, Object> userTable = getUserTable(resolver); in getStringForUser() 60 public static boolean putIntForUser(ContentResolver resolver, String name, int value, in putIntForUser() argument 62 final Table<Integer, String, Object> userTable = getUserTable(resolver); in putIntForUser() 70 public static int getIntForUser(ContentResolver resolver, String name, int def, in getIntForUser() argument 72 final Table<Integer, String, Object> userTable = getUserTable(resolver); in getIntForUser() 80 public static boolean putLongForUser(ContentResolver resolver, String name, long value, in putLongForUser() argument 82 final Table<Integer, String, Object> userTable = getUserTable(resolver); in putLongForUser() [all …]
|
/packages/apps/DocumentsUI/tests/unit/com/android/documentsui/archives/ |
D | ArchivesProviderTest.java | 80 final ContentResolver resolver = mContext.getContentResolver(); in testQueryRoots() local 82 try (final ContentProviderClient client = resolver.acquireUnstableContentProviderClient( in testQueryRoots() 100 final ContentResolver resolver = mContext.getContentResolver(); in testOpen_Success() local 103 final ContentProviderClient client = resolver.acquireUnstableContentProviderClient( in testOpen_Success() 108 final Cursor cursor = resolver.query(childrenUri, null, null, null, null, null); in testOpen_Success() 119 resolver.registerContentObserver(notificationUri, false, new ContentObserver(null) { in testOpen_Success() 129 final Cursor cursor = resolver.query(childrenUri, null, null, null, null, null); in testOpen_Success() 152 final ContentResolver resolver = mContext.getContentResolver(); in testOpen_Failure() local 155 final ContentProviderClient client = resolver.acquireUnstableContentProviderClient( in testOpen_Failure() 161 final Cursor cursor = resolver.query(childrenUri, null, null, null, null, null); in testOpen_Failure() [all …]
|
/packages/apps/Car/Settings/src/com/android/car/settings/inputmethod/ |
D | InputMethodUtil.java | 117 public static boolean isInputMethodEnabled(ContentResolver resolver, in isInputMethodEnabled() argument 119 sInputMethodSplitter.setString(getEnabledInputMethodsConcatenatedIds(resolver)); in isInputMethodEnabled() 132 public static void enableInputMethod(ContentResolver resolver, in enableInputMethod() argument 134 if (isInputMethodEnabled(resolver, inputMethodInfo)) { in enableInputMethod() 139 builder.append(getEnabledInputMethodsConcatenatedIds(resolver)); in enableInputMethod() 147 setEnabledInputMethodsConcatenatedIds(resolver, builder.toString()); in enableInputMethod() 188 private static String getEnabledInputMethodsConcatenatedIds(ContentResolver resolver) { in getEnabledInputMethodsConcatenatedIds() argument 189 return Settings.Secure.getString(resolver, Settings.Secure.ENABLED_INPUT_METHODS); in getEnabledInputMethodsConcatenatedIds() 192 private static String getDefaultInputMethodId(ContentResolver resolver) { in getDefaultInputMethodId() argument 193 return Settings.Secure.getString(resolver, Settings.Secure.DEFAULT_INPUT_METHOD); in getDefaultInputMethodId() [all …]
|
/packages/apps/Gallery2/src/com/android/gallery3d/data/ |
D | BucketHelper.java | 75 JobContext jc, ContentResolver resolver, int type) { in loadBucketEntries() argument 77 return loadBucketEntriesFromFilesTable(jc, resolver, type); in loadBucketEntries() 79 return loadBucketEntriesFromImagesAndVideoTable(jc, resolver, type); in loadBucketEntries() 84 ContentResolver resolver, Uri tableUri, HashMap<Integer, BucketEntry> buckets) { in updateBucketEntriesFromTable() argument 85 Cursor cursor = resolver.query(tableUri, PROJECTION_BUCKET_IN_ONE_TABLE, in updateBucketEntriesFromTable() 110 JobContext jc, ContentResolver resolver, int type) { in loadBucketEntriesFromImagesAndVideoTable() argument 114 jc, resolver, Images.Media.EXTERNAL_CONTENT_URI, buckets); in loadBucketEntriesFromImagesAndVideoTable() 118 jc, resolver, Video.Media.EXTERNAL_CONTENT_URI, buckets); in loadBucketEntriesFromImagesAndVideoTable() 132 JobContext jc, ContentResolver resolver, int type) { in loadBucketEntriesFromFilesTable() argument 135 Cursor cursor = resolver.query(uri, PROJECTION_BUCKET, null, null, null); in loadBucketEntriesFromFilesTable() [all …]
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/slices/ |
D | SliceBroadcastReceiverTest.java | 101 final ContentResolver resolver = mock(ContentResolver.class); in onReceive_toggleChanged() local 102 doReturn(resolver).when(mContext).getContentResolver(); in onReceive_toggleChanged() 121 verify(resolver).notifyChange(uri, null); in onReceive_toggleChanged() 127 final ContentResolver resolver = spy(mContext.getContentResolver()); in toggleUpdate_synchronously_notifyChange_should_be_called() local 128 doReturn(resolver).when(mContext).getContentResolver(); in toggleUpdate_synchronously_notifyChange_should_be_called() 155 verify(resolver).notifyChange(expectedUri, null); in toggleUpdate_synchronously_notifyChange_should_be_called() 161 final ContentResolver resolver = spy(mContext.getContentResolver()); in toggleUpdate_asynchronously_notifyChange_should_not_be_called() local 162 doReturn(resolver).when(mContext).getContentResolver(); in toggleUpdate_asynchronously_notifyChange_should_not_be_called() 180 verify(resolver, never()).notifyChange(null, null); in toggleUpdate_asynchronously_notifyChange_should_not_be_called() 192 final ContentResolver resolver = mock(ContentResolver.class); in onReceive_sliderChanged() local [all …]
|
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/testutils/ |
D | ShadowSecureSettings.java | 32 protected static int getInt(ContentResolver resolver, String name) { in getInt() argument 36 ReflectionHelpers.ClassParameter.from(ContentResolver.class, resolver), in getInt() 41 protected static int getInt(ContentResolver resolver, String name, int def) { in getInt() argument 45 ReflectionHelpers.ClassParameter.from(ContentResolver.class, resolver), in getInt() 51 protected static int getIntForUser(ContentResolver resolver, String name, int def, in getIntForUser() argument 56 ReflectionHelpers.ClassParameter.from(ContentResolver.class, resolver), in getIntForUser() 63 protected static boolean putInt(ContentResolver resolver, String name, int value) { in putInt() argument 67 ReflectionHelpers.ClassParameter.from(ContentResolver.class, resolver), in putInt() 73 protected static boolean putIntForUser(ContentResolver resolver, String name, int value, in putIntForUser() argument 78 ReflectionHelpers.ClassParameter.from(ContentResolver.class, resolver), in putIntForUser()
|
/packages/providers/MediaProvider/src/com/android/providers/media/scan/ |
D | PlaylistResolver.java | 63 @NonNull ContentResolver resolver, @NonNull Uri uri) throws IOException { in resolvePlaylist() 66 try (Cursor cursor = resolver.query(uri, new String[] { in resolvePlaylist() 81 return resolvePlaylistM3u(resolver, uri, file); in resolvePlaylist() 83 return resolvePlaylistPls(resolver, uri, file); in resolvePlaylist() 86 return resolvePlaylistWpl(resolver, uri, file); in resolvePlaylist() 93 @NonNull ContentResolver resolver, @NonNull Uri uri, @NonNull File file) in resolvePlaylistM3u() 106 res.add(resolvePlaylistItem(resolver, uri, itemIndex, itemFile)); in resolvePlaylistM3u() 116 @NonNull ContentResolver resolver, @NonNull Uri uri, @NonNull File file) in resolvePlaylistPls() 130 res.add(resolvePlaylistItem(resolver, uri, itemIndex, itemFile)); in resolvePlaylistPls() 140 @NonNull ContentResolver resolver, @NonNull Uri uri, @NonNull File file) in resolvePlaylistWpl() [all …]
|
/packages/providers/MediaProvider/src/com/android/providers/media/ |
D | MediaDocumentsProvider.java | 470 final ContentResolver resolver = getContext().getContentResolver(); in getDocumentMetadataFromIndex() local 474 cursor = resolver.query( in getDocumentMetadataFromIndex() 555 final ContentResolver resolver = getContext().getContentResolver(); in queryDocument() local 568 cursor = resolver.query(Images.Media.EXTERNAL_CONTENT_URI, in queryDocument() 577 cursor = resolver.query(Images.Media.EXTERNAL_CONTENT_URI, in queryDocument() 589 cursor = resolver.query(Video.Media.EXTERNAL_CONTENT_URI, in queryDocument() 598 cursor = resolver.query(Video.Media.EXTERNAL_CONTENT_URI, in queryDocument() 610 cursor = resolver.query(Artists.EXTERNAL_CONTENT_URI, in queryDocument() 619 cursor = resolver.query(Albums.EXTERNAL_CONTENT_URI, in queryDocument() 628 cursor = resolver.query(Audio.Media.EXTERNAL_CONTENT_URI, in queryDocument() [all …]
|
/packages/apps/Camera2/src/com/android/camera/ |
D | Storage.java | 100 public Uri addImage(ContentResolver resolver, String title, long date, in addImage() argument 104 return addImage(resolver, title, date, location, orientation, exif, jpeg, width, height, in addImage() 129 public Uri addImage(ContentResolver resolver, String title, long date, in addImage() argument 135 return addImageToMediaStore(resolver, title, date, location, orientation, data.length, in addImage() 159 public Uri addImageToMediaStore(ContentResolver resolver, String title, long date, in addImageToMediaStore() argument 167 uri = resolver.insert(Media.EXTERNAL_CONTENT_URI, values); in addImageToMediaStore() 168 writeBitmap(uri, exif, bitmap, resolver); in addImageToMediaStore() 177 resolver.delete(uri, null, null); in addImageToMediaStore() 183 private void writeBitmap(Uri uri, ExifInterface exif, Bitmap bitmap, ContentResolver resolver) in writeBitmap() argument 185 OutputStream os = resolver.openOutputStream(uri); in writeBitmap() [all …]
|
D | MediaSaverImpl.java | 146 private final ContentResolver resolver; field in MediaSaverImpl.ImageSaveTask 151 ExifInterface exif, ContentResolver resolver, in ImageSaveTask() argument 162 this.resolver = resolver; in ImageSaveTask() 183 resolver, title, date, loc, orientation, exif, data, width, height, in doInBackground() 208 private final ContentResolver resolver; field in MediaSaverImpl.VideoSaveTask 215 this.resolver = r; in VideoSaveTask() 223 uri = resolver.insert(videoTable, values); in doInBackground() 233 resolver.update(uri, values, null, null); in doInBackground()
|
/packages/apps/Bluetooth/src/com/android/bluetooth/map/ |
D | SmsMmsContacts.java | 70 public String getPhoneNumber(ContentResolver resolver, long id) { in getPhoneNumber() argument 75 fillPhoneCache(resolver); in getPhoneNumber() 79 public static String getPhoneNumberUncached(ContentResolver resolver, long id) { in getPhoneNumberUncached() argument 81 Cursor c = resolver.query(ADDRESS_URI, ADDRESS_PROJECTION, where, null, null); in getPhoneNumberUncached() 114 private void fillPhoneCache(ContentResolver resolver) { in fillPhoneCache() argument 115 Cursor c = resolver.query(ADDRESS_URI, ADDRESS_PROJECTION, null, null, null); in fillPhoneCache() 145 public MapContact getContactNameFromPhone(String phone, ContentResolver resolver) { in getContactNameFromPhone() argument 146 return getContactNameFromPhone(phone, resolver, null); in getContactNameFromPhone() 155 public MapContact getContactNameFromPhone(String phone, ContentResolver resolver, in getContactNameFromPhone() argument 187 Cursor c = resolver.query(uri, CONTACT_PROJECTION, selection, selectionArgs, null); in getContactNameFromPhone()
|
/packages/apps/Messaging/src/com/android/messaging/mmslib/ |
D | SqliteWrapper.java | 37 public static Cursor query(Context context, ContentResolver resolver, Uri uri, in query() argument 40 return resolver.query(uri, projection, selection, selectionArgs, sortOrder); in query() 50 public static int update(Context context, ContentResolver resolver, Uri uri, in update() argument 53 return resolver.update(uri, values, where, selectionArgs); in update() 63 public static int delete(Context context, ContentResolver resolver, Uri uri, in delete() argument 66 return resolver.delete(uri, where, selectionArgs); in delete() 76 public static Uri insert(Context context, ContentResolver resolver, in insert() argument 79 return resolver.insert(uri, values); in insert()
|
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/ |
D | ContactsActor.java | 101 public MockContentResolver resolver; field in ContactsActor 315 resolver = new MockContentResolver(); in ContactsActor() 316 context = new RestrictionMockContext(overallContext, packageName, resolver, in ContactsActor() 359 mProviderContext = new IsolatedContext(resolver, targetContextWrapper) { in ContactsActor() 451 resolver.addProvider(a, provider); in addProvider() 452 resolver.addProvider("0@" + a, provider); in addProvider() 513 ContentResolver resolver, Set<String> grantedPermissions, in RestrictionMockContext() argument 517 mResolver = resolver; in RestrictionMockContext() 641 Uri rawContactUri = resolver.insert(RawContacts.CONTENT_URI, values); in createRawContact() 663 Uri dataUri = resolver.insert(insertUri, values); in createName() [all …]
|
/packages/apps/StorageManager/robotests/src/com/android/storagemanager/automatic/ |
D | AutomaticStorageManagementJobServiceTest.java | 210 ContentResolver resolver = mContext.getContentResolver(); in testNonDefaultDaysToRetain() local 211 Settings.Secure.putInt(resolver, Settings.Secure.AUTOMATIC_STORAGE_MANAGER_DAYS_TO_RETAIN, in testNonDefaultDaysToRetain() 266 ContentResolver resolver = mContext.getContentResolver(); in disableSmartStorageIfPastThreshold() local 279 resolver, Settings.Secure.AUTOMATIC_STORAGE_MANAGER_ENABLED)) in disableSmartStorageIfPastThreshold() 285 ContentResolver resolver = mContext.getContentResolver(); in dontDisableSmartStorageIfPastThresholdAndDisabledInThePast() local 288 resolver, Settings.Secure.AUTOMATIC_STORAGE_MANAGER_TURNED_OFF_BY_POLICY, 1); in dontDisableSmartStorageIfPastThresholdAndDisabledInThePast() 300 resolver, Settings.Secure.AUTOMATIC_STORAGE_MANAGER_ENABLED)) in dontDisableSmartStorageIfPastThresholdAndDisabledInThePast() 306 ContentResolver resolver = mContext.getContentResolver(); in logDisabledByPolicyIfPastThreshold() local 319 resolver, in logDisabledByPolicyIfPastThreshold() 326 ContentResolver resolver = mContext.getContentResolver(); in dontDisableSmartStorageIfNotPastThreshold() local [all …]
|
/packages/apps/Contacts/src/com/android/contacts/ |
D | ContactSaveService.java | 416 ContentResolver resolver = getContentResolver(); in createRawContact() local 419 results = resolver.applyBatch(ContactsContract.AUTHORITY, operations); in createRawContact() 425 callbackIntent.setData(RawContacts.getContactLookupUri(resolver, rawContactUri)); in createRawContact() 506 final ContentResolver resolver = getContentResolver(); in saveContact() local 537 … final int subsetCount = applyDiffSubset(diff, numberProcessed, results, resolver); in saveContact() 563 Cursor c = resolver.query(Profile.CONTENT_URI, in saveContact() 581 lookupUri = RawContacts.getContactLookupUri(resolver, rawContactUri); in saveContact() 629 resolver, sb.toString(), null, null); in saveContact() 681 ContentProviderResult[] results, ContentResolver resolver) in applyDiffSubset() argument 686 final ContentProviderResult[] subsetResult = resolver.applyBatch(ContactsContract in applyDiffSubset() [all …]
|
/packages/apps/LegacyCamera/src/com/android/camera/ |
D | Thumbnail.java | 155 public static Thumbnail getLastThumbnail(ContentResolver resolver) { in getLastThumbnail() argument 156 Media image = getLastImageThumbnail(resolver); in getLastThumbnail() 157 Media video = getLastVideoThumbnail(resolver); in getLastThumbnail() 165 bitmap = Images.Thumbnails.getThumbnail(resolver, image.id, in getLastThumbnail() 169 bitmap = Video.Thumbnails.getThumbnail(resolver, video.id, in getLastThumbnail() 175 if (Util.isUriValid(lastMedia.uri, resolver)) { in getLastThumbnail() 195 public static Media getLastImageThumbnail(ContentResolver resolver) { in getLastImageThumbnail() argument 207 cursor = resolver.query(query, projection, selection, null, order); in getLastImageThumbnail() 221 private static Media getLastVideoThumbnail(ContentResolver resolver) { in getLastVideoThumbnail() argument 232 cursor = resolver.query(query, projection, selection, null, order); in getLastVideoThumbnail()
|
/packages/apps/Launcher3/src/com/android/launcher3/util/ |
D | VibratorWrapper.java | 59 final ContentResolver resolver = context.getContentResolver(); in VibratorWrapper() local 60 mIsHapticFeedbackEnabled = isHapticFeedbackEnabled(resolver); in VibratorWrapper() 64 mIsHapticFeedbackEnabled = isHapticFeedbackEnabled(resolver); in VibratorWrapper() 67 resolver.registerContentObserver(Settings.System.getUriFor(HAPTIC_FEEDBACK_ENABLED), in VibratorWrapper() 74 private boolean isHapticFeedbackEnabled(ContentResolver resolver) { in isHapticFeedbackEnabled() argument 75 return Settings.System.getInt(resolver, HAPTIC_FEEDBACK_ENABLED, 0) == 1; in isHapticFeedbackEnabled()
|
/packages/modules/ExtServices/src/android/ext/services/notification/ |
D | AssistantSettings.java | 68 private AssistantSettings(Handler handler, ContentResolver resolver, int userId, in AssistantSettings() argument 72 mResolver = resolver; in AssistantSettings() 78 Handler handler, ContentResolver resolver, int userId, Runnable onUpdateRunnable) { in createAndRegister() argument 80 new AssistantSettings(handler, resolver, userId, onUpdateRunnable); in createAndRegister() 91 Handler handler, ContentResolver resolver, int userId, Runnable onUpdateRunnable) { in createForTesting() argument 92 return new AssistantSettings(handler, resolver, userId, onUpdateRunnable); in createForTesting() 173 AssistantSettings createAndRegister(Handler handler, ContentResolver resolver, int userId, in createAndRegister() argument
|
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/fuelgauge/batterysaver/ |
D | BatterySaverScheduleRadioButtonsController.java | 54 final ContentResolver resolver = mContext.getContentResolver(); in getDefaultKey() local 56 final int mode = Settings.Global.getInt(resolver, Global.AUTOMATIC_POWER_SAVE_MODE, in getDefaultKey() 62 Settings.Global.getInt(resolver, Global.LOW_POWER_MODE_TRIGGER_LEVEL, 0); in getDefaultKey() 76 final ContentResolver resolver = mContext.getContentResolver(); in setDefaultKey() local 111 Settings.Global.putInt(resolver, Global.AUTOMATIC_POWER_SAVE_MODE, mode); in setDefaultKey() 113 Settings.Global.putInt(resolver, Global.LOW_POWER_MODE_TRIGGER_LEVEL, triggerLevel); in setDefaultKey()
|