/packages/apps/TvSettings/QuickSettings/src/com/android/tv/quicksettings/ |
H A D | Setting.java | 38 public Setting(SharedPreferences sharedPreferences, String key, String title, int max) { argument 41 mKey = key; 46 public Setting(SharedPreferences sharedPreferences, String key, String title) { argument 49 mKey = key;
|
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/widget/ |
H A D | ViewsStateBundle.java | 114 String key = getSaveStatesKey(id); 115 SparseArray<Parcelable> container = childStates.getSparseParcelableArray(key); 128 String key = getSaveStatesKey(id); 131 childStates.putSparseParcelableArray(key, container);
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/emoji/ |
H A D | EmojiPageKeyboardView.java | 38 // TODO: Implement key popup preview. 45 public void onPressKey(Key key); argument 46 public void onReleaseKey(Key key); argument 51 public void onPressKey(final Key key) {} 53 public void onReleaseKey(final Key key) {} 122 final Key key = getKey(e); 123 if (key != null && key != mCurrentKey) { 169 final Key key = getKey(e); 171 mCurrentKey = key; [all...] |
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/keyboard/layout/tests/ |
H A D | TestsEsperanto.java | 46 .replaceKeyOfLabel("q", key("\u015D", joinMoreKeys( 50 .replaceKeyOfLabel("w", key("\u011D", joinMoreKeys( 77 .replaceKeyOfLabel("y", key("\u016D", joinMoreKeys( 171 .replaceKeyOfLabel("x", key("\u0109", moreKey("x")))
|
/packages/providers/ContactsProvider/src/com/android/providers/contacts/util/ |
H A D | PropertyUtils.java | 53 public static String getProperty(SQLiteDatabase db, String key, String defaultValue) { argument 57 new String[] {key}, null, null, null); 73 public static void setProperty(SQLiteDatabase db, String key, String value) { argument 75 values.put(PropertiesColumns.PROPERTY_KEY, key);
|
/packages/services/Car/car-lib/src/android/car/hardware/ |
H A D | CarSensorConfig.java | 101 public int getInt(String key) { argument 102 if (mConfig.containsKey(key)) { 103 return mConfig.getInt(key); 106 " does not contain key: " + key);
|
/packages/services/Car/car-support-lib/src/android/support/car/hardware/ |
H A D | CarSensorConfig.java | 74 public int getInt(String key) { argument 75 if (mConfig.containsKey(key)) { 76 return mConfig.getInt(key); 79 " does not contain key: " + key);
|
/packages/apps/Dialer/java/com/android/voicemail/impl/mail/store/imap/ |
H A D | ImapList.java | 109 * Return an element keyed by {@code key}. Return null if not found. {@code key} has to be at an 112 /* package */ final ImapElement getKeyedElementOrNull(String key, boolean prefixMatch) { argument 114 if (is(i - 1, key, prefixMatch)) { 122 * Return an {@link ImapList} keyed by {@code key}. Return {@link ImapList#EMPTY} if not found. 124 public final ImapList getKeyedListOrEmpty(String key) { argument 125 return getKeyedListOrEmpty(key, false); 129 * Return an {@link ImapList} keyed by {@code key}. Return {@link ImapList#EMPTY} if not found. 131 public final ImapList getKeyedListOrEmpty(String key, boolean prefixMatch) { argument 132 ImapElement e = getKeyedElementOrNull(key, prefixMatc 140 getKeyedStringOrEmpty(String key) argument 148 getKeyedStringOrEmpty(String key, boolean prefixMatch) argument [all...] |
/packages/apps/Email/provider_src/com/android/email/mail/store/imap/ |
H A D | ImapList.java | 112 * Return an element keyed by {@code key}. Return null if not found. {@code key} has to be 115 /* package */ final ImapElement getKeyedElementOrNull(String key, boolean prefixMatch) { argument 117 if (is(i-1, key, prefixMatch)) { 125 * Return an {@link ImapList} keyed by {@code key}. 128 public final ImapList getKeyedListOrEmpty(String key) { argument 129 return getKeyedListOrEmpty(key, false); 133 * Return an {@link ImapList} keyed by {@code key}. 136 public final ImapList getKeyedListOrEmpty(String key, boolean prefixMatch) { argument 137 ImapElement e = getKeyedElementOrNull(key, prefixMatc 145 getKeyedStringOrEmpty(String key) argument 153 getKeyedStringOrEmpty(String key, boolean prefixMatch) argument [all...] |
/packages/apps/DocumentsUI/src/com/android/documentsui/inspector/ |
H A D | TableView.java | 84 protected void put(String key, String value) { argument 85 if(mRows.containsKey(key)) { 86 mRows.get(key).setValue(value); 89 row.setKey(key); 91 mRows.put(key, row);
|
/packages/apps/Settings/src/com/android/settings/dream/ |
H A D | WhenToDreamPicker.java | 77 protected boolean setDefaultKey(String key) { argument 78 mBackend.setWhenToDream(DreamSettings.getSettingFromPrefKey(key)); 91 private final String key; field in class:WhenToDreamPicker.WhenToDreamCandidateInfo 97 key = value; 112 return key;
|
H A D | CurrentDreamPicker.java | 49 protected boolean setDefaultKey(String key) { argument 51 if (componentNameMap.get(key) != null) { 52 mBackend.setActiveDream(componentNameMap.get(key)); 92 private final String key; field in class:CurrentDreamPicker.DreamCandidateInfo 99 key = info.componentName.flattenToString(); 114 return key;
|
/packages/apps/TV/src/com/android/tv/menu/ |
H A D | MenuRowFactory.java | 50 * Creates an object corresponding to the given {@code key}. 53 public MenuRow createMenuRow(Menu menu, Class<?> key) { argument 54 if (PlayControlsRow.class.equals(key)) { 57 } else if (ChannelsRow.class.equals(key)) { 59 } else if (PartnerRow.class.equals(key)) { 67 } else if (TvOptionsRow.class.equals(key)) {
|
/packages/apps/TV/src/com/android/tv/tuner/exoplayer/buffer/ |
H A D | DvrStorageManager.java | 92 private void readFormatInt(DataInputStream in, MediaFormat format, String key) argument 96 format.setInteger(key, val); 100 private void readFormatLong(DataInputStream in, MediaFormat format, String key) argument 104 format.setLong(key, val); 108 private void readFormatFloat(DataInputStream in, MediaFormat format, String key) argument 112 format.setFloat(key, val); 126 private void readFormatString(DataInputStream in, MediaFormat format, String key) argument 130 format.setString(key, str); 134 private void readFormatStringOptional(DataInputStream in, MediaFormat format, String key) { argument 138 format.setString(key, st 159 readFormatByteBuffer(DataInputStream in, MediaFormat format, String key) argument 266 writeFormatInt(DataOutputStream out, MediaFormat format, String key) argument 275 writeFormatLong(DataOutputStream out, MediaFormat format, String key) argument 284 writeFormatFloat(DataOutputStream out, MediaFormat format, String key) argument 301 writeFormatString(DataOutputStream out, MediaFormat format, String key) argument 322 writeFormatByteBuffer(DataOutputStream out, MediaFormat format, String key) argument [all...] |
/packages/inputmethods/LatinIME/native/jni/src/dictionary/utils/ |
H A D | trie_map.cpp | 67 int TrieMap::getNextLevelBitmapEntryIndex(const int key, const int bitmapEntryIndex) { argument 69 const uint32_t unsignedKey = static_cast<uint32_t>(key); 97 const TrieMap::Result TrieMap::get(const int key, const int bitmapEntryIndex) const { argument 98 const uint32_t unsignedKey = static_cast<uint32_t>(key); 103 bool TrieMap::put(const int key, const uint64_t value, const int bitmapEntryIndex) { argument 107 const uint32_t unsignedKey = static_cast<uint32_t>(key); 116 bool TrieMap::remove(const int key, const int bitmapEntryIndex) { argument 118 const uint32_t unsignedKey = static_cast<uint32_t>(key); 145 * @param outKey the output key 180 * Shuffle bits of the key i 251 getTerminalEntryIndex(const uint32_t key, const uint32_t hashedKey, const Entry &bitmapEntry, const int level) const argument 283 getInternal(const uint32_t key, const uint32_t hashedKey, const int bitmapEntryIndex, const int level) const argument 311 putInternal(const uint32_t key, const uint64_t value, const uint32_t hashedKey, const int bitmapEntryIndex, const Entry &bitmapEntry, const int level) argument 349 addNewEntryByResolvingConflict(const uint32_t key, const uint64_t value, const uint32_t hashedKey, const Entry &conflictedEntry, const int conflictedEntryIndex, const int level) argument 398 addNewEntryByExpandingTable(const uint32_t key, const uint64_t value, const int tableIndex, const uint32_t bitmap, const int bitmapEntryIndex, const int label) argument [all...] |
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/ |
H A D | ProximityInfo.java | 39 /** Number of key widths from current touch point to search for nearest keys. */ 98 static boolean needsProximityInfo(final Key key) { argument 100 return key.getCode() >= Constants.CODE_SPACE; 105 for (final Key key : keys) { 106 if (needsProximityInfo(key)) { 160 final Key key = sortedKeys.get(keyIndex); 161 // Excluding from key coordinate arrays 162 if (!needsProximityInfo(key)) { 165 keyXCoordinates[infoIndex] = key.getX(); 166 keyYCoordinates[infoIndex] = key [all...] |
H A D | Keyboard.java | 72 /** Per keyboard key visual parameters */ 200 for (final Key key : getSortedKeys()) { 201 if (key.getCode() == code) { 202 mKeyCache.put(code, key); 203 return key; 216 for (final Key key : getSortedKeys()) { 217 if (key == aKey) { 218 mKeyCache.put(key.getCode(), key); 250 final Key key [all...] |
/packages/apps/Bluetooth/src/com/android/bluetooth/opp/ |
H A D | BluetoothOppPreference.java | 116 String key = getChannelKey(remoteDevice, uuid); 117 if (V) Log.v(TAG, "getChannel " + key); 120 channel = mChannels.get(key); 141 String key = getChannelKey(remoteDevice, uuid); 143 ed.putInt(key, channel); 145 mChannels.put(key, channel); 150 String key = getChannelKey(remoteDevice, uuid); 152 ed.remove(key); 154 mChannels.remove(key);
|
/packages/apps/Car/libs/car-apps-common/src/com/android/car/apps/common/ |
H A D | RecycleBitmapPool.java | 92 int key = getSize(bitmap); 93 if (key == 0) { 97 ArrayList<SoftReference<Bitmap>> list = mRecycled8888.get(key); 100 mRecycled8888.put(key, list); 111 int key = getSize(width, height); 112 if (key == 0) { 118 Bitmap bitmap = getRecycledBitmap(mRecycled8888.get(key)); 125 if (k > key && k <= key * LARGER_BITMAP_ALLOWED_REUSE) {
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/ |
H A D | SettingsPreferenceFragmentTest.java | 79 final String key = "test_key"; 85 preference.setKey(key); 91 assertThat(mFragment.removePreference(mScreen, key)).isTrue(); 97 final String key = "test_key"; 102 when(preference.getKey()).thenReturn(key); 106 assertThat(mFragment.removePreference(mScreen, key)).isTrue(); 112 final String key = "test_key"; 117 when(preference.getKey()).thenReturn(key); 121 assertThat(mFragment.removePreference(mScreen, "not" + key)).isFalse();
|
/packages/providers/ContactsProvider/src/com/android/providers/contacts/ |
H A D | FastScrollingIndexCache.java | 208 final String key = buildCacheKey(queryUri, selection, selectionArgs, sortOrder, 210 final String value = mCache.get(key); 213 Log.v(TAG, "Miss: " + key); 221 mCache.remove(key); 225 Log.v(TAG, "Hit: " + key); 240 final String key = buildCacheKey(queryUri, selection, selectionArgs, sortOrder, 242 mCache.put(key, buildCacheValue( 248 Log.v(TAG, "Put: " + key); 268 * We concatenate all key+value pairs into one string and save it. 272 for (String key [all...] |
/packages/apps/Calendar/src/com/android/calendar/event/ |
H A D | EventColorCache.java | 49 String key = createKey(accountName, accountType); 51 if ((colorPalette = mColorPaletteMap.get(key)) == null) { 55 mColorPaletteMap.put(key, colorPalette); 74 * Retrieve an event color's unique key based on account name, type, and color. 84 for (String key : mColorPaletteMap.keySet()) { 85 ArrayList<Integer> palette = mColorPaletteMap.get(key); 92 mColorPaletteMap.put(key, palette);
|
/packages/apps/Dialer/java/com/android/voicemail/impl/utils/ |
H A D | IndentingPrintWriter.java | 70 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) + " ");
|
/packages/apps/Gallery/tests/src/com/android/camera/gallery/ |
H A D | LruCacheUnitTests.java | 10 Integer key = Integer.valueOf(1); 12 cache.put(key, value); 13 assertEquals(value, cache.get(key)); 18 Integer key = Integer.valueOf(1); 20 cache.put(key, value); 25 assertEquals(value, cache.get(key));
|
/packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/analytics/ |
H A D | AnalyticsUtils.java | 110 for (String key : keys) { 111 if (isValidProvisioningExtra(key)) { 112 provisioningExtras.add(key); 128 for (String key : keys) { 129 if (isValidProvisioningExtra(key)) { 130 provisioningExtras.add(key);
|