/packages/services/Telecomm/src/com/android/server/telecom/ |
D | Timeouts.java | 100 private static long get(ContentResolver contentResolver, String key, long defaultValue) { in get() argument 101 return Settings.Secure.getLongForUser(contentResolver, PREFIX + key, defaultValue, in get() 102 contentResolver.getUserId()); in get() 111 public static long getNewOutgoingCallCancelMillis(ContentResolver contentResolver) { in getNewOutgoingCallCancelMillis() argument 112 return get(contentResolver, "new_outgoing_call_cancel_ms", 500L); in getNewOutgoingCallCancelMillis() 120 public static long getMaxNewOutgoingCallCancelMillis(ContentResolver contentResolver) { in getMaxNewOutgoingCallCancelMillis() argument 121 return get(contentResolver, "max_new_outgoing_call_cancel_ms", 10000L); in getMaxNewOutgoingCallCancelMillis() 129 public static long getDelayBetweenDtmfTonesMillis(ContentResolver contentResolver) { in getDelayBetweenDtmfTonesMillis() argument 130 return get(contentResolver, "delay_between_dtmf_tones_ms", 300L); in getDelayBetweenDtmfTonesMillis() 137 public static long getEmergencyCallTimeoutMillis(ContentResolver contentResolver) { in getEmergencyCallTimeoutMillis() argument [all …]
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/nfc/ |
D | NfcEnablerTest.java | 57 final ContentResolver contentResolver = mContext.getContentResolver(); in isToggleable_AirplaneModeOff_shouldReturnTrue() local 58 Settings.Global.putInt(contentResolver, Settings.Global.AIRPLANE_MODE_ON, 0); in isToggleable_AirplaneModeOff_shouldReturnTrue() 59 Settings.Global.putString(contentResolver, in isToggleable_AirplaneModeOff_shouldReturnTrue() 61 Settings.Global.putString(contentResolver, in isToggleable_AirplaneModeOff_shouldReturnTrue() 69 final ContentResolver contentResolver = mContext.getContentResolver(); in isToggleable_AirplaneModeOnNfcNotInAirplaneModeRadio_shouldReturnTrue() local 70 Settings.Global.putInt(contentResolver, Settings.Global.AIRPLANE_MODE_ON, 1); in isToggleable_AirplaneModeOnNfcNotInAirplaneModeRadio_shouldReturnTrue() 71 Settings.Global.putString(contentResolver, Settings.Global.AIRPLANE_MODE_RADIOS, ""); in isToggleable_AirplaneModeOnNfcNotInAirplaneModeRadio_shouldReturnTrue() 78 final ContentResolver contentResolver = mContext.getContentResolver(); in isToggleable_AirplaneModeOnNfcToggleable_shouldReturnTrue() local 79 Settings.Global.putInt(contentResolver, Settings.Global.AIRPLANE_MODE_ON, 1); in isToggleable_AirplaneModeOnNfcToggleable_shouldReturnTrue() 80 Settings.Global.putString(contentResolver, in isToggleable_AirplaneModeOnNfcToggleable_shouldReturnTrue() [all …]
|
/packages/apps/Camera2/src_pd/com/android/camera/util/ |
D | GservicesHelper.java | 24 public static String getDisallowedlistedResolutionsBack(ContentResolver contentResolver) { in getDisallowedlistedResolutionsBack() argument 28 public static String getDisallowedlistedResolutionsFront(ContentResolver contentResolver) { in getDisallowedlistedResolutionsFront() argument 32 public static boolean isCaptureModuleDisabled(ContentResolver contentResolver) { in isCaptureModuleDisabled() argument 36 public static boolean isJankStatisticsEnabled(ContentResolver contentResolver) { in isJankStatisticsEnabled() argument 40 public static int getCaptureSupportLevelOverrideBack(ContentResolver contentResolver) { in getCaptureSupportLevelOverrideBack() argument 44 public static int getCaptureSupportLevelOverrideFront(ContentResolver contentResolver) { in getCaptureSupportLevelOverrideFront() argument 48 public static int getMaxAllowedNativeMemoryMb(ContentResolver contentResolver) { in getMaxAllowedNativeMemoryMb() argument 52 public static int getMaxAllowedImageReaderCount(ContentResolver contentResolver) { in getMaxAllowedImageReaderCount() argument 56 public static boolean useCamera2ApiThroughPortabilityLayer(ContentResolver contentResolver) { in useCamera2ApiThroughPortabilityLayer() argument 61 public static boolean isGcamEnabled(ContentResolver contentResolver) { in isGcamEnabled() argument
|
/packages/apps/EmergencyInfo/tests/common/src/com/android/emergency/ |
D | ContactTestUtils.java | 32 public static boolean deleteContact(ContentResolver contentResolver, in deleteContact() argument 37 Cursor cursor = contentResolver.query(contactUri, null, null, null, null); in deleteContact() 48 contentResolver.delete(uri, null, null); in deleteContact() 63 public static Uri createContact(ContentResolver contentResolver, in createContact() argument 67 Uri rawContactUri = contentResolver.insert(ContactsContract.RawContacts.CONTENT_URI, in createContact() 70 insertStructuredName(contentResolver, rawContactId, name, values); in createContact() 71 return insertPhoneNumber(contentResolver, rawContactId, in createContact() 76 private static void insertStructuredName(ContentResolver contentResolver, in insertStructuredName() argument 83 contentResolver.insert(ContactsContract.Data.CONTENT_URI, values); in insertStructuredName() 86 private static Uri insertPhoneNumber(ContentResolver contentResolver, in insertPhoneNumber() argument [all …]
|
/packages/apps/DeskClock/src/com/android/deskclock/provider/ |
D | AlarmInstance.kt | 381 contentResolver: ContentResolver, in getInstancesByAlarmId() 384 return getInstances(contentResolver, InstancesColumns.ALARM_ID + "=" + alarmId) in getInstancesByAlarmId() 395 contentResolver: ContentResolver, in getNextUpcomingInstanceByAlarmId() 398 val alarmInstances = getInstancesByAlarmId(contentResolver, alarmId) in getNextUpcomingInstanceByAlarmId() 415 contentResolver: ContentResolver, in getInstancesByInstanceIdAndState() 419 return getInstances(contentResolver, in getInstancesByInstanceIdAndState() 429 contentResolver: ContentResolver, in getInstancesByState() 432 return getInstances(contentResolver, in getInstancesByState() 471 contentResolver: ContentResolver, in addInstance() 478 for (otherInstances in getInstances(contentResolver, dupSelector)) { in addInstance() [all …]
|
/packages/apps/TV/partner_support/src/com/google/android/tv/partner/support/ |
D | EpgInputs.java | 37 public static EpgInput queryEpgInput(ContentResolver contentResolver, String inputId) { in queryEpgInput() argument 39 for (EpgInput epgInput : queryEpgInputs(contentResolver)) { in queryEpgInput() 49 public static Set<EpgInput> queryEpgInputs(ContentResolver contentResolver) { in queryEpgInputs() argument 51 contentResolver.query(EpgContract.EpgInputs.CONTENT_URI, null, null, null, null)) { in queryEpgInputs() 70 public static Uri insert(ContentResolver contentResolver, EpgInput epgInput) { in insert() argument 71 return contentResolver.insert( in insert() 77 public static int update(ContentResolver contentResolver, EpgInput epgInput) { in update() argument 78 return contentResolver.update( in update()
|
/packages/apps/Calendar/tests/src/com/android/calendar/ |
D | DbTestUtils.java | 44 private final MockContentResolver contentResolver; field in DbTestUtils 50 private ContentResolver contentResolver; field in DbTestUtils.FakeContext 54 FakeContext(ContentResolver contentResolver, Resources resources) { in FakeContext() argument 55 this.contentResolver = contentResolver; in FakeContext() 61 return contentResolver; in getContentResolver() 178 this.contentResolver = new MockContentResolver(); in DbTestUtils() 179 this.context = new FakeContext(contentResolver, resources); in DbTestUtils() 186 return contentResolver; in getContentResolver()
|
/packages/apps/Camera2/src/com/android/camera/one/config/ |
D | OneCameraFeatureConfigCreator.java | 41 public static OneCameraFeatureConfig createDefault(ContentResolver contentResolver, in createDefault() argument 49 GcamHelper.determineHdrPlusSupportLevel(contentResolver, useCaptureModule); in createDefault() 51 buildCaptureModuleDetector(contentResolver), in createDefault() 54 GservicesHelper.getMaxAllowedImageReaderCount(contentResolver)); in createDefault() 58 final ContentResolver contentResolver) { in buildCaptureModuleDetector() argument 65 getCaptureSupportLevelOverride(characteristics, contentResolver); in buildCaptureModuleDetector() 160 CameraCharacteristics cameraCharacteristics, ContentResolver contentResolver) { 169 int override = GservicesHelper.getCaptureSupportLevelOverrideBack(contentResolver); 173 int override = GservicesHelper.getCaptureSupportLevelOverrideFront(contentResolver);
|
/packages/apps/Dialer/java/com/android/voicemail/impl/sync/ |
D | VoicemailsQueryHelper.java | 54 private ContentResolver contentResolver; field in VoicemailsQueryHelper 59 contentResolver = context.getContentResolver(); in VoicemailsQueryHelper() 91 Cursor cursor = contentResolver.query(sourceUri, PROJECTION, selection, null, null); in getLocalVoicemails() 136 return contentResolver.delete(Voicemails.CONTENT_URI, selectionStatement, null); in deleteFromDatabase() 141 contentResolver.delete( in deleteNonArchivedFromDatabase() 160 contentResolver.update(uri, contentValues, null, null); in markReadInDatabase() 184 contentResolver.update(uri, contentValues, null, null); in markCleanInDatabase() 192 contentResolver.update(uri, contentValues, null, null); in updateWithTranscription() 222 cursor = contentResolver.query(sourceUri, PROJECTION, whereClause, whereArgs, null); in isVoicemailUnique() 253 contentResolver.update(uri, contentValues, null, null); in markArchiveInDatabase() [all …]
|
/packages/apps/DeskClock/src/com/android/deskclock/alarms/ |
D | AlarmStateManager.kt | 411 val contentResolver: ContentResolver = context.getContentResolver() in <lambda>() constant 413 AlarmInstance.updateInstance(contentResolver, instance) in <lambda>() 433 val contentResolver: ContentResolver = context.getContentResolver() in <lambda>() constant 435 AlarmInstance.updateInstance(contentResolver, instance) in <lambda>() 455 val contentResolver: ContentResolver = context.getContentResolver() in <lambda>() constant 457 AlarmInstance.updateInstance(contentResolver, instance) in <lambda>() 477 val contentResolver: ContentResolver = context.getContentResolver() in <lambda>() constant 479 AlarmInstance.updateInstance(contentResolver, instance) in <lambda>() 499 val contentResolver: ContentResolver = context.getContentResolver() in <lambda>() constant 501 AlarmInstance.updateInstance(contentResolver, instance) in <lambda>() [all …]
|
/packages/apps/Gallery2/src/com/android/gallery3d/util/ |
D | SaveVideoFileUtils.java | 38 ContentResolver contentResolver, Uri uri, String defaultFolderName) { in getDstMp4FileInfo() argument 42 dstFileInfo.mDirectory = getSaveDirectory(contentResolver, uri); in getDstMp4FileInfo() 57 private static void querySource(ContentResolver contentResolver, Uri uri, in querySource() argument 61 cursor = contentResolver.query(uri, projection, null, null, null); in querySource() 74 private static File getSaveDirectory(ContentResolver contentResolver, Uri uri) { in getSaveDirectory() argument 76 querySource(contentResolver, uri, in getSaveDirectory() 92 ContentResolver contentResolver, Uri uri ) { in insertContent() argument 115 querySource(contentResolver, uri, projection, in insertContent() 137 return contentResolver.insert(Video.Media.EXTERNAL_CONTENT_URI, values); in insertContent()
|
/packages/providers/MediaProvider/tests/client/src/com/android/providers/media/client/ |
D | PublicVolumePlaylistTest.java | 76 ContentResolver contentResolver = context.getContentResolver(); in testEjectedVolume() local 77 MediaStore.waitForIdle(contentResolver); in testEjectedVolume() 81 final Uri playlist = contentResolver.insert(externalPlaylists, values); in testEjectedVolume() 96 final Uri audioUri = contentResolver.insert( in testEjectedVolume() 99 try (OutputStream out = contentResolver.openOutputStream(audioUri)) { in testEjectedVolume() 104 assertThat(contentResolver.insert(members, values)).isNotNull(); in testEjectedVolume() 109 try (Cursor c = contentResolver.query(members, new String[] { in testEjectedVolume() 116 try (Cursor c = contentResolver.query(members, new String[] { in testEjectedVolume()
|
D | PublicVolumeTest.java | 64 ContentResolver contentResolver = context.getContentResolver(); in testIncludeRecentlyUnmountedVolumes() local 65 MediaStore.waitForIdle(contentResolver); in testIncludeRecentlyUnmountedVolumes() 74 final Uri targetUri = contentResolver.insert( in testIncludeRecentlyUnmountedVolumes() 78 try (OutputStream out = contentResolver.openOutputStream(targetUri)) { in testIncludeRecentlyUnmountedVolumes() 90 try (Cursor c = contentResolver.query(MediaStore.Images.Media.EXTERNAL_CONTENT_URI, in testIncludeRecentlyUnmountedVolumes() 98 try (Cursor c = contentResolver.query(MediaStore.Images.Media.EXTERNAL_CONTENT_URI, in testIncludeRecentlyUnmountedVolumes() 106 try (Cursor c = contentResolver.query(MediaStore.Images.Media.EXTERNAL_CONTENT_URI, in testIncludeRecentlyUnmountedVolumes()
|
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/ |
D | ContactsManagerTest.java | 68 final MockContentResolver contentResolver = new MockContentResolver(); in setUp() local 69 contentResolver.addProvider(ContactsContract.AUTHORITY, mFakeContactsContentProvider); in setUp() 73 context.setContentResolver(contentResolver); in setUp() 144 private ContentResolver contentResolver; field in ContactsManagerTest.ContextWithMockContentResolver 146 public void setContentResolver(final ContentResolver contentResolver) { in setContentResolver() argument 147 this.contentResolver = contentResolver; in setContentResolver() 156 return contentResolver; in getContentResolver()
|
/packages/apps/Settings/src/com/android/settings/accessibility/ |
D | MagnificationCapabilities.java | 83 final ContentResolver contentResolver = context.getContentResolver(); in setCapabilities() local 85 Settings.Secure.putIntForUser(contentResolver, KEY_CAPABILITY, capabilities, in setCapabilities() 86 contentResolver.getUserId()); in setCapabilities() 98 final ContentResolver contentResolver = context.getContentResolver(); in getCapabilities() local 100 return Settings.Secure.getIntForUser(contentResolver, KEY_CAPABILITY, in getCapabilities() 101 MagnificationMode.FULLSCREEN, contentResolver.getUserId()); in getCapabilities()
|
/packages/apps/TV/tuner/SampleNetworkTuner/src/com/android/tv/tuner/sample/network/setup/ |
D | SampleNetworkTunerSetupActivity.java | 387 private final ContentResolver contentResolver; field in SampleNetworkTunerSetupActivity.FetchLineupTask 390 FetchLineupTask(ContentResolver contentResolver, String postalCode) { in FetchLineupTask() argument 391 this.contentResolver = contentResolver; in FetchLineupTask() 397 if (contentResolver == null || TextUtils.isEmpty(postalCode)) { in doInBackground() 400 return new ArrayList<>(Lineups.query(contentResolver, postalCode)); in doInBackground() 448 ContentResolver contentResolver = getContentResolver(); in doInBackground() local 453 EpgInputs.update(contentResolver, EpgInput.createEpgChannel(values)); in doInBackground() 456 EpgInput epgInput = EpgInputs.queryEpgInput(contentResolver, inputId); in doInBackground() 458 contentResolver.insert(EpgContract.EpgInputs.CONTENT_URI, values); in doInBackground() 461 EpgInputs.update(contentResolver, EpgInput.createEpgChannel(values)); in doInBackground() [all …]
|
/packages/apps/TV/tuner/SampleDvbTuner/src/com/android/tv/tuner/sample/dvb/setup/ |
D | SampleDvbTunerSetupActivity.java | 387 private final ContentResolver contentResolver; field in SampleDvbTunerSetupActivity.FetchLineupTask 390 FetchLineupTask(ContentResolver contentResolver, String postalCode) { in FetchLineupTask() argument 391 this.contentResolver = contentResolver; in FetchLineupTask() 397 if (contentResolver == null || TextUtils.isEmpty(postalCode)) { in doInBackground() 400 return new ArrayList<>(Lineups.query(contentResolver, postalCode)); in doInBackground() 448 ContentResolver contentResolver = getContentResolver(); in doInBackground() local 453 EpgInputs.update(contentResolver, EpgInput.createEpgChannel(values)); in doInBackground() 456 EpgInput epgInput = EpgInputs.queryEpgInput(contentResolver, inputId); in doInBackground() 458 contentResolver.insert(EpgContract.EpgInputs.CONTENT_URI, values); in doInBackground() 461 EpgInputs.update(contentResolver, EpgInput.createEpgChannel(values)); in doInBackground() [all …]
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/security/ |
D | ScreenPinningPreferenceControllerTest.java | 56 final ContentResolver contentResolver = mContext.getContentResolver(); in tearDown() local 57 Settings.System.putInt(contentResolver, Settings.System.LOCK_TO_APP_ENABLED, 0); in tearDown() 73 final ContentResolver contentResolver = mContext.getContentResolver(); in updateState_isOff_shouldDisableOffSummary() local 74 Settings.System.putInt(contentResolver, Settings.System.LOCK_TO_APP_ENABLED, 0); in updateState_isOff_shouldDisableOffSummary() 84 final ContentResolver contentResolver = mContext.getContentResolver(); in updateState_isOn_shouldDisableOnSummary() local 85 Settings.System.putInt(contentResolver, Settings.System.LOCK_TO_APP_ENABLED, 1); in updateState_isOn_shouldDisableOnSummary()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/privacy/ |
D | ShowClipAccessNotificationPreferenceControllerTest.java | 125 final ContentResolver contentResolver = mContext.getContentResolver(); in setProperty() local 127 contentResolver, Settings.Secure.CLIPBOARD_SHOW_ACCESS_NOTIFICATIONS, newValue); in setProperty() 131 final ContentResolver contentResolver = mContext.getContentResolver(); in clearProperty() local 133 contentResolver, Settings.Secure.CLIPBOARD_SHOW_ACCESS_NOTIFICATIONS, null); in clearProperty() 137 final ContentResolver contentResolver = mContext.getContentResolver(); in assertProperty() local 139 contentResolver, Settings.Secure.CLIPBOARD_SHOW_ACCESS_NOTIFICATIONS)) in assertProperty()
|
/packages/apps/Bluetooth/src/com/android/bluetooth/opp/ |
D | BluetoothOppSendFileInfo.java | 104 ContentResolver contentResolver = context.getContentResolver(); in generateFileInfo() local 119 contentType = contentResolver.getType(uri); in generateFileInfo() 122 metadataCursor = contentResolver.query(uri, new String[]{ in generateFileInfo() 183 AssetFileDescriptor fd = contentResolver.openAssetFileDescriptor(uri, "r"); in generateFileInfo() 203 fd = contentResolver.openAssetFileDescriptor(uri, "r"); in generateFileInfo() 222 is = (FileInputStream) contentResolver.openInputStream(uri); in generateFileInfo() 229 is = (FileInputStream) contentResolver.openInputStream(uri); in generateFileInfo()
|
/packages/apps/Dialer/java/com/android/dialer/app/calllog/ |
D | CallLogNotificationsQueryHelper.java | 77 ContentResolver contentResolver = context.getContentResolver(); in getInstance() local 81 createNewCallsQuery(context, contentResolver), in getInstance() 149 Context context, ContentResolver contentResolver) { in createNewCallsQuery() argument 151 return new DefaultNewCallsQuery(context.getApplicationContext(), contentResolver); in createNewCallsQuery() 340 private final ContentResolver contentResolver; field in CallLogNotificationsQueryHelper.DefaultNewCallsQuery 343 private DefaultNewCallsQuery(Context context, ContentResolver contentResolver) { in DefaultNewCallsQuery() argument 345 this.contentResolver = contentResolver; in DefaultNewCallsQuery() 390 contentResolver.query( in query() 429 contentResolver.query( in queryUnreadVoicemail()
|
/packages/apps/Bluetooth/src/com/android/bluetooth/btservice/storage/ |
D | DatabaseManager.java | 813 ContentResolver contentResolver = mAdapterService.getContentResolver(); in migrateSettingsGlobal() local 816 int a2dpConnectionPolicy = Settings.Global.getInt(contentResolver, in migrateSettingsGlobal() 819 int a2dpSinkConnectionPolicy = Settings.Global.getInt(contentResolver, in migrateSettingsGlobal() 822 int hearingaidConnectionPolicy = Settings.Global.getInt(contentResolver, in migrateSettingsGlobal() 825 int headsetConnectionPolicy = Settings.Global.getInt(contentResolver, in migrateSettingsGlobal() 828 int headsetClientConnectionPolicy = Settings.Global.getInt(contentResolver, in migrateSettingsGlobal() 831 int hidHostConnectionPolicy = Settings.Global.getInt(contentResolver, in migrateSettingsGlobal() 834 int mapConnectionPolicy = Settings.Global.getInt(contentResolver, in migrateSettingsGlobal() 837 int mapClientConnectionPolicy = Settings.Global.getInt(contentResolver, in migrateSettingsGlobal() 840 int panConnectionPolicy = Settings.Global.getInt(contentResolver, in migrateSettingsGlobal() [all …]
|
/packages/apps/Dialer/java/com/android/voicemail/impl/transcribe/ |
D | TranscriptionDbHelper.java | 51 private final ContentResolver contentResolver; field in TranscriptionDbHelper 56 this.contentResolver = context.getContentResolver(); in TranscriptionDbHelper() 68 try (Cursor cursor = contentResolver.query(uri, PROJECTION, null, null, null)) { in getTranscriptionAndState() 99 try (Cursor cursor = contentResolver.query(uri, PROJECTION, whereClause, whereArgs, null)) { in getUntranscribedVoicemails() 118 try (Cursor cursor = contentResolver.query(uri, PROJECTION, whereClause, whereArgs, null)) { in getTranscribingVoicemails() 154 int updatedCount = contentResolver.update(uri, values, null, null); in updateDatabase()
|
/packages/apps/Contacts/src/com/android/contacts/compat/ |
D | PinnedPositionsCompat.java | 41 public static void undemote(ContentResolver contentResolver, long contactId) { in undemote() argument 42 if (contentResolver == null) { in undemote() 46 PinnedPositions.undemote(contentResolver, contactId); in undemote() 49 contentResolver.call(ContactsContract.AUTHORITY_URI, UNDEMOTE_METHOD, in undemote()
|
/packages/apps/Settings/src/com/android/settings/development/graphicsdriver/ |
D | GraphicsDriverContentObserver.java | 53 public void register(ContentResolver contentResolver) { in register() argument 54 contentResolver.registerContentObserver( in register() 61 public void unregister(ContentResolver contentResolver) { in unregister() argument 62 contentResolver.unregisterContentObserver(this); in unregister()
|