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

1 2 3 4 5 6 7 8 91011>>

  /packages/inputmethods/LatinIME/tools/dicttool/compat/com/android/inputmethod/keyboard/
Keyboard.java 21 private final Key KEY = new Key();
22 public final Key getKey(final int i) { return KEY; }
  /system/core/libutils/include/utils/
KeyedVector.h 33 template <typename KEY, typename VALUE>
37 typedef KEY key_type;
67 const VALUE& valueFor(const KEY& key) const;
69 const KEY& keyAt(size_t index) const;
70 ssize_t indexOfKey(const KEY& key) const;
77 VALUE& editValueFor(const KEY& key);
84 ssize_t add(const KEY& key, const VALUE& item)
    [all...]
  /frameworks/base/core/tests/coretests/src/android/os/
SystemPropertiesTest.java 26 private static final String KEY = "com.android.frameworks.coretests";
32 SystemProperties.set(KEY, "");
33 value = SystemProperties.get(KEY, "default");
36 SystemProperties.set(KEY, "AAA");
37 value = SystemProperties.get(KEY, "default");
40 value = SystemProperties.get(KEY);
43 SystemProperties.set(KEY, "");
44 value = SystemProperties.get(KEY, "default");
47 value = SystemProperties.get(KEY);
  /frameworks/av/services/camera/libcameraservice/utils/
ClientManager.h 74 * The ClientDescriptor class is a container for a given key/value pair identifying a shared
81 template<class KEY, class VALUE>
84 ClientDescriptor(const KEY& key, const VALUE& value, int32_t cost,
85 const std::set<KEY>& conflictingKeys, int32_t score, int32_t ownerId, int32_t state);
86 ClientDescriptor(KEY&& key, VALUE&& value, int32_t cost, std::set<KEY>&& conflictingKeys,
92 * Return the key for this descriptor.
94 const KEY& getKey() const
422 const KEY& key = client->getKey(); local
    [all...]
  /frameworks/base/core/tests/systemproperties/src/android/os/
SystemPropertiesTest.java 25 private static final String KEY = "sys.testkey";
40 SystemProperties.set(KEY, Long.toString(i));
41 long ret = SystemProperties.getLong(KEY, -1);
50 SystemProperties.set(KEY, "");
51 value = SystemProperties.get(KEY, "default");
54 SystemProperties.set(KEY, "SA");
55 value = SystemProperties.get(KEY, "default");
58 value = SystemProperties.get(KEY);
61 SystemProperties.set(KEY, "");
62 value = SystemProperties.get(KEY, "default")
    [all...]
  /packages/apps/TV/tests/unit/src/com/android/tv/util/
ImageCacheTest.java 35 private static final String KEY = "same";
36 private static final ScaledBitmapInfo INFO_200 = createScaledBitmapInfo(KEY, ORIG, 200, 200);
37 private static final ScaledBitmapInfo INFO_100 = createScaledBitmapInfo(KEY, ORIG, 100, 100);
38 private static final ScaledBitmapInfo INFO_50 = createScaledBitmapInfo(KEY, ORIG, 50, 50);
39 private static final ScaledBitmapInfo INFO_25 = createScaledBitmapInfo(KEY, ORIG, 25, 25);
54 assertSame("before", INFO_50, mImageCache.get(KEY));
57 assertSame("after", INFO_50, mImageCache.get(KEY));
62 assertSame("before", INFO_50, mImageCache.get(KEY));
65 assertSame("after", INFO_100, mImageCache.get(KEY));
71 assertSame("before", INFO_100, mImageCache.get(KEY));
    [all...]
  /cts/tests/tests/os/src/android/os/cts/
BundleTest.java 47 public static final String KEY = "Bruce Lee";
67 b1.putBoolean(KEY, true);
71 assertTrue(b2.getBoolean(KEY));
91 mBundle.putBoolean(KEY, true);
111 assertFalse(mBundle.containsKey(KEY));
112 mBundle.putBoolean(KEY, true);
113 assertTrue(mBundle.containsKey(KEY));
115 assertTrue(mBundle.containsKey(KEY));
121 assertNull(mBundle.get(KEY));
122 mBundle.putBoolean(KEY, true)
    [all...]
  /frameworks/base/tools/aapt/
AaptUtil.h 30 template <typename KEY, typename VALUE>
31 void appendValue(android::KeyedVector<KEY, android::Vector<VALUE> >& keyedVector,
32 const KEY& key, const VALUE& value);
34 template <typename KEY, typename VALUE>
35 void appendValue(android::KeyedVector<KEY, android::SortedVector<VALUE> >& keyedVector,
36 const KEY& key, const VALUE& value);
42 template <typename KEY, typename VALUE>
43 void appendValue(android::KeyedVector<KEY, android::Vector<VALUE> >& keyedVector
    [all...]
  /cts/tests/sample/src/android/sample/cts/
SampleDeviceTest.java 29 private static final String KEY = "foo";
62 * This inserts the key value pair and assert they can be retrieved. Then it clears the
68 // Save the key value pair to the preferences and assert they were saved.
69 mActivity.savePreference(KEY, VALUE);
70 assertEquals("Preferences were not saved", VALUE, mActivity.getPreference(KEY));
74 assertNull("Preferences were not cleared", mActivity.getPreference(KEY));
SampleJUnit4DeviceTest.java 41 private static final String KEY = "foo";
51 * This inserts the key value pair and assert they can be retrieved. Then it clears the
58 // Save the key value pair to the preferences and assert they were saved.
59 mActivityRule.getActivity().savePreference(KEY, VALUE);
61 mActivityRule.getActivity().getPreference(KEY));
66 mActivityRule.getActivity().getPreference(KEY));
  /external/chromium-trace/catapult/telemetry/third_party/web-page-replay/third_party/dns/rdtypes/ANY/
