Home
last modified time | relevance | path

Searched refs:contentResolver (Results 1 – 25 of 131) sorted by relevance

123456

/packages/services/Telecomm/src/com/android/server/telecom/
DTimeouts.java81 private static long get(ContentResolver contentResolver, String key, long defaultValue) { in get() argument
82 return Settings.Secure.getLong(contentResolver, PREFIX + key, defaultValue); in get()
91 public static long getNewOutgoingCallCancelMillis(ContentResolver contentResolver) { in getNewOutgoingCallCancelMillis() argument
92 return get(contentResolver, "new_outgoing_call_cancel_ms", 500L); in getNewOutgoingCallCancelMillis()
100 public static long getMaxNewOutgoingCallCancelMillis(ContentResolver contentResolver) { in getMaxNewOutgoingCallCancelMillis() argument
101 return get(contentResolver, "max_new_outgoing_call_cancel_ms", 10000L); in getMaxNewOutgoingCallCancelMillis()
109 public static long getDelayBetweenDtmfTonesMillis(ContentResolver contentResolver) { in getDelayBetweenDtmfTonesMillis() argument
110 return get(contentResolver, "delay_between_dtmf_tones_ms", 300L); in getDelayBetweenDtmfTonesMillis()
117 public static long getEmergencyCallTimeoutMillis(ContentResolver contentResolver) { in getEmergencyCallTimeoutMillis() argument
118 return get(contentResolver, "emergency_call_timeout_millis", 25000L /* 25 seconds */); in getEmergencyCallTimeoutMillis()
[all …]
/packages/apps/Settings/tests/robotests/src/com/android/settings/nfc/
DNfcEnablerTest.java57 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/
DGservicesHelper.java24 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/DeskClock/src/com/android/deskclock/provider/
DAlarmInstance.java170 public static List<AlarmInstance> getInstancesByAlarmId(ContentResolver contentResolver, in getInstancesByAlarmId() argument
172 return getInstances(contentResolver, ALARM_ID + "=" + alarmId); in getInstancesByAlarmId()
181 public static AlarmInstance getNextUpcomingInstanceByAlarmId(ContentResolver contentResolver, in getNextUpcomingInstanceByAlarmId() argument
183 final List<AlarmInstance> alarmInstances = getInstancesByAlarmId(contentResolver, alarmId); in getNextUpcomingInstanceByAlarmId()
200 ContentResolver contentResolver, long alarmInstanceId, int state) { in getInstancesByInstanceIdAndState() argument
201 return getInstances(contentResolver, _ID + "=" + alarmInstanceId + " AND " + ALARM_STATE + in getInstancesByInstanceIdAndState()
209 ContentResolver contentResolver, int state) { in getInstancesByState() argument
210 return getInstances(contentResolver, ALARM_STATE + "=" + state); in getInstancesByState()
239 public static AlarmInstance addInstance(ContentResolver contentResolver, in addInstance() argument
245 for (AlarmInstance otherInstances : getInstances(contentResolver, dupSelector)) { in addInstance()
[all …]
DAlarmInstance.kt381 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/EmergencyInfo/tests/common/src/com/android/emergency/
DContactTestUtils.java32 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/Calendar/tests/src/com/android/calendar/
DDbTestUtils.java44 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/TV/partner_support/src/com/google/android/tv/partner/support/
DEpgInputs.java37 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/DeskClock/src/com/android/deskclock/alarms/
DAlarmStateManager.kt412 val contentResolver: ContentResolver = context.getContentResolver() in <lambda>() constant
414 AlarmInstance.updateInstance(contentResolver, instance) in <lambda>()
434 val contentResolver: ContentResolver = context.getContentResolver() in <lambda>() constant
436 AlarmInstance.updateInstance(contentResolver, instance) in <lambda>()
456 val contentResolver: ContentResolver = context.getContentResolver() in <lambda>() constant
458 AlarmInstance.updateInstance(contentResolver, instance) in <lambda>()
478 val contentResolver: ContentResolver = context.getContentResolver() in <lambda>() constant
480 AlarmInstance.updateInstance(contentResolver, instance) in <lambda>()
500 val contentResolver: ContentResolver = context.getContentResolver() in <lambda>() constant
502 AlarmInstance.updateInstance(contentResolver, instance) in <lambda>()
[all …]
DAlarmStateManager.java359 ContentResolver contentResolver = context.getContentResolver(); in setSilentState() local
361 AlarmInstance.updateInstance(contentResolver, instance); in setSilentState()
381 ContentResolver contentResolver = context.getContentResolver(); in setLowNotificationState() local
383 AlarmInstance.updateInstance(contentResolver, instance); in setLowNotificationState()
403 ContentResolver contentResolver = context.getContentResolver(); in setHideNotificationState() local
405 AlarmInstance.updateInstance(contentResolver, instance); in setHideNotificationState()
425 ContentResolver contentResolver = context.getContentResolver(); in setHighNotificationState() local
427 AlarmInstance.updateInstance(contentResolver, instance); in setHighNotificationState()
447 ContentResolver contentResolver = context.getContentResolver(); in setFiredState() local
449 AlarmInstance.updateInstance(contentResolver, instance); in setFiredState()
[all …]
/packages/apps/Camera2/src/com/android/camera/one/config/
DOneCameraFeatureConfigCreator.java41 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/
DVoicemailsQueryHelper.java54 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/Car/libs/car-settings-lib/src/com/android/car/settingslib/util/
DProfileNameSaver.java62 public static void updateMeContactWith(String name, ContentResolver contentResolver) { in updateMeContactWith() argument
72 Cursor cursor = contentResolver.query( in updateMeContactWith()
99 meRawContactId = ContentUris.parseId(contentResolver.insert(PROFILE_URI, values)); in updateMeContactWith()
107 long structuredNameId = getProfileItem(meRawContactId, contentResolver); in updateMeContactWith()
109 contentResolver.insert(ContactsContract.Data.CONTENT_URI, values); in updateMeContactWith()
111 contentResolver.update(ContentUris.withAppendedId( in updateMeContactWith()
123 private static long getProfileItem(long profileContactId, ContentResolver contentResolver) { in getProfileItem() argument
132 Cursor cursor = contentResolver.query( in getProfileItem()
/packages/apps/Gallery2/src/com/android/gallery3d/util/
DSaveVideoFileUtils.java38 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/apps/TV/tuner/SampleDvbTuner/src/com/android/tv/tuner/sample/dvb/setup/
DSampleDvbTunerSetupActivity.java387 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/TV/tuner/SampleNetworkTuner/src/com/android/tv/tuner/sample/network/setup/
DSampleNetworkTunerSetupActivity.java387 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/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/
DContactsManagerTest.java68 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/tests/robotests/src/com/android/settings/security/
DScreenPinningPreferenceControllerTest.java56 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/Bluetooth/src/com/android/bluetooth/opp/
DBluetoothOppSendFileInfo.java104 ContentResolver contentResolver = context.getContentResolver(); in generateFileInfo() local
113 contentType = contentResolver.getType(uri); in generateFileInfo()
116 metadataCursor = contentResolver.query(uri, new String[]{ in generateFileInfo()
177 AssetFileDescriptor fd = contentResolver.openAssetFileDescriptor(uri, "r"); in generateFileInfo()
197 fd = contentResolver.openAssetFileDescriptor(uri, "r"); in generateFileInfo()
216 is = (FileInputStream) contentResolver.openInputStream(uri); in generateFileInfo()
223 is = (FileInputStream) contentResolver.openInputStream(uri); in generateFileInfo()
/packages/apps/Dialer/java/com/android/dialer/app/calllog/
DCallLogNotificationsQueryHelper.java77 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/
DDatabaseManager.java829 ContentResolver contentResolver = mAdapterService.getContentResolver(); in migrateSettingsGlobal() local
832 int a2dpConnectionPolicy = Settings.Global.getInt(contentResolver, in migrateSettingsGlobal()
835 int a2dpSinkConnectionPolicy = Settings.Global.getInt(contentResolver, in migrateSettingsGlobal()
838 int hearingaidConnectionPolicy = Settings.Global.getInt(contentResolver, in migrateSettingsGlobal()
841 int headsetConnectionPolicy = Settings.Global.getInt(contentResolver, in migrateSettingsGlobal()
844 int headsetClientConnectionPolicy = Settings.Global.getInt(contentResolver, in migrateSettingsGlobal()
847 int hidHostConnectionPolicy = Settings.Global.getInt(contentResolver, in migrateSettingsGlobal()
850 int mapConnectionPolicy = Settings.Global.getInt(contentResolver, in migrateSettingsGlobal()
853 int mapClientConnectionPolicy = Settings.Global.getInt(contentResolver, in migrateSettingsGlobal()
856 int panConnectionPolicy = Settings.Global.getInt(contentResolver, in migrateSettingsGlobal()
[all …]
/packages/apps/Dialer/java/com/android/voicemail/impl/transcribe/
DTranscriptionDbHelper.java51 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/Settings/tests/robotests/src/com/android/settings/network/
DPrivateDnsModeDialogPreferenceTest.java161 final ContentResolver contentResolver = mContext.getContentResolver(); in testOnClick_positiveButtonClicked_saveData() local
162 Settings.Global.putString(contentResolver, PRIVATE_DNS_MODE, PRIVATE_DNS_MODE_OFF); in testOnClick_positiveButtonClicked_saveData()
168 assertThat(Settings.Global.getString(contentResolver, PRIVATE_DNS_MODE)).isEqualTo( in testOnClick_positiveButtonClicked_saveData()
175 final ContentResolver contentResolver = mContext.getContentResolver(); in testOnClick_negativeButtonClicked_doNothing() local
176 Settings.Global.putString(contentResolver, PRIVATE_DNS_MODE, PRIVATE_DNS_MODE_OFF); in testOnClick_negativeButtonClicked_doNothing()
182 assertThat(Settings.Global.getString(contentResolver, in testOnClick_negativeButtonClicked_doNothing()
/packages/apps/Contacts/src/com/android/contacts/compat/
DPinnedPositionsCompat.java41 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/gamedriver/
DGameDriverContentObserver.java49 public void register(ContentResolver contentResolver) { in register() argument
50 contentResolver.registerContentObserver( in register()
54 public void unregister(ContentResolver contentResolver) { in unregister() argument
55 contentResolver.unregisterContentObserver(this); in unregister()

123456