/cts/tests/tests/provider/src/android/provider/cts/ |
Settings_SecureTest.java | 23 import android.provider.Settings.Secure; 35 private static final String STRING_VALUE_SETTING = Secure.ENABLED_ACCESSIBILITY_SERVICES; 50 assertNull(Secure.getString(cr, NO_SUCH_SETTING)); 52 String value = Secure.getString(cr, STRING_VALUE_SETTING); 62 assertEquals(10, Secure.getInt(cr, "int", 10)); 63 assertEquals(20, Secure.getLong(cr, "long", 20)); 64 assertEquals(30.0f, Secure.getFloat(cr, "float", 30), 0.001); 68 assertNull(Secure.getString(cr, NO_SUCH_SETTING)); 71 Secure.putInt(cr, NO_SUCH_SETTING, -1); 77 Secure.getInt(cr, NO_SUCH_SETTING) [all...] |
/frameworks/base/core/tests/coretests/src/android/provider/ |
SettingsProviderTest.java | 39 Settings.Secure.putString(r, "test_service", "Value"); 40 assertEquals("Value", Settings.Secure.getString(r, "test_service")); 43 Settings.Secure.putString(r, "test_service", "New"); 44 assertEquals("New", Settings.Secure.getString(r, "test_service")); 47 assertEquals(1, r.delete(Settings.Secure.getUriFor("test_service"), null, null)); 48 assertEquals(null, Settings.Secure.getString(r, "test_service")); 67 assertEquals("content://settings/secure/test_service", 68 Settings.Secure.getUriFor("test_service").toString()); 71 Uri tables[] = { Settings.System.CONTENT_URI, Settings.Secure.CONTENT_URI }; 127 assertEquals(null, Settings.Secure.getString(r, "test_key")) [all...] |
/cts/tests/tests/permission2/src/android/permission2/cts/ |
NoWriteSecureSettingsPermissionTest.java | 22 * Verify secure settings cannot be written to without required permissions. 27 * Verify that write to secure settings requires permissions. 33 assertWritingContentUriRequiresPermission(android.provider.Settings.Secure.CONTENT_URI,
|
/packages/apps/Settings/src/com/android/settings/ |
OwnerInfoSettings.java | 46 String info = Settings.Secure.getString(res, Settings.Secure.LOCK_SCREEN_OWNER_INFO); 47 int enabled = Settings.Secure.getInt(res, 48 Settings.Secure.LOCK_SCREEN_OWNER_INFO_ENABLED, 1); 56 Settings.Secure.putInt(res, Settings.Secure.LOCK_SCREEN_OWNER_INFO_ENABLED, 72 Settings.Secure.putString(res, Settings.Secure.LOCK_SCREEN_OWNER_INFO, info);
|
ApplicationSettings.java | 64 Settings.Secure.SET_INSTALL_LOCATION, 0) != 0); 82 Settings.Secure.DEFAULT_INSTALL_LOCATION, APP_INSTALL_DEVICE); 85 Settings.Secure.DEFAULT_INSTALL_LOCATION, APP_INSTALL_SDCARD); 88 Settings.Secure.DEFAULT_INSTALL_LOCATION, APP_INSTALL_AUTO); 92 Settings.Secure.DEFAULT_INSTALL_LOCATION, APP_INSTALL_AUTO); 116 Settings.Secure.putInt(getContentResolver(), Settings.System.ADVANCED_SETTINGS, value); 125 Settings.Secure.DEFAULT_INSTALL_LOCATION, APP_INSTALL_AUTO);
|
LocationSettings.java | 66 Cursor settingsCursor = getContentResolver().query(Settings.Secure.CONTENT_URI, null, 68 new String[]{Settings.Secure.LOCATION_PROVIDERS_ALLOWED}, 122 Settings.Secure.setLocationProviderEnabled(cr, 126 Settings.Secure.setLocationProviderEnabled(cr, 132 Settings.Secure.putInt(cr, Settings.Secure.ASSISTED_GPS_ENABLED, 147 boolean gpsEnabled = Settings.Secure.isLocationProviderEnabled( 149 boolean networkEnabled = Settings.Secure.isLocationProviderEnabled( 155 mAssistedGps.setChecked(Settings.Secure.getInt(res, 156 Settings.Secure.ASSISTED_GPS_ENABLED, 2) == 1) [all...] |
DreamSettings.java | 19 import static android.provider.Settings.Secure.SCREENSAVER_ENABLED; 20 import static android.provider.Settings.Secure.SCREENSAVER_ACTIVATE_ON_DOCK; 91 return 0 != Settings.Secure.getInt( 96 Settings.Secure.putInt( 135 final boolean currentActivateOnDock = 0 != Settings.Secure.getInt(getContentResolver(), 153 Settings.Secure.putInt(getContentResolver(),
|
/development/apps/SdkSetup/src/com/android/sdksetup/ |
DefaultActivity.java | 41 Settings.Secure.putInt(getContentResolver(), Settings.Secure.DEVICE_PROVISIONED, 1); 45 Settings.Secure.putString(getContentResolver(), Settings.Secure.LOCATION_PROVIDERS_ALLOWED, LocationManager.GPS_PROVIDER); 48 Settings.Secure.putInt(getContentResolver(), Settings.Secure.INSTALL_NON_MARKET_APPS, 1);
|
/packages/apps/Phone/src/com/android/phone/ |
CdmaSystemSelectListPreference.java | 26 import android.provider.Settings.Secure; 71 Secure.getInt(mPhone.getContext().getContentResolver(), 72 Secure.CDMA_ROAMING_MODE, Phone.CDMA_RM_HOME); 83 //Set the Settings.Secure network mode 84 Secure.putInt(mPhone.getContext().getContentResolver(), 85 Secure.CDMA_ROAMING_MODE, 120 int settingsRoamingMode = Secure.getInt( 122 Secure.CDMA_ROAMING_MODE, Phone.CDMA_RM_HOME); 129 //changes the Settings.Secure accordingly to statusCdmaRoamingMode 130 Secure.putInt [all...] |
CdmaSubscriptionListPreference.java | 25 import android.provider.Settings.Secure; 56 int cdmaSubscriptionMode = Secure.getInt(mPhone.getContext().getContentResolver(), 57 android.provider.Settings.Secure.CDMA_SUBSCRIPTION_MODE, preferredSubscriptionMode); 123 Secure.putInt(mPhone.getContext().getContentResolver(), 124 Secure.CDMA_SUBSCRIPTION_MODE,
|
Use2GOnlyCheckBoxPreference.java | 57 android.provider.Settings.Secure.putInt(mPhone.getContext().getContentResolver(), 58 android.provider.Settings.Secure.PREFERRED_NETWORK_MODE, networkType); 92 android.provider.Settings.Secure.putInt(mPhone.getContext().getContentResolver(), 93 android.provider.Settings.Secure.PREFERRED_NETWORK_MODE, type);
|
MobileNetworkSettings.java | 146 int settingsNetworkMode = android.provider.Settings.Secure.getInt(mPhone.getContext(). 147 getContentResolver(), android.provider.Settings.Secure.PREFERRED_NETWORK_MODE, 178 String tmpl = android.provider.Settings.Secure.getString(getContentResolver(), 179 android.provider.Settings.Secure.SETUP_PREPAID_DATA_SERVICE_URL); 231 int settingsNetworkMode = android.provider.Settings.Secure.getInt(mPhone.getContext(). 232 getContentResolver(),android.provider.Settings.Secure.PREFERRED_NETWORK_MODE, 250 int settingsNetworkMode = android.provider.Settings.Secure.getInt( 252 android.provider.Settings.Secure.PREFERRED_NETWORK_MODE, 266 android.provider.Settings.Secure.getString(getContentResolver(), 267 android.provider.Settings.Secure.SETUP_PREPAID_DATA_SERVICE_URL)) [all...] |
/packages/apps/Provision/src/com/android/provision/ |
DefaultActivity.java | 35 Settings.Secure.putInt(getContentResolver(), Settings.Secure.DEVICE_PROVISIONED, 1);
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/compat/ |
SettingsSecureCompatUtils.java | 23 android.provider.Settings.Secure.class, "ACCESSIBILITY_SPEAK_PASSWORD");
|
/frameworks/base/core/java/android/provider/ |
Settings.java | 619 * @hide - Private call() method on SettingsProvider to read from 'secure' table. 794 MOVED_TO_SECURE.add(Secure.ADB_ENABLED); 795 MOVED_TO_SECURE.add(Secure.ANDROID_ID); 796 MOVED_TO_SECURE.add(Secure.BLUETOOTH_ON); 797 MOVED_TO_SECURE.add(Secure.DATA_ROAMING); 798 MOVED_TO_SECURE.add(Secure.DEVICE_PROVISIONED); 799 MOVED_TO_SECURE.add(Secure.HTTP_PROXY); 800 MOVED_TO_SECURE.add(Secure.INSTALL_NON_MARKET_APPS); 801 MOVED_TO_SECURE.add(Secure.LOCATION_PROVIDERS_ALLOWED); 802 MOVED_TO_SECURE.add(Secure.LOCK_BIOMETRIC_WEAK_FLAGS) [all...] |
/frameworks/base/services/java/com/android/server/am/ |
CoreSettingsObserver.java | 34 * in {@link Settings.Secure}. 43 sCoreSettingToTypeMap.put(Settings.Secure.LONG_PRESS_TIMEOUT, int.class); 76 Uri uri = Settings.Secure.getUriFor(setting); 89 String value = Settings.Secure.getString(context.getContentResolver(), 93 int value = Settings.Secure.getInt(context.getContentResolver(), 97 float value = Settings.Secure.getFloat(context.getContentResolver(), 101 long value = Settings.Secure.getLong(context.getContentResolver(),
|
/frameworks/base/packages/SettingsProvider/src/com/android/providers/settings/ |
DatabaseHelper.java | 35 import android.provider.Settings.Secure; 74 mValidTables.add("secure"); 95 db.execSQL("CREATE TABLE secure (" + 100 db.execSQL("CREATE INDEX secureIndex1 ON secure (name);"); 228 // This introduces the new secure settings table. 241 Settings.Secure.ADB_ENABLED, 242 Settings.Secure.ANDROID_ID, 243 Settings.Secure.BLUETOOTH_ON, 244 Settings.Secure.DATA_ROAMING, 245 Settings.Secure.DEVICE_PROVISIONED [all...] |
/frameworks/base/core/java/android/util/ |
NtpTrustedTime.java | 62 final String secureServer = Settings.Secure.getString( 63 resolver, Settings.Secure.NTP_SERVER); 64 final long timeout = Settings.Secure.getLong( 65 resolver, Settings.Secure.NTP_TIMEOUT, defaultTimeout);
|
/packages/apps/Settings/src/com/android/settings/inputmethod/ |
InputMethodAndSubtypeUtil.java | 97 return Settings.Secure.getInt(resolver, 98 Settings.Secure.SELECTED_INPUT_METHOD_SUBTYPE); 109 Settings.Secure.putInt(resolver, Settings.Secure.SELECTED_INPUT_METHOD_SUBTYPE, hashCode); 115 final String enabledInputMethodsStr = Settings.Secure.getString( 116 resolver, Settings.Secure.ENABLED_INPUT_METHODS); 145 String disabledIMEsStr = Settings.Secure.getString( 146 resolver, Settings.Secure.DISABLED_SYSTEM_INPUT_METHODS); 160 final String currentInputMethodId = Settings.Secure.getString(resolver, 161 Settings.Secure.DEFAULT_INPUT_METHOD) [all...] |
/frameworks/base/wifi/java/android/net/wifi/ |
WifiWatchdogStateMachine.java | 40 import android.provider.Settings.Secure; 270 putSettingsBoolean(contentResolver, Settings.Secure.WIFI_WATCHDOG_ON, true); 276 Settings.Secure.WIFI_WATCHDOG_POOR_NETWORK_TEST_ENABLED, false); 321 Settings.Secure.getUriFor(Settings.Secure.WIFI_WATCHDOG_ON), 326 * Observes watchdogs secure setting changes. 337 Settings.Secure.getUriFor( 338 Settings.Secure.WIFI_WATCHDOG_ARP_CHECK_INTERVAL_MS), 341 Settings.Secure.getUriFor(Settings.Secure.WIFI_WATCHDOG_WALLED_GARDEN_INTERVAL_MS) [all...] |
/frameworks/base/services/tests/servicestests/src/com/android/server/ |
ThrottleServiceTest.java | 245 Settings.Secure.putLong(resolver, Settings.Secure.THROTTLE_THRESHOLD_BYTES, thresholdBytes); 246 Settings.Secure.putInt(resolver, Settings.Secure.THROTTLE_VALUE_KBITSPS, valueKbitps); 247 Settings.Secure.putInt(resolver, Settings.Secure.THROTTLE_RESET_DAY, resetDay); 255 Settings.Secure.putString(resolver, Settings.Secure.THROTTLE_THRESHOLD_BYTES, null); 256 Settings.Secure.putString(resolver, Settings.Secure.THROTTLE_VALUE_KBITSPS, null) [all...] |
/frameworks/base/services/java/com/android/server/ |
RecognitionManagerService.java | 119 String curRecognizer = Settings.Secure.getString( 121 Settings.Secure.VOICE_RECOGNITION_SERVICE); 129 Settings.Secure.putString(mContext.getContentResolver(), 130 Settings.Secure.VOICE_RECOGNITION_SERVICE,
|
SamplingProfilerService.java | 93 Settings.Secure.getUriFor(Settings.Secure.SAMPLING_PROFILER_MS), 114 Integer samplingProfilerMs = Settings.Secure.getInt( 115 mContentResolver, Settings.Secure.SAMPLING_PROFILER_MS, 0); 116 // setting this secure property will start or stop sampling profiler,
|
/frameworks/base/telephony/java/com/android/internal/telephony/ |
SmsUsageMonitor.java | 76 mMaxAllowed = Settings.Secure.getInt(resolver, 77 Settings.Secure.SMS_OUTGOING_CHECK_MAX_COUNT, 80 mCheckPeriod = Settings.Secure.getInt(resolver, 81 Settings.Secure.SMS_OUTGOING_CHECK_INTERVAL_MS,
|
/packages/apps/Settings/src/com/android/settings/wifi/ |
AdvancedWifiSettings.java | 28 import android.provider.Settings.Secure; 72 notifyOpenNetworks.setChecked(Secure.getInt(getContentResolver(), 73 Secure.WIFI_NETWORKS_AVAILABLE_NOTIFICATION_ON, 0) == 1); 82 poorNetworkDetection.setChecked(Secure.getInt(getContentResolver(), 83 Secure.WIFI_WATCHDOG_POOR_NETWORK_TEST_ENABLED, 1) == 1); 144 Secure.putInt(getContentResolver(), 145 Secure.WIFI_NETWORKS_AVAILABLE_NOTIFICATION_ON, 148 Secure.putInt(getContentResolver(), 149 Secure.WIFI_WATCHDOG_POOR_NETWORK_TEST_ENABLED,
|