KEY.py 18 class KEY(dns.rdtypes.keybase.KEYBase):
19 """KEY record"""
  /external/smali/smalidea/src/main/java/org/jf/smalidea/psi/index/
SmaliClassNameIndex.java 40 public static final StubIndexKey<String, SmaliClass> KEY =
49 return KEY;
  /external/guava/guava-tests/test/com/google/common/collect/
ConcurrentHashMultisetTest.java 102 private static final String KEY = "puppies";
120 expect(backingMap.get(KEY)).andReturn(new AtomicInteger(COUNT));
123 assertEquals(COUNT, multiset.count(KEY));
128 expect(backingMap.get(KEY)).andReturn(null);
131 assertEquals(0, multiset.count(KEY));
138 expect(backingMap.get(KEY)).andReturn(new AtomicInteger(INITIAL_COUNT));
140 assertEquals(INITIAL_COUNT, multiset.add(KEY, 0));
147 expect(backingMap.get(KEY)).andReturn(null);
148 expect(backingMap.putIfAbsent(eq(KEY), isA(AtomicInteger.class))).andReturn(null);
151 assertEquals(0, multiset.add(KEY, COUNT))
    [all...]
  /libcore/ojluni/src/main/java/sun/security/x509/
CertificateX509Key.java 48 public static final String IDENT = "x509.info.key";
52 public static final String NAME = "key";
53 public static final String KEY = "value";
56 private PublicKey key; field in class:CertificateX509Key
61 * @param key the X509Key
63 public CertificateX509Key(PublicKey key) {
64 this.key = key;
75 key = X509Key.parse(val);
86 key = X509Key.parse(val)
    [all...]
  /frameworks/base/core/tests/coretests/src/android/net/
ScoredNetworkTest.java 48 private static final NetworkKey KEY
54 ScoredNetwork scoredNetwork = new ScoredNetwork(KEY, null);
65 ScoredNetwork scoredNetwork = new ScoredNetwork(KEY, CURVE);
71 ScoredNetwork scoredNetwork1 = new ScoredNetwork(KEY, CURVE);
73 = new ScoredNetwork(KEY, CURVE, false /* meteredHint */, ATTRIBUTES);
85 = new ScoredNetwork(KEY, CURVE, false /* meteredHint */, attr);
94 new ScoredNetwork(KEY, CURVE, false /* meteredHint */, attr);
100 ScoredNetwork network = new ScoredNetwork(KEY, null /* rssiCurve */);
107 new ScoredNetwork(KEY, null /* rssiCurve */, false /* meteredHint */, ATTRIBUTES);
114 new ScoredNetwork(KEY, CURVE , false /* meteredHint */)
    [all...]
  /cts/tests/tests/preference2/src/android/preference2/cts/
PreferenceDataStoreTest.java 71 private static final String KEY = "TestPrefKey";
85 mPreference.setKey(KEY);
94 // Make sure that the key is not present in SharedPreferences to ensure test correctness.
95 mManager.getSharedPreferences().edit().remove(KEY).commit();
152 verify(mDataStore, atLeastOnce()).getString(eq(KEY), any());
172 verify(mDataStore, atLeast(0)).getString(eq(KEY), nullable(String.class));
173 verify(mDataStore, atLeastOnce()).putString(eq(KEY), anyString());
177 assertNull(mSharedPref.getString(KEY, null));
185 verify(mDataStore, atLeastOnce()).getString(eq(KEY), eq(TEST_STR));
193 verify(mDataStore, atLeastOnce()).getString(eq(KEY), eq(TEST_STR))
    [all...]
  /frameworks/support/v7/preference/tests/src/android/support/v7/preference/tests/
PreferenceDataStoreTest.java 77 private static final String KEY = "TestPrefKey";
92 mPreference.setKey(KEY);
94 // Make sure that the key is not present in SharedPreferences to ensure test
96 mManager.getSharedPreferences().edit().remove(KEY).commit();
157 verify(mDataStore, atLeastOnce()).putString(eq(KEY), anyString());
215 verify(mDataStore, atLeast(0)).getString(eq(KEY), anyString());
216 verify(mDataStore, atLeastOnce()).putString(eq(KEY), anyString());
220 assertNull(mSharedPref.getString(KEY, null));
231 verify(mDataStore, atLeastOnce()).getString(eq(KEY), eq(TEST_STR));
242 verify(mDataStore, atLeastOnce()).getString(eq(KEY), eq(TEST_STR))
    [all...]
PreferencePersistTest.java 50 private static final String KEY = "TestPrefKey";
69 mPreference.setKey(KEY);
74 // Make sure that the key is not present in SharedPreferences to ensure tests
76 mSharedPref.edit().remove(KEY).apply();
77 assertNull(mSharedPref.getString(KEY, null));
98 assertEquals(expected, mSharedPref.getString(KEY, null));
109 assertNull(mSharedPref.getString(KEY, null));
152 assertThat(mSharedPref.getStringSet(KEY, null),
164 assertNull(mSharedPref.getString(KEY, null));
208 assertEquals(expected, mSharedPref.getInt(KEY, -1))
    [all...]
  /packages/apps/LegacyCamera/src/com/android/camera/
RecordLocationPreference.java 30 public static final String KEY = "pref_camera_recordlocation_key";
50 String value = pref.getString(KEY, VALUE_NONE);
  /packages/apps/Settings/tests/robotests/src/com/android/settings/search/
FakeIndexProvider.java 29 public static final String KEY = "TestKey";
42 result.add(KEY);
  /external/selinux/libselinux/src/
selinux_internal.h 130 /* Pthread key macros */
131 #define __selinux_key_create(KEY, DESTRUCTOR) \
132 (pthread_key_create != NULL ? pthread_key_create(KEY, DESTRUCTOR) : -1)
134 #define __selinux_key_delete(KEY) \
137 pthread_key_delete(KEY); \
140 #define __selinux_setspecific(KEY, VALUE) \
143 pthread_setspecific(KEY, VALUE); \
  /prebuilts/go/darwin-x86/src/encoding/pem/
example_test.go 16 -----BEGIN PUBLIC KEY-----
29 -----END PUBLIC KEY-----
33 if block == nil || block.Type != "PUBLIC KEY" {
34 log.Fatal("failed to decode PEM block containing public key")
  /prebuilts/go/linux-x86/src/encoding/pem/
example_test.go 16 -----BEGIN PUBLIC KEY-----
29 -----END PUBLIC KEY-----
33 if block == nil || block.Type != "PUBLIC KEY" {
34 log.Fatal("failed to decode PEM block containing public key")
  /packages/apps/UnifiedEmail/src/com/android/mail/preferences/
SimpleBackupSharedPreference.java 34 private static final String KEY = "key";
37 public SimpleBackupSharedPreference(final String key, final Object value) {
38 mKey = key;
59 json.put(KEY, mKey);
83 return new SimpleBackupSharedPreference(json.getString(KEY), value);
  /device/google/contexthub/util/common/
JSONObject.h 103 template<class KEY>
109 if (!getValue(key, &value)) { \
113 bool getFieldType(KEY key, JSONValue::FieldType *type) const {
119 bool getInt32(KEY key, int32_t *out) const {
124 bool getFloat(KEY key, float *out) const {
129 bool getString(KEY key, AString *out) const
    [all...]

Completed in 2009 milliseconds

1 2 3 4 5 6 7 8 91011>>