Home
last modified time | relevance | path

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

123

/packages/apps/DeskClock/src/com/android/deskclock/provider/
DAlarmInstance.java143 public static AlarmInstance getInstance(ContentResolver contentResolver, long instanceId) { in getInstance() argument
144 Cursor cursor = contentResolver.query(getUri(instanceId), QUERY_COLUMNS, null, null, null); in getInstance()
168 public static List<AlarmInstance> getInstancesByAlarmId(ContentResolver contentResolver, in getInstancesByAlarmId() argument
170 return getInstances(contentResolver, ALARM_ID + "=" + alarmId); in getInstancesByAlarmId()
179 public static AlarmInstance getNextUpcomingInstanceByAlarmId(ContentResolver contentResolver, in getNextUpcomingInstanceByAlarmId() argument
181 final List<AlarmInstance> alarmInstances = getInstancesByAlarmId(contentResolver, alarmId); in getNextUpcomingInstanceByAlarmId()
198 ContentResolver contentResolver, long alarmInstanceId, int state) { in getInstancesByInstanceIdAndState() argument
199 return getInstances(contentResolver, _ID + "=" + alarmInstanceId + " AND " + ALARM_STATE + in getInstancesByInstanceIdAndState()
207 ContentResolver contentResolver, int state) { in getInstancesByState() argument
208 return getInstances(contentResolver, ALARM_STATE + "=" + state); in getInstancesByState()
[all …]
DCity.java80 public static City getCity(ContentResolver contentResolver, String cityId) { in getCity() argument
81 Cursor cursor = contentResolver.query(getContentUriForId(cityId), in getCity()
111 public static List<City> getCities(ContentResolver contentResolver, in getCities() argument
113 Cursor cursor = contentResolver.query(CONTENT_URI, QUERY_COLUMNS, in getCities()
133 public static City addCity(ContentResolver contentResolver, City city) { in addCity() argument
135 Uri uri = contentResolver.insert(CONTENT_URI, values); in addCity()
140 public static boolean updateCity(ContentResolver contentResolver, City city) { in updateCity() argument
143 long rowsUpdated = contentResolver.update(updateUri, values, null, null); in updateCity()
147 public static boolean deleteCity(ContentResolver contentResolver, String cityId) { in deleteCity() argument
149 int deletedRows = contentResolver.delete(uri, "", null); in deleteCity()
DAlarm.java136 public static Alarm getAlarm(ContentResolver contentResolver, long alarmId) { in getAlarm() argument
137 Cursor cursor = contentResolver.query(getUri(alarmId), QUERY_COLUMNS, null, null, null); in getAlarm()
166 public static List<Alarm> getAlarms(ContentResolver contentResolver, in getAlarms() argument
168 Cursor cursor = contentResolver.query(CONTENT_URI, QUERY_COLUMNS, in getAlarms()
196 public static Alarm addAlarm(ContentResolver contentResolver, Alarm alarm) { in addAlarm() argument
198 Uri uri = contentResolver.insert(CONTENT_URI, values); in addAlarm()
203 public static boolean updateAlarm(ContentResolver contentResolver, Alarm alarm) { in updateAlarm() argument
206 long rowsUpdated = contentResolver.update(getUri(alarm.id), values, null, null); in updateAlarm()
210 public static boolean deleteAlarm(ContentResolver contentResolver, long alarmId) { in deleteAlarm() argument
212 int deletedRows = contentResolver.delete(getUri(alarmId), "", null); in deleteAlarm()
/packages/services/Telecomm/src/com/android/server/telecom/
DTimeouts.java43 private static long get(ContentResolver contentResolver, String key, long defaultValue) { in get() argument
44 return Settings.Secure.getLong(contentResolver, PREFIX + key, defaultValue); in get()
52 public static long getDirectToVoicemailMillis(ContentResolver contentResolver) { in getDirectToVoicemailMillis() argument
53 return get(contentResolver, "direct_to_voicemail_ms", 500L); in getDirectToVoicemailMillis()
62 public static long getNewOutgoingCallCancelMillis(ContentResolver contentResolver) { in getNewOutgoingCallCancelMillis() argument
63 return get(contentResolver, "new_outgoing_call_cancel_ms", 400L); in getNewOutgoingCallCancelMillis()
71 public static long getDelayBetweenDtmfTonesMillis(ContentResolver contentResolver) { in getDelayBetweenDtmfTonesMillis() argument
72 return get(contentResolver, "delay_between_dtmf_tones_ms", 300L); in getDelayBetweenDtmfTonesMillis()
79 public static long getEmergencyCallTimeoutMillis(ContentResolver contentResolver) { in getEmergencyCallTimeoutMillis() argument
80 return get(contentResolver, "emergency_call_timeout_millis", 25000L /* 25 seconds */); in getEmergencyCallTimeoutMillis()
[all …]
/packages/apps/Camera2/src_pd/com/android/camera/util/
DGservicesHelper.java24 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/DeskClock/src/com/android/deskclock/alarms/
DAlarmStateManager.java352 ContentResolver contentResolver = context.getContentResolver(); in setSilentState() local
354 AlarmInstance.updateInstance(contentResolver, instance); in setSilentState()
374 ContentResolver contentResolver = context.getContentResolver(); in setLowNotificationState() local
376 AlarmInstance.updateInstance(contentResolver, instance); in setLowNotificationState()
396 ContentResolver contentResolver = context.getContentResolver(); in setHideNotificationState() local
398 AlarmInstance.updateInstance(contentResolver, instance); in setHideNotificationState()
418 ContentResolver contentResolver = context.getContentResolver(); in setHighNotificationState() local
420 AlarmInstance.updateInstance(contentResolver, instance); in setHighNotificationState()
440 ContentResolver contentResolver = context.getContentResolver(); in setFiredState() local
442 AlarmInstance.updateInstance(contentResolver, instance); in setFiredState()
[all …]
/packages/apps/UnifiedEmail/src/com/android/mail/compose/
DAttachmentsView.java223 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/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()
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/
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()
174 this.contentResolver = new MockContentResolver(); in DbTestUtils()
175 this.context = new FakeContext(contentResolver, resources); in DbTestUtils()
182 return contentResolver; in getContentResolver()
/packages/apps/Dialer/src/com/android/dialer/calllog/
DDefaultVoicemailNotifier.java71 ContentResolver contentResolver = context.getContentResolver(); in getInstance() local
73 createNewCallsQuery(context, contentResolver), in getInstance()
74 createNameLookupQuery(context, contentResolver)); in getInstance()
251 ContentResolver contentResolver) { in createNewCallsQuery() argument
252 return new DefaultNewCallsQuery(context.getApplicationContext(), contentResolver); in createNewCallsQuery()
280 private DefaultNewCallsQuery(Context context, ContentResolver contentResolver) { in DefaultNewCallsQuery() argument
282 mContentResolver = contentResolver; in DefaultNewCallsQuery()
344 ContentResolver contentResolver) { in createNameLookupQuery() argument
345 return new DefaultNameLookupQuery(context.getApplicationContext(), contentResolver); in createNameLookupQuery()
359 private DefaultNameLookupQuery(Context context, ContentResolver contentResolver) { in DefaultNameLookupQuery() argument
[all …]
DCallLogQueryHandler.java111 public CallLogQueryHandler(Context context, ContentResolver contentResolver, in CallLogQueryHandler() argument
113 this(context, contentResolver, listener, -1); in CallLogQueryHandler()
116 public CallLogQueryHandler(Context context, ContentResolver contentResolver, Listener listener, in CallLogQueryHandler() argument
118 super(contentResolver); in CallLogQueryHandler()
/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/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/
DContactsManagerTest.java59 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/
DSettingsContentObserver.java30 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/
DBluetoothOppSendFileInfo.java102 ContentResolver contentResolver = context.getContentResolver(); in generateFileInfo() local
111 contentType = contentResolver.getType(uri); in generateFileInfo()
114 metadataCursor = contentResolver.query(uri, new String[] { in generateFileInfo()
152 AssetFileDescriptor fd = contentResolver.openAssetFileDescriptor(uri, "r"); in generateFileInfo()
177 is = (FileInputStream) contentResolver.openInputStream(uri); in generateFileInfo()
DBluetoothOppService.java161 final ContentResolver contentResolver = getContentResolver(); in onCreate() local
164 trimDatabase(contentResolver); in onCreate()
917 private static void trimDatabase(ContentResolver contentResolver) { in trimDatabase() argument
925 int delNum = contentResolver.delete(BluetoothShare.CONTENT_URI, in trimDatabase()
933 delNum = contentResolver.delete(BluetoothShare.CONTENT_URI, in trimDatabase()
942 Cursor cursor = contentResolver.query(BluetoothShare.CONTENT_URI, new String[] { in trimDatabase()
957 delNum = contentResolver.delete(BluetoothShare.CONTENT_URI, in trimDatabase()
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/device/sound/
DSoundActivity.java91 public static int getIconResource(ContentResolver contentResolver) { in getIconResource() argument
92 return getSoundEffectsEnabled(contentResolver) ? R.drawable.settings_sound_on_icon in getIconResource()
100 private static boolean getSoundEffectsEnabled(ContentResolver contentResolver) { in getSoundEffectsEnabled() argument
101 return Settings.System.getInt(contentResolver, Settings.System.SOUND_EFFECTS_ENABLED, 1) in getSoundEffectsEnabled()
/packages/apps/Dialer/tests/src/com/android/dialer/
DCallDetailActivityTest.java120 ContentResolver contentResolver = getContentResolver(); in setActivityIntentForTestCallEntry() local
125 mCallLogUri = contentResolver.insert(CallLog.Calls.CONTENT_URI, values); in setActivityIntentForTestCallEntry()
131 ContentResolver contentResolver = getContentResolver(); in setActivityIntentForTestVoicemailEntry() local
136 mVoicemailUri = contentResolver.insert(VoicemailContract.Voicemails.CONTENT_URI, values); in setActivityIntentForTestVoicemailEntry()
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/tools/
DSaveImage.java175 public static void deleteAuxFiles(ContentResolver contentResolver, in deleteAuxFiles() argument
179 querySourceFromContentResolver(contentResolver, in deleteAuxFiles()
559 ContentResolver contentResolver = context.getContentResolver(); in querySource() local
560 querySourceFromContentResolver(contentResolver, sourceUri, projection, callback); in querySource()
564 ContentResolver contentResolver, Uri sourceUri, String[] projection, in querySourceFromContentResolver() argument
568 cursor = contentResolver.query(sourceUri, projection, null, null, in querySourceFromContentResolver()
/packages/apps/Calendar/src/com/android/calendar/alerts/
DAlarmScheduler.java130 private static Cursor queryUpcomingEvents(Context context, ContentResolver contentResolver, in queryUpcomingEvents() argument
167 Cursor cursor = contentResolver.query(uriBuilder.build(), INSTANCES_PROJECTION, in queryUpcomingEvents()
177 ContentResolver contentResolver, AlarmManagerInterface alarmManager, in queryNextReminderAndSchedule() argument
240 cursor = contentResolver.query(Reminders.CONTENT_URI, REMINDERS_PROJECTION, in queryNextReminderAndSchedule()
/packages/providers/ContactsProvider/src/com/android/providers/contacts/
DVoicemailCleanupService.java45 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/DeskClock/src/com/android/deskclock/
DDeskClockBackupAgent.java130 final ContentResolver contentResolver = context.getContentResolver(); in processRestoredData() local
131 final List<Alarm> alarms = Alarm.getAlarms(contentResolver, null); in processRestoredData()
144 alarmInstance = AlarmInstance.addInstance(contentResolver, alarmInstance); in processRestoredData()
/packages/apps/Email/src/com/android/email2/ui/
DMailActivityEmail.java99 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/Bluetooth/src/com/android/bluetooth/pbap/
DBluetoothPbapObexServer.java762 ContentResolver contentResolver; in handleAppParaForResponse() local
763 contentResolver = mContext.getContentResolver(); in handleAppParaForResponse()
765 Cursor c = contentResolver.query( in handleAppParaForResponse()
795 ContentResolver contentResolver; in handleAppParaForResponse() local
796 contentResolver = mContext.getContentResolver(); in handleAppParaForResponse()
798 Cursor c = contentResolver.query( in handleAppParaForResponse()
/packages/apps/Camera2/src/com/android/camera/settings/
DResolutionSetting.java51 ContentResolver contentResolver) { in ResolutionSetting() argument
55 mResolutionBlackListBack = GservicesHelper.getBlacklistedResolutionsBack(contentResolver); in ResolutionSetting()
56 mResolutionBlackListFront = GservicesHelper.getBlacklistedResolutionsFront(contentResolver); in ResolutionSetting()

123