Home
last modified time | relevance | path

Searched refs:mContentResolver (Results 1 – 25 of 146) sorted by relevance

123456

/packages/providers/TelephonyProvider/tests/src/com/android/providers/telephony/
DTelephonyProviderTest.java76 private MockContentResolver mContentResolver; field in TelephonyProviderTest
237 mContentResolver = mContext.getContentResolver(); in setUpMockContext()
279 int rows = mContentResolver.bulkInsert(Carriers.CONTENT_URI, values); in testBulkInsertCarriers()
295 Cursor cursor = mContentResolver.query(Carriers.CONTENT_URI, in testBulkInsertCarriers()
330 mContentResolver.addProvider(Telephony.CarrierId.All.CONTENT_URI.getAuthority(), in testMccMncMigration()
340 mContentResolver.bulkInsert(Telephony.CarrierId.All.CONTENT_URI, carrierIdMccMncs); in testMccMncMigration()
355 mContentResolver.bulkInsert(SimInfo.CONTENT_URI, existingSimInfoEntries); in testMccMncMigration()
361 try (Cursor c = mContentResolver.query(SimInfo.CONTENT_URI, proj, in testMccMncMigration()
370 try (Cursor c = mContentResolver.query(SimInfo.CONTENT_URI, proj, in testMccMncMigration()
406 Uri row1 = mContentResolver.insert(Carriers.CONTENT_URI, contentValues); in testUpdateConflictingCarriers()
[all …]
DSmsProviderTest.java58 private MockContentResolver mContentResolver; field in SmsProviderTest
150 mContentResolver = mContext.getContentResolver(); in setUp()
176 mContentResolver.insert(Uri.parse("content://sms"), values)); in testInsertUri()
178 mContentResolver.insert(Uri.parse("content://sms"), values)); in testInsertUri()
187 mContentResolver.insert(Uri.parse("content://sms/attachments"), values)); in testInsertUri()
195 mContentResolver.insert(mRawUri, getFakeRawValue())); in testRawTableInsert()
198 Cursor cursor = mContentResolver.query(mRawUri, null, null, null, null); in testRawTableInsert()
215 mContentResolver.insert(mRawUri, getFakeRawValue())); in testRawTableInsert()
217 mContentResolver.insert(mRawUri, getFakeRawValue())); in testRawTableInsert()
226 mContentResolver.insert(mRawUri, getFakeRawValue())); in testRawTableDelete()
[all …]
DCarrierProviderTest.java54 private MockContentResolver mContentResolver; field in CarrierProviderTest
130 mContentResolver = (MockContentResolver) mContext.getContentResolver(); in setUp()
157 mContentResolver.insert(CarrierProvider.CONTENT_URI, contentValues); in testInsertCertificates()
162 Cursor countCursor = mContentResolver.query(CarrierProvider.CONTENT_URI, in testInsertCertificates()
193 mContentResolver.insert(CarrierProvider.CONTENT_URI, contentValues); in testUpdateCertificates()
201 mContentResolver.update(CarrierProvider.CONTENT_URI, updatedValues, in testUpdateCertificates()
210 Cursor findEntry = mContentResolver.query(CarrierProvider.CONTENT_URI, columns, in testUpdateCertificates()
247 mContentResolver.insert(CarrierProvider.CONTENT_URI, contentValues); in testMultipleCertificates()
248 mContentResolver.insert(CarrierProvider.CONTENT_URI, contentValuesNew); in testMultipleCertificates()
254 Cursor countCursor = mContentResolver.query(CarrierProvider.CONTENT_URI, in testMultipleCertificates()
[all …]
DCarrierIdProviderTest.java76 private MockContentResolver mContentResolver; field in CarrierIdProviderTest
149 mContentResolver = mContext.getContentResolver(); in setUp()
171 mContentResolver.insert(CarrierId.All.CONTENT_URI, createCarrierInfoInternal()); in testInsertCarrierInfo()
172 Cursor countCursor = mContentResolver.query(CarrierId.All.CONTENT_URI, in testInsertCarrierInfo()
193 mContentResolver.insert(CarrierId.All.CONTENT_URI, contentValues); in testDuplicateInsertionCarrierInfo()
194 mContentResolver.insert(CarrierId.All.CONTENT_URI, contentValues); in testDuplicateInsertionCarrierInfo()
210 mContentResolver.insert(CarrierId.All.CONTENT_URI, contentValues); in testInvalidInsertionCarrierInfo()
224 mContentResolver.insert(CarrierId.All.CONTENT_URI, in testDeleteCarrierInfo()
233 numRowsDeleted = mContentResolver.delete(CarrierId.All.CONTENT_URI, in testDeleteCarrierInfo()
251 mContentResolver.insert(CarrierId.All.CONTENT_URI, contentValues); in testUpdateCarrierInfo()
[all …]
/packages/modules/CellBroadcastService/tests/src/com/android/cellbroadcastservice/tests/
DCellBroadcastProviderTest.java74 private MockContentResolver mContentResolver; field in CellBroadcastProviderTest
88 mContentResolver = mContext.getContentResolver(); in setUp()
101 Uri uri = mContentResolver.insert(CONTENT_URI, cv); in testUpdate()
109 mContentResolver.update(CONTENT_URI, cv, SELECT_BY_ID, in testUpdate()
113 Cursor cursor = mContentResolver.query(CONTENT_URI, QUERY_COLUMNS, in testUpdate()
127 Uri uri = mContentResolver.insert(CONTENT_URI, cv); in testUpdate_WithoutWritePermission_fail()
134 mContentResolver.update(CONTENT_URI, cv, SELECT_BY_ID, in testUpdate_WithoutWritePermission_fail()
149 mContentResolver.insert(CONTENT_URI, cv); in testGetAllCellBroadcast()
156 mContentResolver.insert(CONTENT_URI, cv); in testGetAllCellBroadcast()
160 Cursor cursor = mContentResolver.query( in testGetAllCellBroadcast()
[all …]
/packages/apps/Settings/tests/robotests/src/com/android/settings/display/
DBrightnessLevelPreferenceControllerTest.java61 private ContentResolver mContentResolver; field in BrightnessLevelPreferenceControllerTest
69 mContentResolver = mContext.getContentResolver(); in setUp()
96 ShadowContentResolver shadowContentResolver = Shadow.extract(mContentResolver); in onStart_shouldRegisterObserver()
129 System.putInt(mContentResolver, System.SCREEN_BRIGHTNESS_FOR_VR, 85); in updateState_inVrMode_shouldSetSummaryToVrBrightness()
139 System.putInt(mContentResolver, System.SCREEN_BRIGHTNESS_MODE, in updateState_autoBrightness_shouldSetSummaryToAutoBrightness()
142 System.putInt(mContentResolver, System.SCREEN_BRIGHTNESS, 31); in updateState_autoBrightness_shouldSetSummaryToAutoBrightness()
152 System.putInt(mContentResolver, System.SCREEN_BRIGHTNESS_MODE, in updateState_manualBrightness_shouldSetSummaryToScreenBrightness()
155 System.putInt(mContentResolver, System.SCREEN_BRIGHTNESS, 45); in updateState_manualBrightness_shouldSetSummaryToScreenBrightness()
167 System.putInt(mContentResolver, System.SCREEN_BRIGHTNESS_FOR_VR, 105); in updateState_brightnessOutOfRange_shouldSetSummaryInRange()
171 System.putInt(mContentResolver, System.SCREEN_BRIGHTNESS_FOR_VR, -20); in updateState_brightnessOutOfRange_shouldSetSummaryInRange()
[all …]
/packages/apps/Settings/tests/robotests/src/com/android/settings/development/
DWaitForDebuggerPreferenceControllerTest.java62 private ContentResolver mContentResolver; field in WaitForDebuggerPreferenceControllerTest
69 mContentResolver = mContext.getContentResolver(); in setup()
81 Settings.Global.putString(mContentResolver, Settings.Global.DEBUG_APP, debugApp); in onPreferenceChange_settingEnabledFoobarApp_waitForDebuggerShouldBeOn()
93 Settings.Global.putString(mContentResolver, Settings.Global.DEBUG_APP, debugApp); in onPreferenceChange_settingDisabledFoobarApp_waitForDebuggerShouldBeOff()
103 Settings.Global.putString(mContentResolver, Settings.Global.DEBUG_APP, debugApp); in updateState_settingEnabledNullDebugApp_preferenceShouldBeCheckedAndDisabled()
105 .putInt(mContentResolver, Settings.Global.WAIT_FOR_DEBUGGER, SETTING_VALUE_ON); in updateState_settingEnabledNullDebugApp_preferenceShouldBeCheckedAndDisabled()
115 Settings.Global.putString(mContentResolver, Settings.Global.DEBUG_APP, debugApp); in updateState_settingEnabledFoobarApp_preferenceShouldBeCheckedAndDisabled()
117 .putInt(mContentResolver, Settings.Global.WAIT_FOR_DEBUGGER, SETTING_VALUE_ON); in updateState_settingEnabledFoobarApp_preferenceShouldBeCheckedAndDisabled()
127 Settings.Global.putString(mContentResolver, Settings.Global.DEBUG_APP, debugApp); in updateState_settingDisabledNullDebugApp_preferenceShouldNotBeCheckedAndDisabled()
129 .putInt(mContentResolver, Settings.Global.WAIT_FOR_DEBUGGER, SETTING_VALUE_OFF); in updateState_settingDisabledNullDebugApp_preferenceShouldNotBeCheckedAndDisabled()
[all …]
DStayAwakePreferenceControllerTest.java57 private ContentResolver mContentResolver; field in StayAwakePreferenceControllerTest
63 mContentResolver = RuntimeEnvironment.application.getContentResolver(); in setup()
65 when(mContext.getContentResolver()).thenReturn(mContentResolver); in setup()
75 final int mode = Settings.Global.getInt(mContentResolver, in onPreferenceChanged_turnOnStayAwake()
85 final int mode = Settings.Global.getInt(mContentResolver, in onPreferenceChanged_turnOffStayAwake()
93 Settings.Global.putInt(mContentResolver, Settings.Global.STAY_ON_WHILE_PLUGGED_IN, in updateState_preferenceShouldBeChecked()
102 Settings.Global.putInt(mContentResolver, Settings.Global.STAY_ON_WHILE_PLUGGED_IN, in updateState_preferenceShouldNotBeChecked()
122 Settings.Global.putInt(mContentResolver, Settings.Global.STAY_ON_WHILE_PLUGGED_IN, in observerOnChangeCalledWithSameUri_preferenceShouldBeUpdated()
133 Settings.Global.putInt(mContentResolver, Settings.Global.STAY_ON_WHILE_PLUGGED_IN, in observerOnChangeCalledWithDifferentUri_preferenceShouldNotBeUpdated()
/packages/apps/Settings/tests/robotests/src/com/android/settings/notification/
DZenModeBehaviorFooterPreferenceControllerTest.java78 private ContentResolver mContentResolver; field in ZenModeBehaviorFooterPreferenceControllerTest
88 mContentResolver = RuntimeEnvironment.application.getContentResolver(); in setup()
102 Settings.Global.putInt(mContentResolver, ZEN_MODE, ZEN_MODE_NO_INTERRUPTIONS); in totalSilence_footerIsAvailable()
108 Settings.Global.putInt(mContentResolver, ZEN_MODE, ZEN_MODE_ALARMS); in alarmsOnly_footerIsAvailable()
114 Settings.Global.putInt(mContentResolver, ZEN_MODE, ZEN_MODE_IMPORTANT_INTERRUPTIONS); in priorityOnly_footerIsAvailable()
120 Settings.Global.putInt(mContentResolver, ZEN_MODE, ZEN_MODE_OFF); in zenModeOff_footerIsAvailable()
126 Settings.Global.putInt(mContentResolver, ZEN_MODE, ZEN_MODE_OFF); in zenModeOff_updateState_noFooterTitle()
134 Settings.Global.putInt(mContentResolver, ZEN_MODE, ZEN_MODE_IMPORTANT_INTERRUPTIONS); in zenModeImportantInterruptions_updateState_noFooterTitle()
142 Settings.Global.putInt(mContentResolver, ZEN_MODE, ZEN_MODE_ALARMS); in deprecatedZenModeAlarms_qsManualRule_setFooterTitle()
156 Settings.Global.putInt(mContentResolver, ZEN_MODE, ZEN_MODE_ALARMS); in deprecatedZenModeAlarms_appManualRule_setFooterTitle()
[all …]
DZenModeSettingsFooterPreferenceControllerTest.java83 private ContentResolver mContentResolver; field in ZenModeSettingsFooterPreferenceControllerTest
92 mContentResolver = RuntimeEnvironment.application.getContentResolver(); in setup()
106 Settings.Global.putInt(mContentResolver, ZEN_MODE, ZEN_MODE_NO_INTERRUPTIONS); in totalSilence_footerIsAvailable()
112 Settings.Global.putInt(mContentResolver, ZEN_MODE, ZEN_MODE_ALARMS); in alarmsOnly_footerIsAvailable()
118 Settings.Global.putInt(mContentResolver, ZEN_MODE, ZEN_MODE_IMPORTANT_INTERRUPTIONS); in priorityOnly_footerIsAvailable()
124 Settings.Global.putInt(mContentResolver, ZEN_MODE, ZEN_MODE_OFF); in zenModeOff_footerIsNotAvailable()
130 Settings.Global.putInt(mContentResolver, ZEN_MODE, ZEN_MODE_IMPORTANT_INTERRUPTIONS); in testDefaultNotifPolicy_app_manualRule_setFooterTitle()
141 Settings.Global.putInt(mContentResolver, ZEN_MODE, ZEN_MODE_IMPORTANT_INTERRUPTIONS); in testDefaultNotifPolicy_time_manualRule_setFooterTitle()
152 Settings.Global.putInt(mContentResolver, ZEN_MODE, ZEN_MODE_IMPORTANT_INTERRUPTIONS); in testDefaultNotifPolicy_forever_manualRule_setFooterTitle()
162 Settings.Global.putInt(mContentResolver, ZEN_MODE, ZEN_MODE_IMPORTANT_INTERRUPTIONS); in testDefaultNotifPolicy_automaticRule_noManualRule_setFooterTitle()
[all …]
DEmergencyTonePreferenceControllerTest.java51 private ContentResolver mContentResolver; field in EmergencyTonePreferenceControllerTest
68 when(mActivity.getContentResolver()).thenReturn(mContentResolver); in setUp()
90 Global.putInt(mContentResolver, Global.EMERGENCY_TONE, 0); in displayPreference_emergencyToneOff_shouldSelectFirstItem()
99 Global.putInt(mContentResolver, Global.EMERGENCY_TONE, 1); in displayPreference_emergencyToneAlert_shouldSelectSecondItem()
108 Global.putInt(mContentResolver, Global.EMERGENCY_TONE, 2); in displayPreference_emergencyToneVibrate_shouldSelectThirdItem()
121 assertThat(Global.getInt(mContentResolver, Global.EMERGENCY_TONE, 0)).isEqualTo(0); in onPreferenceChanged_firstItemSelected_shouldSetEmergencyToneToOff()
130 assertThat(Global.getInt(mContentResolver, Global.EMERGENCY_TONE, 0)).isEqualTo(1); in onPreferenceChanged_secondItemSelected_shouldSetEmergencyToneToAlert()
139 assertThat(Global.getInt(mContentResolver, Global.EMERGENCY_TONE, 0)).isEqualTo(2); in onPreferenceChanged_thirdItemSelected_shouldSetEmergencyToneToVibrate()
DZenModePriorityMessagesPreferenceControllerTest.java67 private ContentResolver mContentResolver; field in ZenModePriorityMessagesPreferenceControllerTest
87 mContentResolver = RuntimeEnvironment.application.getContentResolver(); in setup()
106 Settings.Global.putInt(mContentResolver, ZEN_MODE, ZEN_MODE_NO_INTERRUPTIONS); in updateState_TotalSilence()
120 Settings.Global.putInt(mContentResolver, ZEN_MODE, ZEN_MODE_ALARMS); in updateState_AlarmsOnly()
131 Settings.Global.putInt(mContentResolver, ZEN_MODE, ZEN_MODE_IMPORTANT_INTERRUPTIONS); in updateState_Priority()
145 Settings.Global.putInt(mContentResolver, ZEN_MODE, ZEN_MODE_IMPORTANT_INTERRUPTIONS); in onPreferenceChange_setSelectedContacts_any()
155 Settings.Global.putInt(mContentResolver, ZEN_MODE, ZEN_MODE_IMPORTANT_INTERRUPTIONS); in onPreferenceChange_setSelectedContacts_none()
164 Settings.Global.putInt(mContentResolver, ZEN_MODE, ZEN_MODE_IMPORTANT_INTERRUPTIONS); in onPreferenceChange_setSelectedContacts_starred()
174 Settings.Global.putInt(mContentResolver, ZEN_MODE, ZEN_MODE_IMPORTANT_INTERRUPTIONS); in onPreferenceChange_setSelectedContacts_contacts()
DZenModePriorityCallsPreferenceControllerTest.java67 private ContentResolver mContentResolver; field in ZenModePriorityCallsPreferenceControllerTest
87 mContentResolver = RuntimeEnvironment.application.getContentResolver(); in setup()
106 Settings.Global.putInt(mContentResolver, ZEN_MODE, ZEN_MODE_NO_INTERRUPTIONS); in updateState_TotalSilence()
120 Settings.Global.putInt(mContentResolver, ZEN_MODE, ZEN_MODE_ALARMS); in updateState_AlarmsOnly()
131 Settings.Global.putInt(mContentResolver, ZEN_MODE, ZEN_MODE_IMPORTANT_INTERRUPTIONS); in updateState_Priority()
145 Settings.Global.putInt(mContentResolver, ZEN_MODE, ZEN_MODE_IMPORTANT_INTERRUPTIONS); in onPreferenceChange_setSelectedContacts_any()
155 Settings.Global.putInt(mContentResolver, ZEN_MODE, ZEN_MODE_IMPORTANT_INTERRUPTIONS); in onPreferenceChange_setSelectedContacts_none()
164 Settings.Global.putInt(mContentResolver, ZEN_MODE, ZEN_MODE_IMPORTANT_INTERRUPTIONS); in onPreferenceChange_setSelectedContacts_starred()
174 Settings.Global.putInt(mContentResolver, ZEN_MODE, ZEN_MODE_IMPORTANT_INTERRUPTIONS); in onPreferenceChange_setSelectedContacts_contacts()
DZenModeButtonPreferenceControllerTest.java71 private ContentResolver mContentResolver; field in ZenModeButtonPreferenceControllerTest
81 mContentResolver = RuntimeEnvironment.application.getContentResolver(); in setup()
95 Settings.Global.putInt(mContentResolver, ZEN_MODE, ZEN_MODE_NO_INTERRUPTIONS); in updateState_TotalSilence()
105 Settings.Global.putInt(mContentResolver, ZEN_MODE, ZEN_MODE_ALARMS); in updateState_AlarmsOnly()
115 Settings.Global.putInt(mContentResolver, ZEN_MODE, ZEN_MODE_IMPORTANT_INTERRUPTIONS); in updateState_Priority()
125 Settings.Global.putInt(mContentResolver, ZEN_MODE, ZEN_MODE_OFF); in updateState_ZenOff()
136 Settings.Global.putInt(mContentResolver, ZEN_MODE, ZEN_MODE_OFF); in updateState_otherUserChangedZen()
141 Settings.Global.putInt(mContentResolver, ZEN_MODE, ZEN_MODE_IMPORTANT_INTERRUPTIONS); in updateState_otherUserChangedZen()
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/system/development/
DDevelopmentFragment.java169 private ContentResolver mContentResolver; field in DevelopmentFragment
267 mContentResolver = getActivity().getContentResolver(); in onCreate()
279 || Settings.Global.getInt(mContentResolver, in onCreatePreferences()
776 mDebugApp = Settings.Global.getString(mContentResolver, Settings.Global.DEBUG_APP); in updateDebuggerOptions()
777 updateSwitchPreference(mWaitForDebugger, Settings.Global.getInt(mContentResolver, in updateDebuggerOptions()
835 Settings.Global.getInt(mContentResolver, in updateVerifyAppsOverUsbOptions()
841 Settings.Global.putInt(mContentResolver, Settings.Global.PACKAGE_VERIFIER_INCLUDE_ADB, in writeVerifyAppsOverUsbOptions()
846 if (Settings.Global.getInt(mContentResolver, Settings.Global.ADB_ENABLED, 0) == 0) { in enableVerifierSetting()
849 if (Settings.Global.getInt(mContentResolver, in enableVerifierSetting()
866 return Settings.Global.getInt(mContentResolver, in showVerifierSetting()
[all …]
/packages/apps/Settings/tests/robotests/src/com/android/settings/applications/managedomainurls/
DInstantAppWebActionPreferenceControllerTest.java47 private ContentResolver mContentResolver; field in InstantAppWebActionPreferenceControllerTest
56 mContentResolver = mContext.getContentResolver(); in setUp()
59 mEnableEphemeralFeature = Settings.Global.getInt(mContentResolver, in setUp()
65 Settings.Global.putInt(mContentResolver, ENABLE_EPHEMERAL_FEATURE, in tearDown()
71 Settings.Global.putInt(mContentResolver, ENABLE_EPHEMERAL_FEATURE, 1); in testGetAvailabilityStatus_enableWebActions()
78 Settings.Global.putInt(mContentResolver, ENABLE_EPHEMERAL_FEATURE, 0); in testGetAvailabilityStatus_disableWebActions()
87 assertThat(Settings.Secure.getInt(mContentResolver, KEY_INSTANT_APPS_ENABLED, -1)) in onPreferenceChange_enable()
95 assertThat(Settings.Secure.getInt(mContentResolver, KEY_INSTANT_APPS_ENABLED, -1)) in onPreferenceChange_disable()
/packages/apps/UniversalMediaPlayer/java/com/android/pump/db/
DAudioStore.java42 private final ContentResolver mContentResolver; field in AudioStore
61 mContentResolver = contentResolver; in AudioStore()
66 mContentResolver.registerContentObserver(MediaStore.Audio.Media.EXTERNAL_CONTENT_URI, in AudioStore()
88 Cursor cursor = mContentResolver.query(contentUri, projection, null, null, sortOrder); in load()
113 Cursor cursor = mContentResolver.query(contentUri, projection, null, null, sortOrder); in load()
150 … Cursor cursor = mContentResolver.query(contentUri, projection, selection, null, sortOrder); in load()
193 Cursor cursor = mContentResolver.query(contentUri, projection, null, null, sortOrder); in load()
217 Cursor cursor = mContentResolver.query(contentUri, projection, null, null, sortOrder); in load()
252 Cursor cursor = mContentResolver.query( in loadData()
293 Cursor cursor = mContentResolver.query( in loadData()
[all …]
/packages/apps/Settings/src/com/android/settings/development/gamedriver/
DGameDriverGlobalSwitchBarController.java47 private final ContentResolver mContentResolver; field in GameDriverGlobalSwitchBarController
56 mContentResolver = context.getContentResolver(); in GameDriverGlobalSwitchBarController()
64 mContentResolver, Settings.Global.GAME_DRIVER_ALL_APPS, GAME_DRIVER_DEFAULT) in GameDriverGlobalSwitchBarController()
72 mGameDriverContentObserver.register(mContentResolver); in onStart()
78 mGameDriverContentObserver.unregister(mContentResolver); in onStop()
84 mContentResolver, Settings.Global.GAME_DRIVER_ALL_APPS, GAME_DRIVER_DEFAULT); in onSwitchToggled()
96 Settings.Global.putInt(mContentResolver, Settings.Global.GAME_DRIVER_ALL_APPS, in onSwitchToggled()
106 mContentResolver, Settings.Global.GAME_DRIVER_ALL_APPS, GAME_DRIVER_DEFAULT) in onGameDriverContentChanged()
DGameDriverAppPreferenceController.java62 private final ContentResolver mContentResolver; field in GameDriverAppPreferenceController
83 mContentResolver = context.getContentResolver(); in GameDriverAppPreferenceController()
102 getGlobalSettingsString(mContentResolver, Settings.Global.GAME_DRIVER_OPT_IN_APPS); in GameDriverAppPreferenceController()
104 mContentResolver, Settings.Global.GAME_DRIVER_PRERELEASE_OPT_IN_APPS); in GameDriverAppPreferenceController()
106 getGlobalSettingsString(mContentResolver, Settings.Global.GAME_DRIVER_OPT_OUT_APPS); in GameDriverAppPreferenceController()
112 && (Settings.Global.getInt(mContentResolver, in getAvailabilityStatus()
133 mGameDriverContentObserver.register(mContentResolver); in onStart()
138 mGameDriverContentObserver.unregister(mContentResolver); in onStop()
176 Settings.Global.putString(mContentResolver, Settings.Global.GAME_DRIVER_OPT_IN_APPS, in onPreferenceChange()
178 Settings.Global.putString(mContentResolver, in onPreferenceChange()
[all …]
DGameDriverEnableForAllAppsPreferenceController.java52 private final ContentResolver mContentResolver; field in GameDriverEnableForAllAppsPreferenceController
64 mContentResolver = context.getContentResolver(); in GameDriverEnableForAllAppsPreferenceController()
79 && (Settings.Global.getInt(mContentResolver, in getAvailabilityStatus()
95 mGameDriverContentObserver.register(mContentResolver); in onStart()
100 mGameDriverContentObserver.unregister(mContentResolver); in onStop()
108 mContentResolver, Settings.Global.GAME_DRIVER_ALL_APPS, GAME_DRIVER_DEFAULT); in updateState()
126 mContentResolver, Settings.Global.GAME_DRIVER_ALL_APPS, GAME_DRIVER_DEFAULT); in onPreferenceChange()
140 mContentResolver, Settings.Global.GAME_DRIVER_ALL_APPS, userChoice); in onPreferenceChange()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/development/gamedriver/
DGameDriverGlobalSwitchBarController.java46 private final ContentResolver mContentResolver; field in GameDriverGlobalSwitchBarController
55 mContentResolver = context.getContentResolver(); in GameDriverGlobalSwitchBarController()
63 mContentResolver, Settings.Global.GAME_DRIVER_ALL_APPS, GAME_DRIVER_DEFAULT) in GameDriverGlobalSwitchBarController()
71 mGameDriverContentObserver.register(mContentResolver); in onStart()
77 mGameDriverContentObserver.unregister(mContentResolver); in onStop()
83 mContentResolver, Settings.Global.GAME_DRIVER_ALL_APPS, GAME_DRIVER_DEFAULT); in onSwitchToggled()
94 Settings.Global.putInt(mContentResolver, Settings.Global.GAME_DRIVER_ALL_APPS, in onSwitchToggled()
104 mContentResolver, Settings.Global.GAME_DRIVER_ALL_APPS, GAME_DRIVER_DEFAULT) in onGameDriverContentChanged()
DGameDriverEnableForAllAppsPreferenceController.java49 private final ContentResolver mContentResolver; field in GameDriverEnableForAllAppsPreferenceController
58 mContentResolver = context.getContentResolver(); in GameDriverEnableForAllAppsPreferenceController()
66 && (Settings.Global.getInt(mContentResolver, in getAvailabilityStatus()
82 mGameDriverContentObserver.register(mContentResolver); in onStart()
87 mGameDriverContentObserver.unregister(mContentResolver); in onStop()
96 mContentResolver, Settings.Global.GAME_DRIVER_ALL_APPS, GAME_DRIVER_DEFAULT) in updateState()
104 mContentResolver, Settings.Global.GAME_DRIVER_ALL_APPS, GAME_DRIVER_DEFAULT); in onPreferenceChange()
114 Settings.Global.putInt(mContentResolver, Settings.Global.GAME_DRIVER_ALL_APPS, in onPreferenceChange()
/packages/apps/Settings/src/com/android/settings/display/
DBrightnessLevelPreferenceController.java59 private final ContentResolver mContentResolver; field in BrightnessLevelPreferenceController
87 mContentResolver = mContext.getContentResolver(); in BrightnessLevelPreferenceController()
113 mContentResolver.registerContentObserver(BRIGHTNESS_URI, false, mBrightnessObserver); in onStart()
114 mContentResolver.registerContentObserver(BRIGHTNESS_FOR_VR_URI, false, mBrightnessObserver); in onStart()
115 mContentResolver.registerContentObserver(BRIGHTNESS_ADJ_URI, false, mBrightnessObserver); in onStart()
120 mContentResolver.unregisterContentObserver(mBrightnessObserver); in onStop()
132 value = convertLinearToGamma(System.getInt(mContentResolver, in getCurrentBrightness()
136 value = convertLinearToGamma(Settings.System.getInt(mContentResolver, in getCurrentBrightness()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/display/
DBrightnessLevelPreferenceController.java59 private final ContentResolver mContentResolver; field in BrightnessLevelPreferenceController
87 mContentResolver = mContext.getContentResolver(); in BrightnessLevelPreferenceController()
113 mContentResolver.registerContentObserver(BRIGHTNESS_URI, false, mBrightnessObserver); in onStart()
114 mContentResolver.registerContentObserver(BRIGHTNESS_FOR_VR_URI, false, mBrightnessObserver); in onStart()
115 mContentResolver.registerContentObserver(BRIGHTNESS_ADJ_URI, false, mBrightnessObserver); in onStart()
120 mContentResolver.unregisterContentObserver(mBrightnessObserver); in onStop()
132 value = convertLinearToGamma(System.getInt(mContentResolver, in getCurrentBrightness()
136 value = convertLinearToGamma(Settings.System.getInt(mContentResolver, in getCurrentBrightness()
/packages/apps/Car/Messenger/src/com/android/car/messenger/
DSmsDatabaseHandler.java41 private final ContentResolver mContentResolver; field in SmsDatabaseHandler
46 mContentResolver = context.getContentResolver(); in SmsDatabaseHandler()
63 mContentResolver.insert(SMS_URI, buildMessageContentValues(message)); in addOrUpdate()
79 mContentResolver.delete(SMS_URI, smsSelection, smsSelectionArgs); in removeMessagesForDevice()
122 mContentResolver.delete(SMS_URI, SMS_SELECTION, smsSelectionArgs); in removePreviousAndInsert()
123 mContentResolver.insert(SMS_URI, buildMessageContentValues(message)); in removePreviousAndInsert()
130 Cursor cursor = mContentResolver.query(SMS_URI, projection, SMS_SELECTION, in findMessageIndex()
158 mContentResolver.update(SMS_URI, value, smsSelection, smsSelectionArgs); in update()
169 getContactId(mContentResolver, in buildMessageContentValues()

123456