Home
last modified time | relevance | path

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

123456

/frameworks/opt/net/wifi/service/java/com/android/server/wifi/
DWifiSettingsStore.java138 Settings.Global.putInt(cr, Settings.Global.WIFI_ON, state); in persistWifiState()
143 String airplaneModeRadios = Settings.Global.getString(mContext.getContentResolver(), in isAirplaneSensitive()
144 Settings.Global.AIRPLANE_MODE_RADIOS); in isAirplaneSensitive()
146 || airplaneModeRadios.contains(Settings.Global.RADIO_WIFI); in isAirplaneSensitive()
151 String toggleableRadios = Settings.Global.getString(mContext.getContentResolver(), in isAirplaneToggleable()
152 Settings.Global.AIRPLANE_MODE_TOGGLEABLE_RADIOS); in isAirplaneToggleable()
154 && toggleableRadios.contains(Settings.Global.RADIO_WIFI); in isAirplaneToggleable()
168 wifiSavedState = Settings.Global.getInt(cr, Settings.Global.WIFI_SAVED_STATE); in testAndClearWifiSavedState()
170 Settings.Global.putInt(cr, Settings.Global.WIFI_SAVED_STATE, 0); in testAndClearWifiSavedState()
180 return Settings.Global.getInt(cr, Settings.Global.WIFI_ON); in getPersistedWifiState()
[all …]
DWifiController.java205 mStayAwakeConditions = Settings.Global.getInt(mContext.getContentResolver(), in readStayAwakeConditions()
206 Settings.Global.STAY_ON_WHILE_PLUGGED_IN, 0); in readStayAwakeConditions()
210 mIdleMillis = Settings.Global.getLong(mContext.getContentResolver(), in readWifiIdleTime()
211 Settings.Global.WIFI_IDLE_MS, DEFAULT_IDLE_MS); in readWifiIdleTime()
215 mSleepPolicy = Settings.Global.getInt(mContext.getContentResolver(), in readWifiSleepPolicy()
216 Settings.Global.WIFI_SLEEP_POLICY, in readWifiSleepPolicy()
217 Settings.Global.WIFI_SLEEP_POLICY_NEVER); in readWifiSleepPolicy()
221 mReEnableDelayMillis = Settings.Global.getLong(mContext.getContentResolver(), in readWifiReEnableDelay()
222 Settings.Global.WIFI_REENABLE_DELAY_MS, DEFAULT_REENABLE_DELAY_MS); in readWifiReEnableDelay()
237 Settings.Global.getUriFor(Settings.Global.STAY_ON_WHILE_PLUGGED_IN), in registerForStayAwakeModeChange()
[all …]
DWifiNotificationController.java134 NOTIFICATION_REPEAT_DELAY_MS = Settings.Global.getInt(context.getContentResolver(), in WifiNotificationController()
135 Settings.Global.WIFI_NETWORKS_AVAILABLE_REPEAT_DELAY, 900) * 1000l; in WifiNotificationController()
278 cr.registerContentObserver(Settings.Global.getUriFor( in register()
279 Settings.Global.WIFI_NETWORKS_AVAILABLE_NOTIFICATION_ON), true, this); in register()
296 return Settings.Global.getInt(mContext.getContentResolver(), in getValue()
297 Settings.Global.WIFI_NETWORKS_AVAILABLE_NOTIFICATION_ON, 1) == 1; in getValue()
/frameworks/base/core/java/android/provider/
DSettings.java1255 MOVED_TO_SECURE_THEN_GLOBAL.add(Global.ADB_ENABLED);
1256 MOVED_TO_SECURE_THEN_GLOBAL.add(Global.BLUETOOTH_ON);
1257 MOVED_TO_SECURE_THEN_GLOBAL.add(Global.DATA_ROAMING);
1258 MOVED_TO_SECURE_THEN_GLOBAL.add(Global.DEVICE_PROVISIONED);
1259 MOVED_TO_SECURE_THEN_GLOBAL.add(Global.USB_MASS_STORAGE_ENABLED);
1260 MOVED_TO_SECURE_THEN_GLOBAL.add(Global.HTTP_PROXY);
1263 MOVED_TO_GLOBAL.add(Settings.Global.AIRPLANE_MODE_ON);
1264 MOVED_TO_GLOBAL.add(Settings.Global.AIRPLANE_MODE_RADIOS);
1265 MOVED_TO_GLOBAL.add(Settings.Global.AIRPLANE_MODE_TOGGLEABLE_RADIOS);
1266 MOVED_TO_GLOBAL.add(Settings.Global.AUTO_TIME);
[all …]
/frameworks/opt/telephony/src/java/com/android/internal/telephony/
DPhoneFactory.java142 Settings.Global.PREFERRED_NETWORK_MODE, i); in makeDefaultPhone()
343 int networkType = Settings.Global.getInt(context.getContentResolver(), in calculatePreferredNetworkType()
344 Settings.Global.PREFERRED_NETWORK_MODE, preferredNetworkType); in calculatePreferredNetworkType()
358 subId = Settings.Global.getInt(sContext.getContentResolver(), in getVoiceSubscription()
359 Settings.Global.MULTI_SIM_VOICE_CALL_SUBSCRIPTION); in getVoiceSubscription()
383 value = Settings.Global.getInt(sContext.getContentResolver(), in isPromptEnabled()
384 Settings.Global.MULTI_SIM_VOICE_PROMPT); in isPromptEnabled()
397 Settings.Global.putInt(sContext.getContentResolver(), in setPromptEnabled()
398 Settings.Global.MULTI_SIM_VOICE_PROMPT, value); in setPromptEnabled()
407 value = Settings.Global.getInt(sContext.getContentResolver(), in isSMSPromptEnabled()
[all …]
/frameworks/base/services/core/java/com/android/server/notification/
DZenModeHelper.java39 import android.provider.Settings.Global;
120 case Global.ZEN_MODE_OFF: in getZenModeListenerInterruptionFilter()
122 case Global.ZEN_MODE_IMPORTANT_INTERRUPTIONS: in getZenModeListenerInterruptionFilter()
124 case Global.ZEN_MODE_NO_INTERRUPTIONS: in getZenModeListenerInterruptionFilter()
135 return Global.ZEN_MODE_OFF; in zenModeFromListenerInterruptionFilter()
137 return Global.ZEN_MODE_IMPORTANT_INTERRUPTIONS; in zenModeFromListenerInterruptionFilter()
139 return Global.ZEN_MODE_NO_INTERRUPTIONS; in zenModeFromListenerInterruptionFilter()
157 case Global.ZEN_MODE_NO_INTERRUPTIONS: in shouldIntercept()
161 case Global.ZEN_MODE_IMPORTANT_INTERRUPTIONS: in shouldIntercept()
213 Global.putInt(mContext.getContentResolver(), Global.ZEN_MODE, zenModeValue); in setZenMode()
[all …]
DConditionProviders.java28 import android.provider.Settings.Global;
158 mZenModeHelper.setZenMode(Global.ZEN_MODE_OFF, "manualServiceRemoved"); in onServiceRemovedLocked()
162 mZenModeHelper.setZenMode(Global.ZEN_MODE_OFF, "automaticServiceRemoved"); in onServiceRemovedLocked()
258 mZenModeHelper.setZenMode(Settings.Global.ZEN_MODE_OFF, in notifyConditions()
273 mZenModeHelper.setZenMode(Settings.Global.ZEN_MODE_OFF, in notifyConditions()
277 mZenModeHelper.setZenMode(Settings.Global.ZEN_MODE_IMPORTANT_INTERRUPTIONS, in notifyConditions()
528 if (mode == Global.ZEN_MODE_OFF) { in onZenModeChanged()
541 if (inDowntime && mode == Global.ZEN_MODE_OFF && config != null) { in onDowntimeChanged()
544 mZenModeHelper.setZenMode(Global.ZEN_MODE_IMPORTANT_INTERRUPTIONS, "downtimeEnter"); in onDowntimeChanged()
549 && (mode == Global.ZEN_MODE_IMPORTANT_INTERRUPTIONS in onDowntimeChanged()
[all …]
/frameworks/base/packages/SettingsProvider/src/com/android/providers/settings/
DDatabaseHelper.java41 import android.provider.Settings.Global;
485 Settings.Global.ASSISTED_GPS_ENABLED + "','" + value + "');"); in onUpgrade()
734 Global.SET_INSTALL_LOCATION, in onUpgrade()
735 Global.DEFAULT_INSTALL_LOCATION in onUpgrade()
743 loadSetting(stmt, Global.SET_INSTALL_LOCATION, 0); in onUpgrade()
744 loadSetting(stmt, Global.DEFAULT_INSTALL_LOCATION, in onUpgrade()
1203 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/base/core/java/android/net/
DNetworkScorerAppManager.java142 String scorerPackage = Settings.Global.getString(context.getContentResolver(), in getActiveScorer()
143 Settings.Global.NETWORK_SCORER_APP); in getActiveScorer()
158 String oldPackageName = Settings.Global.getString(context.getContentResolver(), in setActiveScorer()
159 Settings.Global.NETWORK_SCORER_APP); in setActiveScorer()
168 Settings.Global.putString(context.getContentResolver(), in setActiveScorer()
169 Settings.Global.NETWORK_SCORER_APP, null); in setActiveScorer()
174 Settings.Global.putString(context.getContentResolver(), in setActiveScorer()
175 Settings.Global.NETWORK_SCORER_APP, packageName); in setActiveScorer()
/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/core/java/com/android/server/
DDockObserver.java150 if (Settings.Global.getInt(cr, in handleDockStateChange()
151 Settings.Global.DEVICE_PROVISIONED, 0) == 0) { in handleDockStateChange()
163 if (Settings.Global.getInt(cr, in handleDockStateChange()
164 Settings.Global.DOCK_SOUNDS_ENABLED, 1) == 1) { in handleDockStateChange()
170 whichSound = Settings.Global.DESK_UNDOCK_SOUND; in handleDockStateChange()
172 whichSound = Settings.Global.CAR_UNDOCK_SOUND; in handleDockStateChange()
178 whichSound = Settings.Global.DESK_DOCK_SOUND; in handleDockStateChange()
180 whichSound = Settings.Global.CAR_DOCK_SOUND; in handleDockStateChange()
185 final String soundPath = Settings.Global.getString(cr, whichSound); in handleDockStateChange()
DSamplingProfilerService.java93 Settings.Global.getUriFor(Settings.Global.SAMPLING_PROFILER_MS), in registerSettingObserver()
114 Integer samplingProfilerMs = Settings.Global.getInt( in onChange()
115 mContentResolver, Settings.Global.SAMPLING_PROFILER_MS, 0); in onChange()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/
DZenModeControllerImpl.java34 import android.provider.Settings.Global;
67 mModeSetting = new GlobalSetting(mContext, handler, Global.ZEN_MODE) { in ZenModeControllerImpl()
73 mConfigSetting = new GlobalSetting(mContext, handler, Global.ZEN_MODE_CONFIG_ETAG) { in ZenModeControllerImpl()
256 return Global.getInt(mResolver, Global.DEVICE_PROVISIONED, 0) != 0; in isDeviceProvisioned()
264 Global.getUriFor(Global.DEVICE_PROVISIONED), false, this); in register()
272 if (Global.getUriFor(Global.DEVICE_PROVISIONED).equals(uri) in onChange()
DHotspotControllerImpl.java101 Settings.Global.putInt(cr, Settings.Global.WIFI_SAVED_STATE, 1); in setHotspotEnabled()
108 if (Settings.Global.getInt(cr, Settings.Global.WIFI_SAVED_STATE, 0) == 1) { in setHotspotEnabled()
110 Settings.Global.putInt(cr, Settings.Global.WIFI_SAVED_STATE, 0); in setHotspotEnabled()
/frameworks/compile/mclinker/unittests/
DStaticResolverTest.cpp71 new_sym->setBinding(ResolveInfo::Global); in TEST_F()
72 old_sym->setBinding(ResolveInfo::Global); in TEST_F()
82 ASSERT_TRUE( mcld::ResolveInfo::Global == new_sym->binding()); in TEST_F()
83 ASSERT_TRUE( mcld::ResolveInfo::Global == old_sym->binding()); in TEST_F()
98 new_sym->setBinding(ResolveInfo::Global); in TEST_F()
99 old_sym->setBinding(ResolveInfo::Global); in TEST_F()
109 ASSERT_TRUE( mcld::ResolveInfo::Global == new_sym->binding()); in TEST_F()
110 ASSERT_TRUE( mcld::ResolveInfo::Global == old_sym->binding()); in TEST_F()
125 new_sym->setBinding(ResolveInfo::Global); in TEST_F()
126 old_sym->setBinding(ResolveInfo::Global); in TEST_F()
[all …]
DSymbolCategoryTest.cpp53 e->setBinding(ResolveInfo::Global); in TEST_F()
56 c->setBinding(ResolveInfo::Global); in TEST_F()
100 d->setBinding(ResolveInfo::Global); in TEST_F()
101 e->setBinding(ResolveInfo::Global); in TEST_F()
/frameworks/base/services/core/java/com/android/server/am/
DCoreSettingsObserver.java53 sGlobalSettingToTypeMap.put(Settings.Global.DEBUG_VIEW_ATTRIBUTES, int.class); in sGlobalSettingToTypeMap.put()
100 Uri uri = Settings.Global.getUriFor(setting); in beginObserveCoreSettings()
119 value = Settings.Global.getString(context.getContentResolver(), setting); in populateSettings()
129 value = Settings.Global.getInt(context.getContentResolver(), setting); in populateSettings()
139 value = Settings.Global.getFloat(context.getContentResolver(), setting); in populateSettings()
149 value = Settings.Global.getLong(context.getContentResolver(), setting); in populateSettings()
/frameworks/base/core/java/android/util/
DNtpTrustedTime.java62 final String secureServer = Settings.Global.getString( in getInstance()
63 resolver, Settings.Global.NTP_SERVER); in getInstance()
64 final long timeout = Settings.Global.getLong( in getInstance()
65 resolver, Settings.Global.NTP_TIMEOUT, defaultTimeout); in getInstance()
/frameworks/base/core/tests/ConnectivityManagerTest/src/com/android/connectivitymanagertest/stress/
DWifiStressTest.java198 Settings.Global.putInt(mRunner.getContext().getContentResolver(), in testWifiReconnectionAfterSleep()
199 Settings.Global.WIFI_SCAN_ALWAYS_AVAILABLE, 0); in testWifiReconnectionAfterSleep()
201 Settings.Global.putInt(mRunner.getContext().getContentResolver(), in testWifiReconnectionAfterSleep()
202 Settings.Global.WIFI_SLEEP_POLICY, Settings.Global.WIFI_SLEEP_POLICY_NEVER); in testWifiReconnectionAfterSleep()
204 Settings.Global.putLong(mRunner.getContext().getContentResolver(), in testWifiReconnectionAfterSleep()
205 Settings.Global.WIFI_IDLE_MS, WIFI_IDLE_MS); in testWifiReconnectionAfterSleep()
/frameworks/base/services/tests/servicestests/src/com/android/server/
DDropBoxTest.java48 Settings.Global.putString(cr, Settings.Global.DROPBOX_AGE_SECONDS, ""); in tearDown()
49 Settings.Global.putString(cr, Settings.Global.DROPBOX_MAX_FILES, ""); in tearDown()
50 Settings.Global.putString(cr, Settings.Global.DROPBOX_QUOTA_KB, ""); in tearDown()
51 Settings.Global.putString(cr, Settings.Global.DROPBOX_TAG_PREFIX + "DropBoxTest", ""); in tearDown()
257 Settings.Global.putString(cr, Settings.Global.DROPBOX_TAG_PREFIX + "DropBoxTest", in testIsTagEnabled()
263 Settings.Global.putString(cr, Settings.Global.DROPBOX_TAG_PREFIX + "DropBoxTest", in testIsTagEnabled()
333 Settings.Global.putString(cr, Settings.Global.DROPBOX_QUOTA_KB, Integer.toString(kb)); in testSizeLimits()
435 Settings.Global.putString(cr, Settings.Global.DROPBOX_AGE_SECONDS, "1"); in testAgeLimits()
436 Settings.Global.putString(cr, Settings.Global.DROPBOX_QUOTA_KB, Integer.toString(kb)); in testAgeLimits()
500 Settings.Global.putString(cr, Settings.Global.DROPBOX_MAX_FILES, "3"); in testFileCountLimits()
/frameworks/compile/mclinker/lib/LD/
DELFBinaryReader.cpp103 ResolveInfo::Global, in readBinary()
113 ResolveInfo::Global, in readBinary()
123 ResolveInfo::Global, in readBinary()
/frameworks/base/packages/SystemUI/src/com/android/systemui/volume/
DZenModePanel.java31 import android.provider.Settings.Global;
125 mZenButtons.addButton(R.string.interruption_level_none, Global.ZEN_MODE_NO_INTERRUPTIONS); in onFinishInflate()
127 Global.ZEN_MODE_IMPORTANT_INTERRUPTIONS); in onFinishInflate()
128 mZenButtons.addButton(R.string.interruption_level_all, Global.ZEN_MODE_OFF); in onFinishInflate()
191 if (selectedZen == Global.ZEN_MODE_NO_INTERRUPTIONS) { in checkForAttachedZenChange()
194 if (selectedZen == Global.ZEN_MODE_NO_INTERRUPTIONS in checkForAttachedZenChange()
195 || selectedZen == Global.ZEN_MODE_IMPORTANT_INTERRUPTIONS) { in checkForAttachedZenChange()
301 setExpanded(zen != Global.ZEN_MODE_OFF); in handleUpdateZen()
314 final int zen = getSelectedZen(Global.ZEN_MODE_OFF); in updateWidgets()
315 final boolean zenOff = zen == Global.ZEN_MODE_OFF; in updateWidgets()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/
DBootReceiver.java38 if (Settings.Global.getInt(res, Settings.Global.SHOW_PROCESSES, 0) != 0) { in onReceive()
/frameworks/base/packages/SystemUI/src/com/android/systemui/power/
DPowerUI.java72 resolver.registerContentObserver(Settings.Global.getUriFor( in start()
73 Settings.Global.LOW_POWER_MODE_TRIGGER_LEVEL), in start()
90 int warnLevel = Settings.Global.getInt(resolver, in updateBatteryWarningLevels()
91 Settings.Global.LOW_POWER_MODE_TRIGGER_LEVEL, defWarnLevel); in updateBatteryWarningLevels()
242 pw.println(Settings.Global.getInt(mContext.getContentResolver(), in dump()
243 Settings.Global.LOW_BATTERY_SOUND_TIMEOUT, 0)); in dump()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/dataconnection/
DDcTrackerBase.java377 mNetStatPollPeriod = Settings.Global.getInt(mResolver,
378 Settings.Global.PDP_WATCHDOG_POLL_INTERVAL_MS, POLL_NETSTAT_MILLIS);
380 mNetStatPollPeriod = Settings.Global.getInt(mResolver,
381 Settings.Global.PDP_WATCHDOG_LONG_POLL_INTERVAL_MS,
400 Settings.Global.getUriFor(Settings.Global.DATA_ROAMING), false, this); in register()
430 Settings.Global.MDC_INITIAL_MAX_RETRY, DEFAULT_MDC_INITIAL_RETRY); in getInitialMaxRetry()
433 return Settings.Global.getInt(mResolver, in getInitialMaxRetry()
434 Settings.Global.MDC_INITIAL_MAX_RETRY, value); in getInitialMaxRetry()
573 mUserDataEnabled = Settings.Global.getInt( in DcTrackerBase()
574 mPhone.getContext().getContentResolver(), Settings.Global.MOBILE_DATA, 1) == 1; in DcTrackerBase()
[all …]

123456