/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 | 35 template <typename KEY, typename VALUE> 39 typedef KEY key_type; 69 const VALUE& valueFor(const KEY& key) const; 71 const KEY& keyAt(size_t index) const; 72 ssize_t indexOfKey(const KEY& key) const; 79 VALUE& editValueFor(const KEY& key); 86 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...] |
/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/shadows/ |
ShadowContentValuesTest.java | 13 private static final String KEY = "key"; 58 contentValues.put(KEY, 0); 59 assertThat(contentValues.getAsBoolean(KEY)).isFalse(); 64 contentValues.put(KEY, 1); 65 assertThat(contentValues.getAsBoolean(KEY)).isTrue(); 70 contentValues.put(KEY, false); 71 assertThat(contentValues.getAsBoolean(KEY)).isFalse(); 76 contentValues.put(KEY, true); 77 assertThat(contentValues.getAsBoolean(KEY)).isTrue() [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));
|
/packages/apps/TV/tests/unit/src/com/android/tv/util/images/ |
ImageCacheTest.java | 36 private static final String KEY = "same"; 37 private static final ScaledBitmapInfo INFO_200 = createScaledBitmapInfo(KEY, ORIG, 200, 200); 38 private static final ScaledBitmapInfo INFO_100 = createScaledBitmapInfo(KEY, ORIG, 100, 100); 39 private static final ScaledBitmapInfo INFO_50 = createScaledBitmapInfo(KEY, ORIG, 50, 50); 40 private static final ScaledBitmapInfo INFO_25 = createScaledBitmapInfo(KEY, ORIG, 25, 25); 55 assertWithMessage("before").that(mImageCache.get(KEY)).isSameAs(INFO_50); 58 assertWithMessage("after").that(mImageCache.get(KEY)).isSameAs(INFO_50); 64 assertWithMessage("before").that(mImageCache.get(KEY)).isSameAs(INFO_50); 67 assertWithMessage("after").that(mImageCache.get(KEY)).isSameAs(INFO_100); 74 assertWithMessage("before").that(mImageCache.get(KEY)).isSameAs(INFO_100) [all...] |
/cts/tests/tests/os/src/android/os/cts/ |
BundleTest.java | 50 public static final String KEY = "Bruce Lee"; 70 b1.putBoolean(KEY, true); 74 assertTrue(b2.getBoolean(KEY)); 94 mBundle.putBoolean(KEY, true); 114 assertFalse(mBundle.containsKey(KEY)); 115 mBundle.putBoolean(KEY, true); 116 assertTrue(mBundle.containsKey(KEY)); 118 assertTrue(mBundle.containsKey(KEY)); 124 assertNull(mBundle.get(KEY)); 125 mBundle.putBoolean(KEY, true) 910 final String key = "key-" + i; local [all...] |
/packages/apps/Settings/tests/robotests/src/com/android/settings/slices/ |
FakeContextOnlyPreferenceController.java | 9 public static final String KEY = "fakeController2"; 12 super(context, KEY);
|
/frameworks/base/core/tests/systemproperties/src/android/os/ |
SystemPropertiesTest.java | 28 private static final String KEY = "sys.testkey"; 43 SystemProperties.set(KEY, Long.toString(i)); 44 long ret = SystemProperties.getLong(KEY, -1); 53 SystemProperties.set(KEY, ""); 54 value = SystemProperties.get(KEY, "default"); 58 SystemProperties.set(KEY, null); 59 value = SystemProperties.get(KEY, "default"); 62 SystemProperties.set(KEY, "SA"); 63 value = SystemProperties.get(KEY, "default"); 66 value = SystemProperties.get(KEY); [all...] |
/external/python/cpython3/Modules/ |
hashtable.h | 29 /* key (key_size bytes) and then data (data_size bytes) follows */ 41 /* Get a key value from pkey: use memcpy() rather than a pointer dereference 49 #define _Py_HASHTABLE_ENTRY_READ_KEY(TABLE, ENTRY, KEY) \ 51 assert(sizeof(KEY) == (TABLE)->key_size); \ 52 memcpy(&(KEY), _Py_HASHTABLE_ENTRY_PKEY(ENTRY), sizeof(KEY)); \ 150 /* Add a new entry to the hash. The key must not be present in the hash table. 162 #define _Py_HASHTABLE_SET(TABLE, KEY, DATA) \ 163 _Py_hashtable_set(TABLE, sizeof(KEY), &(KEY), sizeof(DATA), &(DATA) [all...] |
/packages/apps/Settings/src/com/android/settings/notification/ |
ZenModeBlockedEffectsPreferenceController.java | 28 protected static final String KEY = "zen_mode_block_effects_settings"; 32 super(context, KEY, lifecycle); 38 return KEY;
|
/frameworks/base/core/tests/coretests/src/android/net/ |
ScoredNetworkTest.java | 48 private static final NetworkKey KEY 54 new ScoredNetwork(KEY, CURVE, false /* meteredHint */, null /* attributes */); 56 new ScoredNetwork(KEY, CURVE, false /* meteredHint */, null /* attributes */); 63 new ScoredNetwork(KEY, CURVE, false /* meteredHint */, ATTRIBUTES); 65 new ScoredNetwork(KEY, CURVE, false /* meteredHint */, null /* attributes */); 72 new ScoredNetwork(KEY, CURVE, false /* meteredHint */, ATTRIBUTES); 76 new ScoredNetwork(KEY, CURVE, false /* meteredHint */, attr); 83 new ScoredNetwork(KEY, CURVE, false /* meteredHint */, ATTRIBUTES); 87 new ScoredNetwork(KEY, CURVE, false /* meteredHint */, attr); 94 new ScoredNetwork(KEY, CURVE, false /* meteredHint */, ATTRIBUTES) [all...] |
/packages/apps/Settings/src/com/android/settings/applications/appinfo/ |
DefaultEmergencyShortcutPreferenceController.java | 24 private static final String KEY = "default_emergency_app"; 27 super(context, KEY, packageName);
|
DefaultPhoneShortcutPreferenceController.java | 24 private static final String KEY = "default_phone_app"; 27 super(context, KEY, packageName);
|
DefaultSmsShortcutPreferenceController.java | 24 private static final String KEY = "default_sms_app"; 27 super(context, KEY, packageName);
|
DefaultBrowserShortcutPreferenceController.java | 25 private static final String KEY = "default_browser"; 28 super(context, KEY, packageName);
|
DefaultHomeShortcutPreferenceController.java | 25 private static final String KEY = "default_home"; 28 super(context, KEY, packageName);
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/development/featureflags/ |
FeatureFlagPreferenceTest.java | 33 private static final String KEY = "feature_key"; 41 mPreference = new FeatureFlagPreference(mContext, KEY); 46 assertThat(mPreference.getTitle()).isEqualTo(KEY);
|
/external/smali/smalidea/src/main/java/org/jf/smalidea/psi/index/ |
SmaliClassNameIndex.java | 40 public static final StubIndexKey<String, SmaliClass> KEY = 49 return KEY;
|
/frameworks/support/work/workmanager/src/test/java/androidx/work/ |
ArrayCreatingInputMergerTest.java | 30 private static final String KEY = "key"; 44 mDataWithIntArray = new Data.Builder().putIntArray(KEY, VALUE_INT_ARRAY).build(); 45 mDataWithInt = new Data.Builder().putInt(KEY, VALUE_INT).build(); 46 mDataWithLong = new Data.Builder().putLong(KEY, VALUE_LONG).build(); 53 int[] outputArray = output.getIntArray(KEY); 62 int[] outputArray = output.getIntArray(KEY); 72 int[] outputArray = output.getIntArray(KEY); 85 int[] outputArray = output.getIntArray(KEY);
|
/packages/apps/Settings/src/com/android/settings/applications/defaultapps/ |
DefaultWorkBrowserPreferenceController.java | 27 public static final String KEY = "work_default_browser"; 40 return KEY;
|
DefaultWorkPhonePreferenceController.java | 26 public static final String KEY = "work_default_phone_app"; 47 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...] |