Home
last modified time | relevance | path

Searched refs:Global (Results 1 – 25 of 211) sorted by relevance

123456789

/frameworks/base/core/tests/coretests/src/android/provider/
DSettingsBackupTest.java90 Settings.Global.ACTIVITY_MANAGER_CONSTANTS,
91 Settings.Global.ADB_ENABLED,
92 Settings.Global.ADD_USERS_WHEN_LOCKED,
93 Settings.Global.AIRPLANE_MODE_ON,
94 Settings.Global.AIRPLANE_MODE_RADIOS,
95 Settings.Global.AIRPLANE_MODE_TOGGLEABLE_RADIOS,
96 Settings.Global.ALARM_MANAGER_CONSTANTS,
97 Settings.Global.ALLOW_USER_SWITCHING_WHEN_SYSTEM_USER_LOCKED,
98 Settings.Global.ALWAYS_FINISH_ACTIVITIES,
99 Settings.Global.ANIMATOR_DURATION_SCALE,
[all …]
/frameworks/base/packages/SettingsProvider/src/com/android/providers/settings/
DSettingsProtoDumpUtil.java84 Settings.Global.ADD_USERS_WHEN_LOCKED, in dumpProtoGlobalSettingsLocked()
87 Settings.Global.ENABLE_ACCESSIBILITY_GLOBAL_GESTURE_ENABLED, in dumpProtoGlobalSettingsLocked()
90 Settings.Global.AIRPLANE_MODE_ON, in dumpProtoGlobalSettingsLocked()
93 Settings.Global.THEATER_MODE_ON, in dumpProtoGlobalSettingsLocked()
96 Settings.Global.RADIO_BLUETOOTH, in dumpProtoGlobalSettingsLocked()
99 Settings.Global.RADIO_WIFI, in dumpProtoGlobalSettingsLocked()
102 Settings.Global.RADIO_WIMAX, in dumpProtoGlobalSettingsLocked()
105 Settings.Global.RADIO_CELL, in dumpProtoGlobalSettingsLocked()
108 Settings.Global.RADIO_NFC, in dumpProtoGlobalSettingsLocked()
111 Settings.Global.AIRPLANE_MODE_RADIOS, in dumpProtoGlobalSettingsLocked()
[all …]
DDatabaseHelper.java41 import android.provider.Settings.Global;
529 Settings.Global.ASSISTED_GPS_ENABLED + "','" + value + "');"); in onUpgrade()
778 Global.SET_INSTALL_LOCATION, in onUpgrade()
779 Global.DEFAULT_INSTALL_LOCATION in onUpgrade()
787 loadSetting(stmt, Global.SET_INSTALL_LOCATION, 0); in onUpgrade()
788 loadSetting(stmt, Global.DEFAULT_INSTALL_LOCATION, in onUpgrade()
1205 loadBooleanSetting(stmt, Settings.Global.PACKAGE_VERIFIER_ENABLE, in onUpgrade()
1313 Settings.Global.PACKAGE_VERIFIER_ENABLE, in onUpgrade()
1314 Settings.Global.PACKAGE_VERIFIER_TIMEOUT, in onUpgrade()
1315 Settings.Global.PACKAGE_VERIFIER_DEFAULT_RESPONSE in onUpgrade()
[all …]
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/
DWifiSettingsStore.java139 Settings.Global.putInt(cr, Settings.Global.WIFI_ON, state); in persistWifiState()
144 String airplaneModeRadios = Settings.Global.getString(mContext.getContentResolver(), in isAirplaneSensitive()
145 Settings.Global.AIRPLANE_MODE_RADIOS); in isAirplaneSensitive()
147 || airplaneModeRadios.contains(Settings.Global.RADIO_WIFI); in isAirplaneSensitive()
152 String toggleableRadios = Settings.Global.getString(mContext.getContentResolver(), in isAirplaneToggleable()
153 Settings.Global.AIRPLANE_MODE_TOGGLEABLE_RADIOS); in isAirplaneToggleable()
155 && toggleableRadios.contains(Settings.Global.RADIO_WIFI); in isAirplaneToggleable()
185 Settings.Global.putInt(mContext.getContentResolver(), in setWifiSavedState()
186 Settings.Global.WIFI_SAVED_STATE, state); in setWifiSavedState()
199 return Settings.Global.getInt(mContext.getContentResolver(), in getWifiSavedState()
[all …]
/frameworks/base/tests/testables/tests/src/android/testing/
DTestableSettingsProviderTest.java19 import android.provider.Settings.Global;
44 Settings.Global.putString(mContentResolver, NONEXISTENT_SETTING, "initial value"); in setup()
45 Settings.Global.putString(mContentResolver, Global.DEVICE_PROVISIONED, null); in setup()
56 String value = Global.getString(mContentResolver, NONEXISTENT_SETTING); in testInitialValueGlobal()
63 Global.putString(mContentResolver, NONEXISTENT_SETTING, "else"); in testSeparateTables()
65 assertEquals("else", Global.getString(mContentResolver, NONEXISTENT_SETTING)); in testSeparateTables()
88 assertNull(Global.getString(mContentResolver, Global.DEVICE_PROVISIONED)); in testOverrideExisting()
94 assertNull(Global.getString(mContentResolver, Global.DEVICE_PROVISIONED)); in testRelease()
97 assertEquals("1", Global.getString(mContentResolver, Global.DEVICE_PROVISIONED)); in testRelease()
/frameworks/base/core/java/android/provider/
DSettings.java2089 MOVED_TO_SECURE_THEN_GLOBAL.add(Global.ADB_ENABLED);
2090 MOVED_TO_SECURE_THEN_GLOBAL.add(Global.BLUETOOTH_ON);
2091 MOVED_TO_SECURE_THEN_GLOBAL.add(Global.DATA_ROAMING);
2092 MOVED_TO_SECURE_THEN_GLOBAL.add(Global.DEVICE_PROVISIONED);
2093 MOVED_TO_SECURE_THEN_GLOBAL.add(Global.USB_MASS_STORAGE_ENABLED);
2094 MOVED_TO_SECURE_THEN_GLOBAL.add(Global.HTTP_PROXY);
2097 MOVED_TO_GLOBAL.add(Settings.Global.AIRPLANE_MODE_ON);
2098 MOVED_TO_GLOBAL.add(Settings.Global.AIRPLANE_MODE_RADIOS);
2099 MOVED_TO_GLOBAL.add(Settings.Global.AIRPLANE_MODE_TOGGLEABLE_RADIOS);
2100 MOVED_TO_GLOBAL.add(Settings.Global.AUTO_TIME);
[all …]
/frameworks/base/services/tests/servicestests/src/com/android/server/
DNetworkScorerAppManagerTest.java236 Settings.Global.NETWORK_RECOMMENDATIONS_PACKAGE, null); in testSetActiveScorer_nullPackage_currentIsSet()
238 Settings.Global.NETWORK_RECOMMENDATIONS_ENABLED, in testSetActiveScorer_nullPackage_currentIsSet()
261 Settings.Global.NETWORK_RECOMMENDATIONS_PACKAGE, newPackage); in testSetActiveScorer_validPackage()
263 Settings.Global.NETWORK_RECOMMENDATIONS_ENABLED, in testSetActiveScorer_validPackage()
285 eq(Settings.Global.NETWORK_RECOMMENDATIONS_PACKAGE)); in testUpdateState_recommendationsForcedOff()
287 eq(Settings.Global.NETWORK_RECOMMENDATIONS_ENABLED), anyInt()); in testUpdateState_recommendationsForcedOff()
301 eq(Settings.Global.NETWORK_RECOMMENDATIONS_PACKAGE), any()); in testUpdateState_currentPackageValid()
303 Settings.Global.NETWORK_RECOMMENDATIONS_ENABLED, in testUpdateState_currentPackageValid()
318 Settings.Global.NETWORK_RECOMMENDATIONS_PACKAGE, defaultPackage); in testUpdateState_currentPackageNotValid_validDefault()
320 Settings.Global.NETWORK_RECOMMENDATIONS_ENABLED, in testUpdateState_currentPackageNotValid_validDefault()
[all …]
/frameworks/opt/net/ims/src/java/com/android/ims/
DImsManager.java254 int enabled = android.provider.Settings.Global.getInt( in isEnhanced4gLteModeSettingEnabledByUser()
256 android.provider.Settings.Global.ENHANCED_4G_MODE_ENABLED, in isEnhanced4gLteModeSettingEnabledByUser()
271 int enabled = android.provider.Settings.Global.getInt( in isEnhanced4gLteModeSettingEnabledByUserForSlot()
273 android.provider.Settings.Global.ENHANCED_4G_MODE_ENABLED, in isEnhanced4gLteModeSettingEnabledByUserForSlot()
286 android.provider.Settings.Global.putInt( in setEnhanced4gLteModeSetting()
288 android.provider.Settings.Global.ENHANCED_4G_MODE_ENABLED, value); in setEnhanced4gLteModeSetting()
315 int prevSetting = android.provider.Settings.Global.getInt(mContext.getContentResolver(), in setEnhanced4gLteModeSettingForSlot()
316 android.provider.Settings.Global.ENHANCED_4G_MODE_ENABLED); in setEnhanced4gLteModeSettingForSlot()
325 android.provider.Settings.Global.putInt(mContext.getContentResolver(), in setEnhanced4gLteModeSettingForSlot()
326 android.provider.Settings.Global.ENHANCED_4G_MODE_ENABLED, value); in setEnhanced4gLteModeSettingForSlot()
[all …]
/frameworks/base/services/core/java/com/android/server/notification/
DZenModeHelper.java52 import android.provider.Settings.Global;
453 automaticZenRule.getInterruptionFilter(), Global.ZEN_MODE_OFF); in populateZenRule()
471 if (!Global.isValidZenMode(zenMode)) return; in setManualZenMode()
472 if (DEBUG) Log.d(TAG, "setManualZenMode " + Global.zenModeToString(zenMode) in setManualZenMode()
476 if (zenMode == Global.ZEN_MODE_OFF) { in setManualZenMode()
515 pw.println(Global.zenModeToString(mZenMode)); in dump()
685 Global.putString(mContext.getContentResolver(), Global.ZEN_MODE_CONFIG_ETAG, val); in applyConfig()
693 return Global.getInt(mContext.getContentResolver(), Global.ZEN_MODE, Global.ZEN_MODE_OFF); in getZenModeSetting()
697 Global.putInt(mContext.getContentResolver(), Global.ZEN_MODE, zen); in setZenModeSetting()
701 return Global.getInt(mContext.getContentResolver(), in getPreviousRingerModeSetting()
[all …]
/frameworks/base/services/tests/servicestests/src/com/android/server/retaildemo/
DRetailDemoModeServiceTest.java133 Settings.Global.putString(mContentResolver, Settings.Global.RETAIL_DEMO_MODE_CONSTANTS, ""); in setUp()
134 Settings.Global.putInt(mContentResolver, Settings.Global.DEVICE_PROVISIONED, 1); in setUp()
135 Settings.Global.putInt(mContentResolver, Settings.Global.DEVICE_DEMO_MODE, 1); in setUp()
194 Settings.Global.getInt(mContentResolver, in testDemoUserSetup()
195 Settings.Global.PACKAGE_VERIFIER_ENABLE), in testDemoUserSetup()
208 final Uri deviceDemoModeUri = Settings.Global.getUriFor(Settings.Global.DEVICE_DEMO_MODE); in testSettingsObserver_disableDemoMode()
211 Settings.Global.putInt(mContentResolver, Settings.Global.PACKAGE_VERIFIER_ENABLE, 1); in testSettingsObserver_disableDemoMode()
218 Settings.Global.putInt(mContentResolver, Settings.Global.PACKAGE_VERIFIER_ENABLE, 0); in testSettingsObserver_disableDemoMode()
221 Settings.Global.putInt(mContentResolver, Settings.Global.DEVICE_DEMO_MODE, 0); in testSettingsObserver_disableDemoMode()
226 Settings.Global.getInt(mContentResolver, Settings.Global.PACKAGE_VERIFIER_ENABLE)); in testSettingsObserver_disableDemoMode()
[all …]
/frameworks/base/services/core/java/com/android/server/
DDockObserver.java137 || Settings.Global.getInt(getContext().getContentResolver(), in setDockStateLocked()
138 Settings.Global.THEATER_MODE_ON, 0) == 0) { in setDockStateLocked()
161 if (Settings.Global.getInt(cr, in handleDockStateChange()
162 Settings.Global.DEVICE_PROVISIONED, 0) == 0) { in handleDockStateChange()
172 boolean dockSoundsEnabled = Settings.Global.getInt(cr, in handleDockStateChange()
173 Settings.Global.DOCK_SOUNDS_ENABLED, 1) == 1; in handleDockStateChange()
174 boolean dockSoundsEnabledWhenAccessibility = Settings.Global.getInt(cr, in handleDockStateChange()
175 Settings.Global.DOCK_SOUNDS_ENABLED_WHEN_ACCESSIBILITY, 1) == 1; in handleDockStateChange()
188 whichSound = Settings.Global.DESK_UNDOCK_SOUND; in handleDockStateChange()
190 whichSound = Settings.Global.CAR_UNDOCK_SOUND; in handleDockStateChange()
[all …]
DNetworkScorerAppManager.java298 mSettingsFacade.getString(mContext, Settings.Global.NETWORK_SCORER_APP); in migrateNetworkScorerAppSettingIfNeeded()
321 mSettingsFacade.getString(mContext, Settings.Global.USE_OPEN_WIFI_PACKAGE); in migrateNetworkScorerAppSettingIfNeeded()
325 mSettingsFacade.putString(mContext, Settings.Global.USE_OPEN_WIFI_PACKAGE, in migrateNetworkScorerAppSettingIfNeeded()
334 mSettingsFacade.putString(mContext, Settings.Global.NETWORK_SCORER_APP, null); in migrateNetworkScorerAppSettingIfNeeded()
338 mSettingsFacade.getString(mContext, Settings.Global.USE_OPEN_WIFI_PACKAGE); in migrateNetworkScorerAppSettingIfNeeded()
349 return mSettingsFacade.getString(mContext, Settings.Global.NETWORK_RECOMMENDATIONS_PACKAGE); in getNetworkRecommendationsPackage()
354 Settings.Global.NETWORK_RECOMMENDATIONS_PACKAGE, packageName); in setNetworkRecommendationsPackage()
358 return mSettingsFacade.getInt(mContext, Settings.Global.NETWORK_RECOMMENDATIONS_ENABLED, 0); in getNetworkRecommendationsEnabledSetting()
363 Settings.Global.NETWORK_RECOMMENDATIONS_ENABLED, value); in setNetworkRecommendationsEnabledSetting()
371 return Settings.Global.putString(context.getContentResolver(), name, value); in putString()
[all …]
/frameworks/base/services/core/java/com/android/server/webkit/
DSystemImpl.java34 import android.provider.Settings.Global;
190 return Settings.Global.getString(context.getContentResolver(), in getUserChosenWebViewProvider()
191 Settings.Global.WEBVIEW_PROVIDER); in getUserChosenWebViewProvider()
196 Settings.Global.putString(context.getContentResolver(), in updateUserSetting()
197 Settings.Global.WEBVIEW_PROVIDER, in updateUserSetting()
213 return Settings.Global.getInt(AppGlobals.getInitialApplication().getContentResolver(), in isFallbackLogicEnabled()
214 Settings.Global.WEBVIEW_FALLBACK_LOGIC_ENABLED, 1) == 1; in isFallbackLogicEnabled()
219 Settings.Global.putInt(AppGlobals.getInitialApplication().getContentResolver(), in enableFallbackLogic()
220 Settings.Global.WEBVIEW_FALLBACK_LOGIC_ENABLED, enable ? 1 : 0); in enableFallbackLogic()
282 return Settings.Global.getInt(context.getContentResolver(), in getMultiProcessSetting()
[all …]
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/
DWirelessUtils.java27 String toggleable = Settings.Global.getString(context.getContentResolver(), in isRadioAllowed()
28 Settings.Global.AIRPLANE_MODE_TOGGLEABLE_RADIOS); in isRadioAllowed()
33 return Settings.Global.getInt(context.getContentResolver(), in isAirplaneModeOn()
34 Settings.Global.AIRPLANE_MODE_ON, 0) != 0; in isAirplaneModeOn()
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/
DCarrierActionAgentTest.java96 Settings.Global.putInt(mFakeContentResolver, Settings.Global.AIRPLANE_MODE_ON, 1); in testCarrierActionResetOnAPM()
98 Settings.Global.getUriFor(Settings.Global.AIRPLANE_MODE_ON), null); in testCarrierActionResetOnAPM()
111 Settings.Global.putInt(mFakeContentResolver, Settings.Global.AIRPLANE_MODE_ON, 0); in tearDown()
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/
DGlobalSetting.java22 import android.provider.Settings.Global;
40 return Global.getInt(mContext.getContentResolver(), mSettingName, 0); in getValue()
44 Global.putInt(mContext.getContentResolver(), mSettingName, value); in setValue()
51 Global.getUriFor(mSettingName), false, this); in setListening()
/frameworks/base/services/tests/servicestests/src/com/android/server/usage/
DStorageStatsServiceTest.java42 Settings.Global.putInt(mContentResolver, Settings.Global.ENABLE_CACHE_QUOTA_CALCULATION, 0); in testDontRunWhenDisabledFromSettingsGlobal()
50 Settings.Global.putString( in testCalculationTaskIsEnabledByDefault()
51 mContentResolver, Settings.Global.ENABLE_CACHE_QUOTA_CALCULATION, null); in testCalculationTaskIsEnabledByDefault()
/frameworks/compile/mclinker/unittests/
DStaticResolverTest.cpp67 new_sym->setBinding(ResolveInfo::Global); in TEST_F()
68 old_sym->setBinding(ResolveInfo::Global); in TEST_F()
78 ASSERT_TRUE(mcld::ResolveInfo::Global == new_sym->binding()); in TEST_F()
79 ASSERT_TRUE(mcld::ResolveInfo::Global == old_sym->binding()); in TEST_F()
94 new_sym->setBinding(ResolveInfo::Global); in TEST_F()
95 old_sym->setBinding(ResolveInfo::Global); in TEST_F()
105 ASSERT_TRUE(mcld::ResolveInfo::Global == new_sym->binding()); in TEST_F()
106 ASSERT_TRUE(mcld::ResolveInfo::Global == old_sym->binding()); in TEST_F()
121 new_sym->setBinding(ResolveInfo::Global); in TEST_F()
122 old_sym->setBinding(ResolveInfo::Global); in TEST_F()
[all …]
/frameworks/base/services/net/java/android/net/util/
DMultinetworkPolicyTracker.java39 import static android.provider.Settings.Global.NETWORK_AVOID_BAD_WIFI;
40 import static android.provider.Settings.Global.NETWORK_METERED_MULTIPATH_PREFERENCE;
87 Settings.Global.getUriFor(NETWORK_AVOID_BAD_WIFI), in MultinetworkPolicyTracker()
88 Settings.Global.getUriFor(NETWORK_METERED_MULTIPATH_PREFERENCE)); in MultinetworkPolicyTracker()
144 return Settings.Global.getString(mResolver, NETWORK_AVOID_BAD_WIFI); in getAvoidBadWifiSetting()
168 String setting = Settings.Global.getString(mResolver, NETWORK_METERED_MULTIPATH_PREFERENCE); in updateMeteredMultipathPreference()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/
DDeviceProvisionedControllerImpl.java22 import android.provider.Settings.Global;
43 mDeviceProvisionedUri = Global.getUriFor(Global.DEVICE_PROVISIONED); in DeviceProvisionedControllerImpl()
49 return Global.getInt(mContentResolver, Global.DEVICE_PROVISIONED, 0) != 0; in isDeviceProvisioned()
DZenModeControllerImpl.java33 import android.provider.Settings.Global;
74 mModeSetting = new GlobalSetting(mContext, handler, Global.ZEN_MODE) { in ZenModeControllerImpl()
80 mConfigSetting = new GlobalSetting(mContext, handler, Global.ZEN_MODE_CONFIG_ETAG) { in ZenModeControllerImpl()
260 return Global.getInt(mResolver, Global.DEVICE_PROVISIONED, 0) != 0; in isDeviceProvisioned()
268 Global.getUriFor(Global.DEVICE_PROVISIONED), false, this); in register()
276 if (Global.getUriFor(Global.DEVICE_PROVISIONED).equals(uri) in onChange()
/frameworks/base/core/java/com/android/internal/util/
DEmergencyAffordanceManager.java61 String override = Settings.Global.getString( in getPhoneUri()
91 return Settings.Global.getInt(mContext.getContentResolver(), in isEmergencyAffordanceNeeded()
92 Settings.Global.EMERGENCY_AFFORDANCE_NEEDED, 0) != 0; in isEmergencyAffordanceNeeded()
97 return Settings.Global.getInt(mContext.getContentResolver(), in forceShowing()
/frameworks/base/services/core/java/com/android/server/power/
DBatterySaverPolicy.java176 mContentResolver.registerContentObserver(Settings.Global.getUriFor( in start()
177 Settings.Global.BATTERY_SAVER_CONSTANTS), false, this); in start()
183 final String value = Settings.Global.getString(mContentResolver, in onChange()
184 Settings.Global.BATTERY_SAVER_CONSTANTS); in onChange()
271 pw.println(" Settings " + Settings.Global.BATTERY_SAVER_CONSTANTS); in dump()
272 pw.println(" value: " + Settings.Global.getString(mContentResolver, in dump()
273 Settings.Global.BATTERY_SAVER_CONSTANTS)); in dump()
/frameworks/base/packages/SystemUI/src/com/android/systemui/tuner/
DTunerZenModePanel.java21 import android.provider.Settings.Global;
85 if (mZenMode == Global.ZEN_MODE_OFF) { in onClick()
87 Global.ZEN_MODE_ALARMS); in onClick()
91 mZenMode = Global.ZEN_MODE_OFF; in onClick()
92 mController.setZen(Global.ZEN_MODE_OFF, null, TAG); in onClick()
128 boolean zenOn = mZenMode != Global.ZEN_MODE_OFF; in updatePanel()
/frameworks/base/packages/SystemUI/src/com/android/systemui/volume/
DZenFooter.java21 import android.provider.Settings.Global;
94 setZen(Global.ZEN_MODE_OFF); in init()
95 controller.setZen(Global.ZEN_MODE_OFF, null, TAG); in init()
129 return mZen == Global.ZEN_MODE_IMPORTANT_INTERRUPTIONS; in isZenPriority()
133 return mZen == Global.ZEN_MODE_ALARMS; in isZenAlarms()
137 return mZen == Global.ZEN_MODE_NO_INTERRUPTIONS; in isZenNone()

123456789