HomeSort by relevance Sort by last modified time
    Searched refs:Secure (Results 1 - 25 of 88) sorted by null

1 2 3 4

  /cts/tests/tests/provider/src/android/provider/cts/
Settings_SecureTest.java 28 import android.provider.Settings.Secure;
32 @TestTargetClass(android.provider.Settings.Secure.class)
87 @BrokenTest("Cannot access secure settings table")
90 * first query the exist settings in Secure table, and then insert four rows:
96 Cursor c = cr.query(Secure.CONTENT_URI, null, null, null, null);
103 assertTrue(Secure.putInt(cr, "IntField", 10));
104 assertTrue(Secure.putLong(cr, "LongField", 20));
105 assertTrue(Secure.putFloat(cr, "FloatField", 30));
106 assertTrue(Secure.putString(cr, "StringField", "cts"));
108 c = cr.query(Secure.CONTENT_URI, null, null, null, null)
    [all...]
SettingsTest.java 170 @BrokenTest("Cannot access secure settings table")
173 Settings.Secure._ID, Settings.Secure.NAME, Settings.Secure.VALUE
181 IContentProvider provider = cr.acquireProvider(Settings.Secure.CONTENT_URI);
185 value.put(Settings.Secure.NAME, insertName);
186 value.put(Settings.Secure.VALUE, insertValue);
188 provider.insert(Settings.Secure.CONTENT_URI, value);
192 cursor = provider.query(Settings.Secure.CONTENT_URI, SECURE_PROJECTION,
193 Settings.Secure.NAME + "=\"" + insertName + "\"", null, null)
    [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,
  /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/Settings/src/com/android/settings/
DevelopmentSettings.java 66 mEnableAdb.setChecked(Settings.Secure.getInt(getContentResolver(),
67 Settings.Secure.ADB_ENABLED, 0) != 0);
70 mAllowMockLocation.setChecked(Settings.Secure.getInt(getContentResolver(),
71 Settings.Secure.ALLOW_MOCK_LOCATION, 0) != 0);
94 Settings.Secure.putInt(getContentResolver(), Settings.Secure.ADB_ENABLED, 0);
101 Settings.Secure.putInt(getContentResolver(), Settings.Secure.ALLOW_MOCK_LOCATION,
117 Settings.Secure.putInt(getContentResolver(), Settings.Secure.ADB_ENABLED, 1)
    [all...]
ApplicationSettings.java 65 Settings.Secure.SET_INSTALL_LOCATION, 0) != 0);
89 Settings.Secure.DEFAULT_INSTALL_LOCATION, APP_INSTALL_DEVICE);
92 Settings.Secure.DEFAULT_INSTALL_LOCATION, APP_INSTALL_SDCARD);
95 Settings.Secure.DEFAULT_INSTALL_LOCATION, APP_INSTALL_AUTO);
99 Settings.Secure.DEFAULT_INSTALL_LOCATION, APP_INSTALL_AUTO);
135 Settings.Secure.putInt(getContentResolver(), Settings.Secure.INSTALL_NON_MARKET_APPS,
140 return Settings.Secure.getInt(getContentResolver(),
141 Settings.Secure.INSTALL_NON_MARKET_APPS, 0) > 0;
146 Settings.Secure.DEFAULT_INSTALL_LOCATION, APP_INSTALL_AUTO)
    [all...]
AccessibilitySettings.java 99 String settingValue = Settings.Secure.getString(getContentResolver(),
100 Settings.Secure.ENABLED_ACCESSIBILITY_SERVICES);
118 int serviceState = Settings.Secure.getInt(getContentResolver(),
119 Settings.Secure.ACCESSIBILITY_ENABLED, 0);
131 Settings.Secure.putInt(getContentResolver(),
132 Settings.Secure.ACCESSIBILITY_ENABLED, 0);
141 int incallPowerBehavior = Settings.Secure.getInt(getContentResolver(),
142 Settings.Secure.INCALL_POWER_BUTTON_BEHAVIOR,
143 Settings.Secure.INCALL_POWER_BUTTON_BEHAVIOR_DEFAULT);
148 (incallPowerBehavior == Settings.Secure.INCALL_POWER_BUTTON_BEHAVIOR_HANGUP)
    [all...]
TextToSpeechSettings.java 19 import static android.provider.Settings.Secure.TTS_USE_DEFAULTS;
20 import static android.provider.Settings.Secure.TTS_DEFAULT_RATE;
21 import static android.provider.Settings.Secure.TTS_DEFAULT_LANG;
22 import static android.provider.Settings.Secure.TTS_DEFAULT_COUNTRY;
23 import static android.provider.Settings.Secure.TTS_DEFAULT_VARIANT;
24 import static android.provider.Settings.Secure.TTS_DEFAULT_SYNTH;
25 import static android.provider.Settings.Secure.TTS_ENABLED_PLUGINS;
241 useDefault = Settings.Secure.getInt(resolver, TTS_USE_DEFAULTS);
245 Settings.Secure.putInt(resolver, TTS_USE_DEFAULTS, useDefault);
254 String engine = Settings.Secure.getString(resolver, TTS_DEFAULT_SYNTH)
    [all...]
