Searched refs:key (Results 151 - 175 of 865) sorted by relevance

1234567891011>>

/frameworks/base/packages/SystemUI/src/com/android/systemui/tuner/
H A DPreviewNavInflater.java44 public void onTuningChanged(String key, String newValue) { argument
45 if (NAV_BAR_VIEWS.equals(key)) {
49 super.onTuningChanged(key, newValue);
52 super.onTuningChanged(key, newValue);
/frameworks/minikin/tests/
H A DHbFontCacheTest.cpp72 hb_user_data_key_t key; local
74 hb_font_set_user_data(font, &key, data, NULL, false);
75 ASSERT_EQ(data, hb_font_get_user_data(font, &key));
83 EXPECT_EQ(nullptr, hb_font_get_user_data(font, &key));
/frameworks/native/opengl/tools/glgen/
H A Dconvert_to_java.py30 for define in sorted(allDefines, key=lambda define: define[1]):
/frameworks/support/compat/gingerbread/android/support/v4/app/
H A DBundleCompatGingerbread.java35 public static IBinder getBinder(Bundle bundle, String key) { argument
48 return (IBinder) sGetIBinderMethod.invoke(bundle, key);
58 public static void putBinder(Bundle bundle, String key, IBinder binder) { argument
72 sPutIBinderMethod.invoke(bundle, key, binder);
/frameworks/av/services/audiopolicy/engineconfigurable/src/
H A DCollection.h64 * It also set the key as the unique identifier of the policy element.
68 * @param[in] key to be used to index this new policy element.
72 status_t add(const std::string &name, Key key) argument
74 if ((*this).find(key) != (*this).end()) {
78 (*this)[key] = new T(name);
80 return (*this)[key]->setIdentifier(key);
84 * Get a policy element from the collection by its key. Policy elements are streams, strategies,
88 * @param[in] key of the policy element to find.
92 T *get(Key key) cons
[all...]
/frameworks/base/media/java/android/media/audiofx/
H A DBassBoost.java221 * Settings class constructor from a key=value; pairs formatted string. The string is
231 String key = st.nextToken();
232 if (!key.equals("BassBoost")) {
234 "invalid settings for BassBoost: " + key);
237 key = st.nextToken();
238 if (!key.equals("strength")) {
239 throw new IllegalArgumentException("invalid key name: " + key);
243 throw new IllegalArgumentException("invalid value for key: " + key);
[all...]
H A DLoudnessEnhancer.java222 * Settings class constructor from a key=value; pairs formatted string. The string is
232 String key = st.nextToken();
233 if (!key.equals("LoudnessEnhancer")) {
235 "invalid settings for LoudnessEnhancer: " + key);
238 key = st.nextToken();
239 if (!key.equals("targetGainmB")) {
240 throw new IllegalArgumentException("invalid key name: " + key);
244 throw new IllegalArgumentException("invalid value for key: " + key);
[all...]
H A DPresetReverb.java237 * Settings class constructor from a key=value; pairs formatted string. The string is
247 String key = st.nextToken();
248 if (!key.equals("PresetReverb")) {
250 "invalid settings for PresetReverb: " + key);
253 key = st.nextToken();
254 if (!key.equals("preset")) {
255 throw new IllegalArgumentException("invalid key name: " + key);
259 throw new IllegalArgumentException("invalid value for key: " + key);
[all...]
/frameworks/support/compat/java/android/support/v4/util/
H A DSimpleArrayMap.java61 int indexOf(Object key, int hash) { argument
71 // If the hash code wasn't found, then we have no entry for this key.
76 // If the key at the returned index matches, that's what we want.
77 if (key.equals(mArray[index<<1])) {
81 // Search for a matching key after the index.
84 if (key.equals(mArray[end << 1])) return end;
87 // Search for a matching key before the index.
89 if (key.equals(mArray[i << 1])) return i;
93 // new entry for this key should go. We use the end of the
109 // If the hash code wasn't found, then we have no entry for this key
272 containsKey(Object key) argument
282 indexOfKey(Object key) argument
322 get(Object key) argument
373 put(K key, V value) argument
450 remove(Object key) argument
[all...]
/frameworks/base/core/java/android/content/res/
H A DThemedResourceCache.java42 * @param key a key that uniquely identifies the entry
47 public void put(long key, @Nullable Theme theme, @NonNull T entry) { argument
48 put(key, theme, entry, true);
54 * @param key a key that uniquely identifies the entry
61 public void put(long key, @Nullable Theme theme, @NonNull T entry, boolean usesTheme) { argument
74 entries.put(key, new WeakReference<>(entry));
82 * @param key a key tha
87 get(long key, @Nullable Theme theme) argument
[all...]
/frameworks/compile/mclinker/lib/Target/Mips/
H A DMipsGOT.cpp384 GotEntryKey key; local
385 key.m_GOTPage = m_CurrentGOTPart;
386 key.m_pInfo = pInfo;
387 key.m_Addend = 0;
388 m_GotGlobalEntriesMap[key] = pEntry;
392 GotEntryKey key; local
393 key.m_GOTPage = m_CurrentGOTPart;
394 key.m_pInfo = pInfo;
395 key.m_Addend = 0;
396 GotEntryMapType::iterator it = m_GotGlobalEntriesMap.find(key);
409 GotEntryKey key; local
415 GotEntryKey key; local
430 GotEntryKey key; local
438 GotEntryKey key; local
451 GotEntryKey key; local
460 GotEntryKey key; local
[all...]
/frameworks/base/packages/EasterEgg/src/com/android/egg/neko/
H A DPrefState.java56 for (String key : map.keySet()) {
57 if (key.startsWith(CAT_KEY_PREFIX)) {
58 long seed = Long.parseLong(key.substring(CAT_KEY_PREFIX.length()));
60 cat.setName(String.valueOf(map.get(key)));
85 public void onSharedPreferenceChanged(SharedPreferences sharedPreferences, String key) { argument
/frameworks/base/wifi/java/android/net/wifi/
H A DWifiScanner.java683 * key for this request, and must also be specified to cancel the request.
689 int key = addListener(listener);
690 if (key == INVALID_KEY) return;
692 mAsyncChannel.sendMessage(CMD_REGISTER_SCAN_LISTENER, 0, key);
703 int key = removeListener(listener);
704 if (key == INVALID_KEY) return;
706 mAsyncChannel.sendMessage(CMD_DEREGISTER_SCAN_LISTENER, 0, key);
713 * key for this scan, and must also be specified to cancel the scan. Multiple
725 * key for this scan, and must also be specified to cancel the scan. Multiple
731 int key
807 startPnoScan(ScanSettings scanSettings, PnoSettings pnoSettings, int key) argument
1274 getListener(int key) argument
1294 removeListener(int key) argument
[all...]
/frameworks/av/media/libstagefright/foundation/
H A DParsedMessage.cpp48 AString key = name; local
49 key.tolower();
51 ssize_t index = mDict.indexOfKey(key);
141 AString key(line, 0, colonPos);
142 key.trim();
143 key.tolower();
147 lastDictIndex = mDict.add(key, line);
232 const AString &key = mDict.keyAt(i); local
235 if (key == AString("_")) {
239 line.append(key);
252 GetAttribute( const char *s, const char *key, AString *value) argument
282 GetInt32Attribute( const char *s, const char *key, int32_t *value) argument
[all...]
/frameworks/base/core/java/android/util/
H A DArrayMap.java26 * ArrayMap is a generic key->value mapping data structure that is
29 * codes for each item, and an Object array of the key/value pairs. This allows it to
89 int indexOf(Object key, int hash) { argument
99 // If the hash code wasn't found, then we have no entry for this key.
104 // If the key at the returned index matches, that's what we want.
105 if (key.equals(mArray[index<<1])) {
109 // Search for a matching key after the index.
112 if (key.equals(mArray[end << 1])) return end;
115 // Search for a matching key before the index.
117 if (key
331 containsKey(Object key) argument
341 indexOfKey(Object key) argument
384 get(Object key) argument
437 put(K key, V value) argument
493 append(K key, V value) argument
581 remove(Object key) argument
[all...]
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/
H A DNotificationData.java50 public String key; field in class:NotificationData.Entry
66 this.key = n.getKey();
196 mRankingMap.getRanking(a.key, mRankingA);
197 mRankingMap.getRanking(b.key, mRankingB);
207 final boolean aMedia = a.key.equals(mediaNotification)
209 final boolean bMedia = b.key.equals(mediaNotification)
255 public Entry get(String key) { argument
256 return mEntries.get(key);
267 public Entry remove(String key, RankingMap ranking) { argument
270 removed = mEntries.remove(key);
282 isAmbient(String key) argument
290 getVisibilityOverride(String key) argument
298 shouldSuppressScreenOff(String key) argument
307 shouldSuppressScreenOn(String key) argument
316 getImportance(String key) argument
324 getOverrideGroupKey(String key) argument
468 shouldHideNotifications(String key) argument
[all...]
H A DRemoteInputController.java85 * @param key the key of the entry that's spinning.
88 public void addSpinning(String key, Object token) { argument
89 Preconditions.checkNotNull(key);
92 mSpinning.put(key, token);
98 * @param key the key of the entry for which a remote input should be removed.
103 public void removeSpinning(String key, Object token) { argument
104 Preconditions.checkNotNull(key);
106 if (token == null || mSpinning.get(key)
111 isSpinning(String key) argument
[all...]
/frameworks/ml/bordeaux/service/src/android/bordeaux/services/
H A DBordeauxSessionStorage.java35 // unique key for the session
36 public static final String COLUMN_KEY = "key";
49 " TEXT primary key, " + COLUMN_CLASS + " TEXT, " +
84 private ContentValues createSessionEntry(String key, Class learner, byte[] model) { argument
86 entry.put(COLUMN_KEY, key);
93 boolean saveSession(String key, Class learner, byte[] model) { argument
94 ContentValues content = createSessionEntry(key, learner, model);
115 BordeauxSessionManager.Session getSession(String key) { argument
118 COLUMN_KEY + "=\"" + key + "\"", null, null, null, null, null);
125 throw new RuntimeException("Unexpected duplication in session table for key
[all...]
/frameworks/rs/
H A DrsMap.h55 ValueType& operator[](const KeyType& key) { argument
56 const size_t index = hash(key) & MAP_NUM_BUCKET_MASK;
61 if (node->entry.first == key) {
69 node->entry.first = key;
143 iterator find(const KeyType& key) const {
144 const size_t index = hash(key) & MAP_NUM_BUCKET_MASK;
148 if (node->entry.first == key) {
158 size_t hash(const KeyType& key) const { return ((size_t)key) >> 4; }
/frameworks/support/v17/leanback/src/android/support/v17/leanback/widget/
H A DViewsStateBundle.java91 String key = i.next();
92 mChildStates.put(key, savedBundle.getSparseParcelableArray(key));
154 String key = getSaveStatesKey(id);
157 SparseArray<Parcelable> container = mChildStates.remove(key);
172 String key = getSaveStatesKey(id);
175 mChildStates.put(key, container);
189 String key = getSaveStatesKey(id);
195 bundle.putSparseParcelableArray(key, container);
/frameworks/base/tools/aapt2/link/
H A DAutoVersioner_test.cpp87 AAPT_ASSERT_TRUE(style->entries.front().key.name);
88 EXPECT_EQ(style->entries.front().key.name.value(),
95 AAPT_ASSERT_TRUE(style->entries[0].key.name);
96 EXPECT_EQ(style->entries[0].key.name.value(),
98 AAPT_ASSERT_TRUE(style->entries[1].key.name);
99 EXPECT_EQ(style->entries[1].key.name.value(),
106 AAPT_ASSERT_TRUE(style->entries[0].key.name);
107 EXPECT_EQ(style->entries[0].key.name.value(),
109 AAPT_ASSERT_TRUE(style->entries[1].key.name);
110 EXPECT_EQ(style->entries[1].key
[all...]
/frameworks/base/core/java/android/hardware/camera2/impl/
H A DCameraMetadataNative.java132 * specific key might look like {@code "com.google.nexus.data.private"}.</p>
134 * @return String representation of the key name
149 * Compare this key against other native keys, request keys, result keys, and
154 * <p>Note that the equality against non-native keys is one-way. A native key may be equal
155 * to a result key; but that same result key will not be equal to a native key.</p>
187 * Get the tag corresponding to this key. This enables insertion into the
204 * Get the raw class backing the type {@code T} for this key.
215 * Get the type reference backing the type {@code T} for this key
324 get(CameraCharacteristics.Key<T> key) argument
331 get(CaptureResult.Key<T> key) argument
338 get(CaptureRequest.Key<T> key) argument
348 get(Key<T> key) argument
395 set(Key<T> key, T value) argument
405 set(CaptureRequest.Key<T> key, T value) argument
409 set(CaptureResult.Key<T> key, T value) argument
413 set(CameraCharacteristics.Key<T> key, T value) argument
453 getBase(CameraCharacteristics.Key<T> key) argument
457 getBase(CaptureResult.Key<T> key) argument
461 getBase(CaptureRequest.Key<T> key) argument
465 getBase(Key<T> key) argument
872 getMaxRegions(Key<T> key) argument
895 getMaxNumOutputs(Key<T> key) argument
935 setBase(CameraCharacteristics.Key<T> key, T value) argument
939 setBase(CaptureResult.Key<T> key, T value) argument
943 setBase(CaptureRequest.Key<T> key, T value) argument
947 setBase(Key<T> key, T value) argument
1150 getTag(String key) argument
1228 getMarshalerForKey(Key<T> key) argument
[all...]
/frameworks/base/core/java/android/bluetooth/le/
H A DBluetoothLeUtils.java69 Object key = entry.getKey();
70 buffer.append(key).append("=").append(Arrays.toString(map.get(key)));
120 for (T key : keys) {
121 if (!Objects.deepEquals(map.get(key), otherMap.get(key))) {
/frameworks/base/core/java/com/android/internal/util/
H A DIndentingPrintWriter.java70 public void printPair(String key, Object value) { argument
71 print(key + "=" + String.valueOf(value) + " ");
74 public void printPair(String key, Object[] value) { argument
75 print(key + "=" + Arrays.toString(value) + " ");
78 public void printHexPair(String key, int value) { argument
79 print(key + "=0x" + Integer.toHexString(value) + " ");
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/helpers/
H A DCameraErrorCollector.java633 * Check if the key value is not null and return the value.
635 * @param characteristics The {@link CameraCharacteristics} to get the key from.
636 * @param key The {@link CameraCharacteristics} key to be checked.
638 * @return The value of the key.
641 CameraCharacteristics.Key<T> key) {
643 T value = characteristics.get(key);
645 addMessage("Key " + key.getName() + " shouldn't be null");
652 * Check if the key value is not null and return the value.
654 * @param request The {@link CaptureRequest} to get the key fro
640 expectKeyValueNotNull(CameraCharacteristics characteristics, CameraCharacteristics.Key<T> key) argument
659 expectKeyValueNotNull(CaptureRequest request, CaptureRequest.Key<T> key) argument
677 expectKeyValueNotNull(Builder request, CaptureRequest.Key<T> key) argument
694 expectKeyValueNotNull(CaptureResult result, CaptureResult.Key<T> key) argument
706 expectKeyValueNotNull(String msg, CaptureResult result, CaptureResult.Key<T> key) argument
723 expectKeyValueNotEquals( Builder request, CaptureRequest.Key<T> key, T expected) argument
745 expectKeyValueNotEquals( CaptureResult result, CaptureResult.Key<T> key, T expected) argument
767 expectKeyValueEquals(CaptureResult result, CaptureResult.Key<T> key, T expected) argument
792 expectKeyValueEquals(Builder request, CaptureRequest.Key<T> key, T expected) argument
814 expectKeyValueGreaterOrEqual( CaptureResult result, CaptureResult.Key<T> key, T expected) argument
831 expectKeyValueGreaterThan( CameraCharacteristics characteristics, CameraCharacteristics.Key<T> key, T expected) argument
849 expectKeyValueInRange( CameraCharacteristics characteristics, CameraCharacteristics.Key<T> key, T min, T max) argument
865 expectKeyValueIsIn(CameraCharacteristics characteristics, CameraCharacteristics.Key<T> key, T... expected) argument
883 expectKeyValueIsIn(Builder request, CaptureRequest.Key<T> key, T... expected) argument
900 expectKeyValueContains(CameraCharacteristics characteristics, CameraCharacteristics.Key<T[]> key, T expected) argument
918 expectKeyValueContains(CameraCharacteristics characteristics, CameraCharacteristics.Key<int[]> key, int expected) argument
936 expectKeyValueContains(CameraCharacteristics characteristics, CameraCharacteristics.Key<boolean[]> key, boolean expected) argument
[all...]

Completed in 980 milliseconds

1234567891011>>