Home
last modified time | relevance | path

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

123456

/packages/providers/TelephonyProvider/tests/src/com/android/providers/telephony/
DRcsProviderInsertTest.java46 private MockContentResolver mContentResolver; field in RcsProviderInsertTest
55 mContentResolver = context.getContentResolver(); in setUp()
65 assertThat(mContentResolver.insert(Uri.parse("content://rcs/thread"), null)).isNull(); in testInsertUnifiedThreadFails()
70 Uri uri = setup1To1Thread(mContentResolver); in testDuplicate1To1ThreadInsertion()
72 assertThat(mContentResolver.insert(uri, null)).isNull(); in testDuplicate1To1ThreadInsertion()
81 assertThat(mContentResolver.insert(Uri.parse("content://rcs/group_thread"), in testInsertGroupThread()
91 Uri uri = mContentResolver.insert(Uri.parse("content://rcs/participant"), contentValues); in testInsertParticipant()
100 mContentResolver.insert(Uri.parse("content://rcs/participant"), contentValues); in testInsertParticipantIntoGroupThread()
105 mContentResolver.insert(Uri.parse("content://rcs/group_thread"), values); in testInsertParticipantIntoGroupThread()
109 assertThat(mContentResolver.insert(uri, null)).isEqualTo(uri); in testInsertParticipantIntoGroupThread()
[all …]
DRcsProviderDeleteTest.java46 private MockContentResolver mContentResolver; field in RcsProviderDeleteTest
55 mContentResolver = context.getContentResolver(); in setUp()
66 assertThat(mContentResolver.insert(Uri.parse("content://rcs/participant"), in setUp()
69 setup1To1Thread(mContentResolver); in setUp()
76 assertThat(mContentResolver.insert(groupThreadUri, groupContentValues)).isEqualTo( in setUp()
80 assertThat(mContentResolver.insert(addParticipantToGroupThread, null)).isEqualTo( in setUp()
85 assertThat(mContentResolver.insert(Uri.parse("content://rcs/p2p_thread/1/incoming_message"), in setUp()
88 assertThat(mContentResolver.insert(Uri.parse("content://rcs/p2p_thread/1/outgoing_message"), in setUp()
92 mContentResolver.insert(Uri.parse("content://rcs/group_thread/2/incoming_message"), in setUp()
96 mContentResolver.insert(Uri.parse("content://rcs/group_thread/2/outgoing_message"), in setUp()
[all …]
DRcsProviderUpdateTest.java49 private MockContentResolver mContentResolver; field in RcsProviderUpdateTest
58 mContentResolver = context.getContentResolver(); in setUp()
69 assertThat(mContentResolver.insert(Uri.parse("content://rcs/participant"), in setUp()
76 setup1To1Thread(mContentResolver); in setUp()
83 assertThat(mContentResolver.insert(groupThreadUri, groupContentValues)).isEqualTo( in setUp()
87 assertThat(mContentResolver.insert(groupInsertionUri, null)).isEqualTo(groupInsertionUri); in setUp()
91 assertThat(mContentResolver.insert(Uri.parse("content://rcs/p2p_thread/1/incoming_message"), in setUp()
94 assertThat(mContentResolver.insert(Uri.parse("content://rcs/p2p_thread/1/outgoing_message"), in setUp()
98 mContentResolver.insert(Uri.parse("content://rcs/group_thread/2/incoming_message"), in setUp()
102 mContentResolver.insert(Uri.parse("content://rcs/group_thread/2/outgoing_message"), in setUp()
[all …]
DTelephonyProviderTest.java77 private MockContentResolver mContentResolver; field in TelephonyProviderTest
222 mContentResolver = (MockContentResolver) mContext.getContentResolver(); in setUp()
265 int rows = mContentResolver.bulkInsert(Carriers.CONTENT_URI, values); in testBulkInsertCarriers()
281 Cursor cursor = mContentResolver.query(Carriers.CONTENT_URI, in testBulkInsertCarriers()
314 mContentResolver.addProvider(Telephony.CarrierId.All.CONTENT_URI.getAuthority(), in testMccMncMigration()
324 mContentResolver.bulkInsert(Telephony.CarrierId.All.CONTENT_URI, carrierIdMccMncs); in testMccMncMigration()
339 mContentResolver.bulkInsert(SubscriptionManager.CONTENT_URI, existingSimInfoEntries); in testMccMncMigration()
345 try (Cursor c = mContentResolver.query(SubscriptionManager.CONTENT_URI, proj, in testMccMncMigration()
354 try (Cursor c = mContentResolver.query(SubscriptionManager.CONTENT_URI, proj, in testMccMncMigration()
388 Uri row1 = mContentResolver.insert(Carriers.CONTENT_URI, contentValues); in testUpdateConflictingCarriers()
[all …]
DRcsProviderQueryTest.java70 private MockContentResolver mContentResolver; field in RcsProviderQueryTest
80 mContentResolver = context.getContentResolver(); in setUp()
87 mContentResolver.insert(participantUri, contentValues); in setUp()
92 mContentResolver.insert(participantUri, contentValues); in setUp()
95 setup1To1Thread(mContentResolver, 1, 1); in setUp()
96 setup1To1Thread(mContentResolver, 2, 2); in setUp()
101 assertThat(mContentResolver.insert(Uri.parse("content://rcs/group_thread"), in setUp()
105 mContentResolver.insert(Uri.parse("content://rcs/group_thread/3/participant/1"), null); in setUp()
106 mContentResolver.insert(Uri.parse("content://rcs/group_thread/3/participant/2"), null); in setUp()
114 assertThat(mContentResolver.insert(Uri.parse("content://rcs/p2p_thread/1/incoming_message"), in setUp()
[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/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/TvSettings/Settings/src/com/android/tv/settings/system/development/
DDevelopmentFragment.java170 private ContentResolver mContentResolver; field in DevelopmentFragment
268 mContentResolver = getActivity().getContentResolver(); in onCreate()
280 || Settings.Global.getInt(mContentResolver, in onCreatePreferences()
761 mDebugApp = Settings.Global.getString(mContentResolver, Settings.Global.DEBUG_APP); in updateDebuggerOptions()
762 updateSwitchPreference(mWaitForDebugger, Settings.Global.getInt(mContentResolver, in updateDebuggerOptions()
820 Settings.Global.getInt(mContentResolver, in updateVerifyAppsOverUsbOptions()
826 Settings.Global.putInt(mContentResolver, Settings.Global.PACKAGE_VERIFIER_INCLUDE_ADB, in writeVerifyAppsOverUsbOptions()
831 if (Settings.Global.getInt(mContentResolver, Settings.Global.ADB_ENABLED, 0) == 0) { in enableVerifierSetting()
834 if (Settings.Global.getInt(mContentResolver, in enableVerifierSetting()
851 return Settings.Global.getInt(mContentResolver, in showVerifierSetting()
[all …]
/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()
/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()

123456