LanguageSettings.java 97 mLastInputMethodId = Settings.Secure.getString(getContentResolver(),
98 Settings.Secure.DEFAULT_INPUT_METHOD);
146 String enabledStr = Settings.Secure.getString(getContentResolver(),
147 Settings.Secure.ENABLED_INPUT_METHODS);
220 Settings.Secure.putString(getContentResolver(),
221 Settings.Secure.ENABLED_INPUT_METHODS, builder.toString());
222 Settings.Secure.putString(getContentResolver(),
223 Settings.Secure.DISABLED_SYSTEM_INPUT_METHODS, disabledSysImes.toString());
224 Settings.Secure.putString(getContentResolver(),
225 Settings.Secure.DEFAULT_INPUT_METHOD
    [all...]
  /packages/apps/Phone/src/com/android/phone/
CdmaRoamingListPreference.java 26 import android.provider.Settings.Secure;
72 Secure.getInt(mPhone.getContext().getContentResolver(),
73 Secure.CDMA_ROAMING_MODE, Phone.CDMA_RM_HOME);
84 //Set the Settings.Secure network mode
85 Secure.putInt(mPhone.getContext().getContentResolver(),
86 Secure.CDMA_ROAMING_MODE,
121 int settingsRoamingMode = Secure.getInt(
123 Secure.CDMA_ROAMING_MODE, Phone.CDMA_RM_HOME);
130 //changes the Settings.Secure accordingly to statusCdmaRoamingMode
131 Secure.putInt
    [all...]
Settings.java 125 int settingsNetworkMode = android.provider.Settings.Secure.getInt(mPhone.getContext().
126 getContentResolver(), android.provider.Settings.Secure.PREFERRED_NETWORK_MODE,
192 int settingsNetworkMode = android.provider.Settings.Secure.getInt(mPhone.getContext().
193 getContentResolver(),android.provider.Settings.Secure.PREFERRED_NETWORK_MODE,
265 int settingsNetworkMode = android.provider.Settings.Secure.getInt(
267 android.provider.Settings.Secure.PREFERRED_NETWORK_MODE, preferredNetworkMode);
300 android.provider.Settings.Secure.putInt(mPhone.getContext().getContentResolver(),
301 android.provider.Settings.Secure.PREFERRED_NETWORK_MODE,
342 int settingsNetworkMode = android.provider.Settings.Secure.getInt(
344 android.provider.Settings.Secure.PREFERRED_NETWORK_MODE
    [all...]
  /packages/apps/Provision/src/com/android/provision/
DefaultActivity.java 35 Settings.Secure.putInt(getContentResolver(), Settings.Secure.DEVICE_PROVISIONED, 1);
  /frameworks/base/packages/SettingsProvider/src/com/android/providers/settings/
DatabaseHelper.java 36 import android.provider.Settings.Secure;
76 db.execSQL("CREATE TABLE secure (" +
81 db.execSQL("CREATE INDEX secureIndex1 ON secure (name);");
209 // This introduces the new secure settings table.
222 Settings.Secure.ADB_ENABLED,
223 Settings.Secure.ANDROID_ID,
224 Settings.Secure.BLUETOOTH_ON,
225 Settings.Secure.DATA_ROAMING,
226 Settings.Secure.DEVICE_PROVISIONED,
227 Settings.Secure.HTTP_PROXY
    [all...]
  /frameworks/base/core/java/android/provider/
Settings.java 502 * @hide - Private call() method on SettingsProvider to read from 'secure' table.
675 MOVED_TO_SECURE.add(Secure.ADB_ENABLED);
676 MOVED_TO_SECURE.add(Secure.ANDROID_ID);
677 MOVED_TO_SECURE.add(Secure.BLUETOOTH_ON);
678 MOVED_TO_SECURE.add(Secure.DATA_ROAMING);
679 MOVED_TO_SECURE.add(Secure.DEVICE_PROVISIONED);
680 MOVED_TO_SECURE.add(Secure.HTTP_PROXY);
681 MOVED_TO_SECURE.add(Secure.INSTALL_NON_MARKET_APPS);
682 MOVED_TO_SECURE.add(Secure.LOCATION_PROVIDERS_ALLOWED);
683 MOVED_TO_SECURE.add(Secure.LOCK_PATTERN_ENABLED)
    [all...]
  /frameworks/base/core/java/android/net/
Proxy.java 49 String host = Settings.Secure.getString(
51 Settings.Secure.HTTP_PROXY);
73 String host = Settings.Secure.getString(
75 Settings.Secure.HTTP_PROXY);
  /cts/tests/tests/net/src/android/net/cts/
ProxyTest.java 21 import android.provider.Settings.Secure;
73 @BrokenTest("Cannot write secure settings table")
87 Secure.putString(mContext.getContentResolver(), Secure.HTTP_PROXY, host + ":" + port);
  /packages/inputmethods/LatinIME/java/src/com/android/inputmethod/voice/
SettingsUtil.java 26 * Utility for retrieving settings from Settings.Secure.
86 String result = Settings.Secure.getString(cr, key);
99 return Settings.Secure.getInt(cr, key, defaultValue);
111 return Settings.Secure.getFloat(cr, key, defaultValue);
  /frameworks/base/services/java/com/android/server/
WifiWatchdogService.java 136 Settings.Secure.getUriFor(Settings.Secure.WIFI_WATCHDOG_ON), false,
153 * @see android.provider.Settings.Secure#WIFI_WATCHDOG_ON
156 return Settings.Secure.getInt(mContentResolver, Settings.Secure.WIFI_WATCHDOG_ON, 1) == 1;
160 * @see android.provider.Settings.Secure#WIFI_WATCHDOG_AP_COUNT
163 return Settings.Secure.getInt(mContentResolver,
164 Settings.Secure.WIFI_WATCHDOG_AP_COUNT, 2);
168 * @see android.provider.Settings.Secure#WIFI_WATCHDOG_INITIAL_IGNORED_PING_COUNT
171 return Settings.Secure.getInt(mContentResolver
    [all...]
RecognitionManagerService.java 116 String curRecognizer = Settings.Secure.getString(
118 Settings.Secure.VOICE_RECOGNITION_SERVICE);
126 Settings.Secure.putString(mContext.getContentResolver(),
127 Settings.Secure.VOICE_RECOGNITION_SERVICE,
Watchdog.java 109 Settings.Secure.MEMCHECK_SYSTEM_ENABLED,
110 Settings.Secure.MEMCHECK_SYSTEM_SOFT_THRESHOLD,
112 Settings.Secure.MEMCHECK_SYSTEM_HARD_THRESHOLD,
115 Settings.Secure.MEMCHECK_PHONE_ENABLED,
116 Settings.Secure.MEMCHECK_PHONE_SOFT_THRESHOLD,
118 Settings.Secure.MEMCHECK_PHONE_HARD_THRESHOLD,
173 mSoftThreshold = Settings.Secure.getInt(
175 mHardThreshold = Settings.Secure.getInt(
177 mEnabled = Settings.Secure.getInt(
267 ? mReqRebootInterval : Settings.Secure.getInt
    [all...]
ThrottleService.java 188 resolver.registerContentObserver(Settings.Secure.getUriFor(
189 Settings.Secure.THROTTLE_POLLING_SEC), false, this);
190 resolver.registerContentObserver(Settings.Secure.getUriFor(
191 Settings.Secure.THROTTLE_THRESHOLD_BYTES), false, this);
192 resolver.registerContentObserver(Settings.Secure.getUriFor(
193 Settings.Secure.THROTTLE_VALUE_KBITSPS), false, this);
194 resolver.registerContentObserver(Settings.Secure.getUriFor(
195 Settings.Secure.THROTTLE_RESET_DAY), false, this);
196 resolver.registerContentObserver(Settings.Secure.getUriFor(
197 Settings.Secure.THROTTLE_NOTIFICATION_TYPE), false, this)
    [all...]
  /frameworks/base/telephony/java/com/android/internal/telephony/
PhoneFactory.java 98 int networkMode = Settings.Secure.getInt(context.getContentResolver(),
99 Settings.Secure.PREFERRED_NETWORK_MODE, preferredNetworkMode);
103 int cdmaSubscription = Settings.Secure.getInt(context.getContentResolver(),
104 Settings.Secure.PREFERRED_CDMA_SUBSCRIPTION, preferredCdmaSubscription);
  /frameworks/base/core/tests/coretests/src/android/provider/
SettingsProviderTest.java 34 Settings.Secure.putString(r, "test_service", "Value");
35 assertEquals("Value", Settings.Secure.getString(r, "test_service"));
38 Settings.Secure.putString(r, "test_service", "New");
39 assertEquals("New", Settings.Secure.getString(r, "test_service"));
42 assertEquals(1, r.delete(Settings.Secure.getUriFor("test_service"), null, null));
43 assertEquals(null, Settings.Secure.getString(r, "test_service"));
62 assertEquals("content://settings/secure/test_service",
63 Settings.Secure.getUriFor("test_service").toString());
66 Uri tables[] = { Settings.System.CONTENT_URI, Settings.Secure.CONTENT_URI };
122 assertEquals(null, Settings.Secure.getString(r, "test_key"))
    [all...]
  /packages/apps/Mms/src/com/android/mms/transaction/
SimFullReceiver.java 39 if (Settings.Secure.getInt(context.getContentResolver(),
40 Settings.Secure.DEVICE_PROVISIONED, 0) == 1 &&
  /packages/apps/Browser/src/com/android/browser/
SystemAllowGeolocationOrigins.java 35 * Manages the interaction between the secure system setting for default geolocation
61 Uri uri = Settings.Secure.getUriFor(Settings.Secure.ALLOWED_GEOLOCATION_ORIGINS);
159 String value = Settings.Secure.getString(mContext.getContentResolver(),
160 Settings.Secure.ALLOWED_GEOLOCATION_ORIGINS);

Completed in 576 milliseconds

1 2 3 4