/packages/services/Telecomm/src/com/android/server/telecom/ |
D | Timeouts.java | 51 private static long get(ContentResolver contentResolver, String key, long defaultValue) { in get() argument 52 return Settings.Secure.getLong(contentResolver, PREFIX + key, defaultValue); in get() 60 public static long getDirectToVoicemailMillis(ContentResolver contentResolver) { in getDirectToVoicemailMillis() argument 61 return get(contentResolver, "direct_to_voicemail_ms", 500L); in getDirectToVoicemailMillis() 70 public static long getNewOutgoingCallCancelMillis(ContentResolver contentResolver) { in getNewOutgoingCallCancelMillis() argument 71 return get(contentResolver, "new_outgoing_call_cancel_ms", 400L); in getNewOutgoingCallCancelMillis() 79 public static long getDelayBetweenDtmfTonesMillis(ContentResolver contentResolver) { in getDelayBetweenDtmfTonesMillis() argument 80 return get(contentResolver, "delay_between_dtmf_tones_ms", 300L); in getDelayBetweenDtmfTonesMillis() 87 public static long getEmergencyCallTimeoutMillis(ContentResolver contentResolver) { in getEmergencyCallTimeoutMillis() argument 88 return get(contentResolver, "emergency_call_timeout_millis", 25000L /* 25 seconds */); in getEmergencyCallTimeoutMillis() [all …]
|
/packages/apps/Camera2/src_pd/com/android/camera/util/ |
D | GservicesHelper.java | 24 public static String getBlacklistedResolutionsBack(ContentResolver contentResolver) { in getBlacklistedResolutionsBack() argument 28 public static String getBlacklistedResolutionsFront(ContentResolver contentResolver) { in getBlacklistedResolutionsFront() 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/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.java | 162 public static List<AlarmInstance> getInstancesByAlarmId(ContentResolver contentResolver, in getInstancesByAlarmId() argument 164 return getInstances(contentResolver, ALARM_ID + "=" + alarmId); in getInstancesByAlarmId() 173 public static AlarmInstance getNextUpcomingInstanceByAlarmId(ContentResolver contentResolver, in getNextUpcomingInstanceByAlarmId() argument 175 final List<AlarmInstance> alarmInstances = getInstancesByAlarmId(contentResolver, alarmId); in getNextUpcomingInstanceByAlarmId() 192 ContentResolver contentResolver, long alarmInstanceId, int state) { in getInstancesByInstanceIdAndState() argument 193 return getInstances(contentResolver, _ID + "=" + alarmInstanceId + " AND " + ALARM_STATE + in getInstancesByInstanceIdAndState() 201 ContentResolver contentResolver, int state) { in getInstancesByState() argument 202 return getInstances(contentResolver, ALARM_STATE + "=" + state); in getInstancesByState() 231 public static AlarmInstance addInstance(ContentResolver contentResolver, in addInstance() argument 237 for (AlarmInstance otherInstances : getInstances(contentResolver, dupSelector)) { in addInstance() [all …]
|
D | Alarm.java | 214 public static Alarm addAlarm(ContentResolver contentResolver, Alarm alarm) { in addAlarm() argument 216 Uri uri = contentResolver.insert(CONTENT_URI, values); in addAlarm() 221 public static boolean updateAlarm(ContentResolver contentResolver, Alarm alarm) { in updateAlarm() argument 224 long rowsUpdated = contentResolver.update(getUri(alarm.id), values, null, null); in updateAlarm() 228 public static boolean deleteAlarm(ContentResolver contentResolver, long alarmId) { in deleteAlarm() argument 230 int deletedRows = contentResolver.delete(getUri(alarmId), "", null); in deleteAlarm()
|
/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() 132 CameraCharacteristics cameraCharacteristics, ContentResolver contentResolver) { 141 int override = GservicesHelper.getCaptureSupportLevelOverrideBack(contentResolver); 145 int override = GservicesHelper.getCaptureSupportLevelOverrideFront(contentResolver);
|
/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() 174 this.contentResolver = new MockContentResolver(); in DbTestUtils() 175 this.context = new FakeContext(contentResolver, resources); in DbTestUtils() 182 return contentResolver; in getContentResolver()
|
/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/apps/TV/src/com/android/tv/util/ |
D | AsyncDbTask.java | 99 public AsyncQueryTask(ContentResolver contentResolver, Uri uri, String[] projection, in AsyncQueryTask() argument 101 mContentResolver = contentResolver; in AsyncQueryTask() 176 public AsyncQueryListTask(ContentResolver contentResolver, Uri uri, String[] projection, in AsyncQueryListTask() argument 178 super(contentResolver, uri, projection, selection, selectionArgs, orderBy); in AsyncQueryListTask() 219 public AsyncQueryItemTask(ContentResolver contentResolver, Uri uri, String[] projection, in AsyncQueryItemTask() argument 221 super(contentResolver, uri, projection, selection, selectionArgs, orderBy); in AsyncQueryItemTask() 264 public AsyncChannelQueryTask(ContentResolver contentResolver) { in AsyncChannelQueryTask() argument 265 super(contentResolver, TvContract.Channels.CONTENT_URI, Channel.PROJECTION, in AsyncChannelQueryTask() 293 public LoadProgramsForChannelTask(ContentResolver contentResolver, long channelId, in LoadProgramsForChannelTask() argument 295 super(contentResolver, period == null in LoadProgramsForChannelTask()
|
/packages/apps/UnifiedEmail/src/com/android/mail/compose/ |
D | AttachmentsView.java | 223 final ContentResolver contentResolver = getContext().getContentResolver(); in generateLocalAttachment() local 224 String contentType = contentResolver.getType(contentUri); in generateLocalAttachment() 237 metadataCursor = contentResolver.query( in generateLocalAttachment() 259 metadataCursor = getOptionalColumn(contentResolver, contentUri, in generateLocalAttachment() 271 getOptionalColumn(contentResolver, contentUri, OpenableColumns.SIZE); in generateLocalAttachment() 276 attachment.size = getSizeFromFile(contentUri, contentResolver); in generateLocalAttachment() 290 attachment.size = getSizeFromFile(contentUri, contentResolver); in generateLocalAttachment() 325 private static int getSizeFromFile(Uri uri, ContentResolver contentResolver) { in getSizeFromFile() argument 329 file = contentResolver.openFileDescriptor(uri, "r"); in getSizeFromFile() 351 private static Cursor getOptionalColumn(ContentResolver contentResolver, Uri uri, in getOptionalColumn() argument [all …]
|
/packages/apps/Dialer/src/com/android/dialer/calllog/ |
D | CallLogNotificationsHelper.java | 53 ContentResolver contentResolver = context.getContentResolver(); in getInstance() local 56 createNewCallsQuery(context, contentResolver), in getInstance() 57 createNameLookupQuery(context, contentResolver), in getInstance() 215 ContentResolver contentResolver) { in createNewCallsQuery() argument 217 return new DefaultNewCallsQuery(context.getApplicationContext(), contentResolver); in createNewCallsQuery() 249 private DefaultNewCallsQuery(Context context, ContentResolver contentResolver) { in DefaultNewCallsQuery() argument 251 mContentResolver = contentResolver; in DefaultNewCallsQuery() 313 ContentResolver contentResolver) { in createNameLookupQuery() argument 314 return new DefaultNameLookupQuery(context.getApplicationContext(), contentResolver); in createNameLookupQuery() 328 private DefaultNameLookupQuery(Context context, ContentResolver contentResolver) { in DefaultNameLookupQuery() argument [all …]
|
/packages/apps/DeskClock/src/com/android/deskclock/alarms/ |
D | AlarmStateManager.java | 358 ContentResolver contentResolver = context.getContentResolver(); in setSilentState() local 360 AlarmInstance.updateInstance(contentResolver, instance); in setSilentState() 380 ContentResolver contentResolver = context.getContentResolver(); in setLowNotificationState() local 382 AlarmInstance.updateInstance(contentResolver, instance); in setLowNotificationState() 402 ContentResolver contentResolver = context.getContentResolver(); in setHideNotificationState() local 404 AlarmInstance.updateInstance(contentResolver, instance); in setHideNotificationState() 424 ContentResolver contentResolver = context.getContentResolver(); in setHighNotificationState() local 426 AlarmInstance.updateInstance(contentResolver, instance); in setHighNotificationState() 446 ContentResolver contentResolver = context.getContentResolver(); in setFiredState() local 448 AlarmInstance.updateInstance(contentResolver, instance); in setFiredState() [all …]
|
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/ |
D | ContactsManagerTest.java | 59 final MockContentResolver contentResolver = new MockContentResolver(); in setUp() local 60 contentResolver.addProvider(ContactsContract.AUTHORITY, mFakeContactsContentProvider); in setUp() 63 context.setContentResolver(contentResolver); in setUp() 133 private ContentResolver contentResolver; field in ContactsManagerTest.ContextWithMockContentResolver 135 public void setContentResolver(final ContentResolver contentResolver) { in setContentResolver() argument 136 this.contentResolver = contentResolver; in setContentResolver() 145 return contentResolver; in getContentResolver()
|
/packages/apps/Settings/src/com/android/settings/accessibility/ |
D | SettingsContentObserver.java | 30 public void register(ContentResolver contentResolver) { in register() argument 31 contentResolver.registerContentObserver(Settings.Secure.getUriFor( in register() 33 contentResolver.registerContentObserver(Settings.Secure.getUriFor( in register() 37 public void unregister(ContentResolver contentResolver) { in unregister() argument 38 contentResolver.unregisterContentObserver(this); in unregister()
|
/packages/apps/Bluetooth/src/com/android/bluetooth/opp/ |
D | BluetoothOppSendFileInfo.java | 102 ContentResolver contentResolver = context.getContentResolver(); in generateFileInfo() local 111 contentType = contentResolver.getType(uri); in generateFileInfo() 114 metadataCursor = contentResolver.query(uri, new String[] { in generateFileInfo() 154 AssetFileDescriptor fd = contentResolver.openAssetFileDescriptor(uri, "r"); in generateFileInfo() 175 fd = contentResolver.openAssetFileDescriptor(uri, "r"); in generateFileInfo() 192 is = (FileInputStream) contentResolver.openInputStream(uri); in generateFileInfo() 199 is = (FileInputStream) contentResolver.openInputStream(uri); in generateFileInfo()
|
/packages/apps/Contacts/src/com/android/contacts/compat/ |
D | PinnedPositionsCompat.java | 43 public static void undemote(ContentResolver contentResolver, long contactId) { in undemote() argument 44 if (contentResolver == null) { in undemote() 48 PinnedPositions.undemote(contentResolver, contactId); in undemote() 51 contentResolver.call(ContactsContract.AUTHORITY_URI, UNDEMOTE_METHOD, in undemote()
|
/packages/providers/ContactsProvider/src/com/android/providers/contacts/ |
D | VoicemailCleanupService.java | 45 ContentResolver contentResolver) { in handleIntentInternal() argument 51 contentResolver.delete(Voicemails.buildSourceUri(packageUninstalled), null, null); in handleIntentInternal() 52 contentResolver.delete(Status.buildSourceUri(packageUninstalled), null, null); in handleIntentInternal()
|
/packages/apps/Dialer/tests/src/com/android/dialer/ |
D | CallDetailActivityTest.java | 135 ContentResolver contentResolver = getContentResolver(); in setActivityIntentForTestCallEntry() local 140 mCallLogUri = contentResolver.insert(CallLog.Calls.CONTENT_URI, values); in setActivityIntentForTestCallEntry() 146 ContentResolver contentResolver = getContentResolver(); in setActivityIntentForTestVoicemailEntry() local 152 mVoicemailUri = contentResolver.insert(VoicemailContract.Voicemails.CONTENT_URI, values); in setActivityIntentForTestVoicemailEntry()
|
/packages/apps/TV/src/com/android/tv/data/ |
D | ProgramDataManager.java | 121 ProgramDataManager(ContentResolver contentResolver, Clock time, Looper looper) { in ProgramDataManager() argument 123 mContentResolver = contentResolver; in ProgramDataManager() 546 public ProgramsUpdateTask(ContentResolver contentResolver, long time) { in ProgramsUpdateTask() argument 547 super(contentResolver, Programs.CONTENT_URI.buildUpon() in ProgramsUpdateTask() 604 private UpdateCurrentProgramForChannelTask(ContentResolver contentResolver, long channelId, in UpdateCurrentProgramForChannelTask() argument 606 super(contentResolver, TvContract.buildProgramsUriForChannel(channelId, time, time), in UpdateCurrentProgramForChannelTask() 632 public QueryProgramTask(ContentResolver contentResolver, long programId) { in QueryProgramTask() argument 633 super(contentResolver, TvContract.buildProgramUri(programId), Program.PROJECTION, null, in QueryProgramTask()
|
/packages/apps/DeskClock/src/com/android/deskclock/ |
D | DeskClockBackupAgent.java | 124 final ContentResolver contentResolver = context.getContentResolver(); in processRestoredData() local 125 final List<Alarm> alarms = Alarm.getAlarms(contentResolver, null); in processRestoredData() 138 alarmInstance = AlarmInstance.addInstance(contentResolver, alarmInstance); in processRestoredData()
|
/packages/apps/Email/src/com/android/email2/ui/ |
D | MailActivityEmail.java | 99 final ContentResolver contentResolver = getContentResolver(); in getViewIntent() local 101 final Cursor accountCursor = contentResolver.query( in getViewIntent() 121 final Cursor folderCursor = contentResolver.query( in getViewIntent()
|
/packages/apps/Dialer/src/com/android/dialer/compat/ |
D | FilteredNumberCompat.java | 261 public static void showBlockNumberDialogFlow(final ContentResolver contentResolver, in showBlockNumberDialogFlow() argument 271 .newInstance(new BlockedNumbersMigrator(contentResolver), newMigrationListener( in showBlockNumberDialogFlow() 288 final ContentResolver contentResolver, final String number, final String countryIso, in newMigrationListener() argument 305 new FilteredNumberAsyncQueryHandler(contentResolver).isBlockedNumber( in newMigrationListener()
|
/packages/apps/Camera2/src/com/android/camera/session/ |
D | StackSaverFactory.java | 39 ContentResolver contentResolver) { in StackSaverFactory() argument 41 mContentResolver = contentResolver; in StackSaverFactory()
|
/packages/apps/Gallery2/src_pd/com/android/gallery3d/util/ |
D | LightCycleHelper.java | 45 public static String getPathFromURI(ContentResolver contentResolver, Uri contentUri) { in getPathFromURI() argument 52 public static long getModifiedTimeFromURI(ContentResolver contentResolver, Uri contentUri) { in getModifiedTimeFromURI() argument
|
/packages/apps/Camera2/src/com/android/camera/settings/ |
D | ResolutionSetting.java | 51 ContentResolver contentResolver) { in ResolutionSetting() argument 55 mResolutionBlackListBack = GservicesHelper.getBlacklistedResolutionsBack(contentResolver); in ResolutionSetting() 56 mResolutionBlackListFront = GservicesHelper.getBlacklistedResolutionsFront(contentResolver); in ResolutionSetting()
|