/cts/tests/tests/content/src/android/content/cts/ |
D | SharedPreferencesTest.java | 52 SharedPreferences prefs = getPrefs(); in setUp() local 53 prefs.edit().clear().commit(); in setUp() 71 SharedPreferences prefs = getPrefs(); in testCommitCreatesFiles() local 73 prefs.edit().putString("foo", "bar").commit(); in testCommitCreatesFiles() 78 SharedPreferences prefs = getPrefs(); in testDefaults() local 80 assertFalse(prefs.contains(key)); in testDefaults() 81 assertEquals(0, prefs.getAll().size()); in testDefaults() 82 assertTrue(prefs.getAll().isEmpty()); in testDefaults() 83 assertEquals(false, prefs.getBoolean(key, false)); in testDefaults() 84 assertEquals(true, prefs.getBoolean(key, true)); in testDefaults() [all …]
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/admin/ |
D | PolicySerializationTestActivity.java | 108 SharedPreferences prefs = getPreferences(MODE_PRIVATE); in loadPolicy() local 109 if (prefs.getBoolean(LOAD_EXPECTED_POLICY_PREFERENCE, false)) { in loadPolicy() 111 item.loadExpectedValue(prefs); in loadPolicy() 127 SharedPreferences prefs = getPreferences(MODE_PRIVATE); in generateRandomPolicy() local 128 SharedPreferences.Editor editor = prefs.edit(); in generateRandomPolicy() 160 SharedPreferences prefs = getPreferences(MODE_PRIVATE); in handleAddDeviceAdminResult() local 161 SharedPreferences.Editor editor = prefs.edit(); in handleAddDeviceAdminResult() 247 void loadExpectedValue(SharedPreferences prefs); in loadExpectedValue() argument 285 public final void loadExpectedValue(SharedPreferences prefs) { in loadExpectedValue() argument 286 mExpectedValue = getPreferencesValue(prefs); in loadExpectedValue() [all …]
|
/cts/hostsidetests/devicepolicy/app/IntentReceiver/src/com/android/cts/intent/receiver/ |
D | BroadcastIntentReceiver.java | 33 SharedPreferences prefs = c.getSharedPreferences(PREFERENCES_NAME, Context.MODE_PRIVATE); in onReceive() local 34 SharedPreferences.Editor editor = prefs.edit(); in onReceive()
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/backup/ |
D | BackupTestActivity.java | 130 SharedPreferences prefs = getSharedPreferences(TEST_PREFS_1, MODE_PRIVATE); in loadPreferenceGroup1() local 132 int intValue = prefs.getInt(INT_PREF, 0); in loadPreferenceGroup1() 135 boolean boolValue = prefs.getBoolean(BOOL_PREF, false); in loadPreferenceGroup1() 140 SharedPreferences prefs = getSharedPreferences(TEST_PREFS_2, MODE_PRIVATE); in loadPreferenceGroup2() local 142 float floatValue = prefs.getFloat(FLOAT_PREF, 0.0f); in loadPreferenceGroup2() 145 long longValue = prefs.getLong(LONG_PREF, 0L); in loadPreferenceGroup2() 148 String stringValue = prefs.getString(STRING_PREF, null); in loadPreferenceGroup2() 197 SharedPreferences prefs = getSharedPreferences(TEST_PREFS_1, MODE_PRIVATE); in generatePreferenceGroup1() local 198 SharedPreferences.Editor editor = prefs.edit(); in generatePreferenceGroup1() 205 SharedPreferences prefs = getSharedPreferences(TEST_PREFS_2, MODE_PRIVATE); in generatePreferenceGroup2() local [all …]
|
/cts/hostsidetests/appsecurity/test-apps/AppWithData/src/com/android/cts/appwithdata/ |
D | CreatePrivateDataTest.java | 113 SharedPreferences prefs = mContext.getSharedPreferences(PREFERENCES_FILE_NAME, 0); in writeToPreferences() local 114 SharedPreferences.Editor editor = prefs.edit(); in writeToPreferences() 117 assertEquals(PREFERENCE_VALUE, prefs.getString(PREFERENCE_KEY, null)); in writeToPreferences() 154 SharedPreferences prefs = mContext.getSharedPreferences(PREFERENCES_FILE_NAME, 0); in assertPreferencesDataDoesNotExist() local 155 assertNull(prefs.getString(PREFERENCE_KEY, null)); in assertPreferencesDataDoesNotExist()
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/camera/fov/ |
D | DetermineFovActivity.java | 161 SharedPreferences prefs = in getMarkerDistance() local 163 return Float.parseFloat(prefs.getString( in getMarkerDistance() 170 SharedPreferences prefs = in getTargetDistance() local 172 return Float.parseFloat(prefs.getString( in getTargetDistance()
|
/cts/tools/signature-tools/ |
D | sig-create | 86 java.util.prefs \
|
D | sig-check | 89 java.util.prefs \
|
/cts/tools/dex-tools/dex/ |
D | classes0.out.dex | 57459 @dalvik.annotation.EnclosingClass (value =Ljava/util/prefs/AbstractPreferences; ) 57460 final class java.util.prefs.AbstractPreferences$1 extends java.lang.Thread 57471 @dalvik.annotation.EnclosingClass (value =Ljava/util/prefs/AbstractPreferences; ) 57473 class java.util.prefs.AbstractPreferences$EventDispatcher extends java.lang.Thread 57480 @dalvik.annotation.Signature (value =(Ljava/util/prefs/NodeChangeEvent;Ljava/util/List<Ljava/util/E… 57482 java.util.prefs.NodeChangeEvent 57484 @dalvik.annotation.Signature (value =(Ljava/util/prefs/NodeChangeEvent;Ljava/util/List<Ljava/util/E… 57486 java.util.prefs.NodeChangeEvent 57488 @dalvik.annotation.Signature (value =(Ljava/util/prefs/PreferenceChangeEvent;Ljava/util/List<Ljava/… 57490 java.util.prefs.PreferenceChangeEvent [all …]
|