/packages/apps/Settings/src/com/android/settings/dashboard/ |
H A D | DashboardFeatureProvider.java | 34 * Get tiles (wrapped in {@link DashboardCategory}) for key defined in CategoryKey. 36 DashboardCategory getTilesForCategory(String key); argument 39 * Get tiles (wrapped as a list of Preference) for key defined in CategoryKey. 44 * @param key Value from CategoryKey 51 int sourceMetricsCategory, String key); 64 * Returns an unique string key for the tile. 75 * @param key They key for preference. If null, we will generate one from tile data 80 Tile tile, String key, int baseOrder); 50 getPreferencesForCategory(Activity activity, Context context, int sourceMetricsCategory, String key) argument 79 bindPreferenceToTile(Activity activity, int sourceMetricsCategory, Preference pref, Tile tile, String key, int baseOrder) argument
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/accessibility/ |
H A D | AccessibilityLongPressTimer.java | 29 public void performLongClickOn(Key key); argument 58 public void startLongPress(final Key key) { argument 60 final Message longPressMessage = obtainMessage(MSG_LONG_PRESS, key);
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/ |
H A D | MoreKeysDetector.java | 46 for (final Key key : keyboard.getSortedKeys()) { 47 final int dist = key.squaredDistanceToEdge(touchX, touchY); 49 nearestKey = key;
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/internal/ |
H A D | DrawingProxy.java | 28 * Called when a key is being pressed. 29 * @param key the {@link Key} that is being pressed. 30 * @param withPreview true if key popup preview should be displayed. 32 public void onKeyPressed(@Nonnull Key key, boolean withPreview); argument 35 * Called when a key is being released. 36 * @param key the {@link Key} that is being released. 37 * @param withAnimation when true, key popup preview should be dismissed with animation. 39 public void onKeyReleased(@Nonnull Key key, boolean withAnimation); argument 42 * Start showing more keys keyboard of a key that is being long pressed. 43 * @param key th 49 showMoreKeysKeyboard(@onnull Key key, @Nonnull PointerTracker tracker) argument [all...] |
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/keyboard/layout/customizer/ |
H A D | DevanagariCustomizer.java | 39 private static final ExpectedKey HINDI_ALPHABET_KEY = key( 45 private static final ExpectedKey HINDI_SYMBOLS_KEY = key(HINDI_SYMBOLS_LABEL, 47 private static final ExpectedKey HINDI_BACK_TO_SYMBOLS_KEY = key(HINDI_SYMBOLS_LABEL,
|
/packages/apps/Car/libs/car-apps-common/src/com/android/car/apps/common/ |
H A D | BitmapDownloader.java | 76 // Bitmap cache also uses size of Bitmap as part of key. 78 // TODO: Pano currently is caring more about height, what about width in key? 114 protected int sizeOf(String key, BitmapItem bitmap) { 219 * @param key {@link BitmapCallback} or {@link ImageView} 222 public boolean cancelDownload(Object key) { argument 224 if (key instanceof ImageView) { 225 ImageView imageView = (ImageView)key; 232 } else if (key instanceof BitmapCallback) { 233 BitmapCallback callback = (BitmapCallback) key; 257 private void addBitmapToMemoryCache(BitmapWorkerOptions key, Bitma argument 280 getBitmapFromMemCache(BitmapWorkerOptions key) argument 326 getLargestBitmapFromMemCache(BitmapWorkerOptions key) argument [all...] |
/packages/apps/Settings/src/com/android/settings/applications/defaultapps/ |
H A D | DefaultPhonePicker.java | 73 protected boolean setDefaultKey(String key) { argument 74 if (!TextUtils.isEmpty(key) && !TextUtils.equals(key, getDefaultKey())) { 75 return mDefaultKeyUpdater.setDefaultDialerApplication(getContext(), key, mUserId); 98 public boolean setDefaultDialerApplication(Context context, String key, int uid) { argument 99 return DefaultDialerManager.setDefaultDialerApplication(context, key, uid);
|
H A D | DefaultSmsPicker.java | 66 protected boolean setDefaultKey(String key) { argument 67 if (!TextUtils.isEmpty(key) && !TextUtils.equals(key, getDefaultKey())) { 68 mDefaultKeyUpdater.setDefaultApplication(getContext(), key); 93 public void setDefaultApplication(Context context, String key) { argument 94 SmsApplication.setDefaultApplication(key, context);
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/utils/ |
H A D | TypefaceUtils.java | 32 // This sparse array caches key label text height in pixel indexed by key label text size. 38 final int key = getCharGeometryCacheKey(referenceChar[0], paint); 40 final Float cachedValue = sTextHeightCache.get(key); 47 sTextHeightCache.put(key, height); 52 // This sparse array caches key label text width in pixel indexed by key label text size. 58 final int key = getCharGeometryCacheKey(referenceChar[0], paint); 60 final Float cachedValue = sTextWidthCache.get(key); 67 sTextWidthCache.put(key, widt [all...] |
/packages/apps/Camera2/src/com/android/camera/device/ |
H A D | LegacyCameraActionProvider.java | 37 public SingleDeviceActions<Camera> get(CameraDeviceKey key) { argument 38 return new LegacyCameraActions(key, mHandlerFactory, mLogFactory);
|
/packages/apps/Launcher3/src/com/android/launcher3/util/ |
H A D | ComponentKeyMapper.java | 29 public ComponentKeyMapper(ComponentKey key) { argument 30 this.mComponentKey = key;
|
H A D | LongArrayMap.java | 28 public boolean containsKey(long key) { argument 29 return indexOfKey(key) >= 0;
|
/packages/apps/TV/src/com/android/tv/receiver/ |
H A D | AudioCapabilitiesReceiver.java | 128 private boolean getBoolean(String key, boolean def) { argument 129 return getSharedPreferences().getBoolean(key, def); 132 private void setBoolean(String key, boolean val) { argument 133 getSharedPreferences().edit().putBoolean(key, val).apply(); 136 private int getInt(String key, int def) { argument 137 return getSharedPreferences().getInt(key, def); 140 private void setInt(String key, int val) { argument 141 getSharedPreferences().edit().putInt(key, val).apply();
|
/packages/apps/UnifiedEmail/src/com/android/mail/preferences/ |
H A D | VersionedPrefs.java | 38 * SQLite databases. You must not use the preference key 47 /** The key for the version number of the {@link SharedPreferences} file. */ 164 protected abstract boolean canBackup(String key); argument 167 * Gets the value to backup for a given key-value pair. By default, returns the passed in value. 169 * @param key The key to backup 170 * @param value The locally stored value for the given key 173 protected Object getBackupValue(final String key, final Object value) { argument 178 * Gets the value to restore for a given key-value pair. By default, returns the passed in 181 * @param key Th 185 getRestoreValue(final String key, final Object value) argument [all...] |
/packages/inputmethods/OpenWnn/src/jp/co/omronsoft/openwnn/ |
H A D | KeyboardView.java | 59 * detecting key presses and touch movements. 69 * Called when the user presses a key. This is sent before the {@link #onKey} is called. 71 * @param primaryCode the unicode of the key being pressed. If the touch is not on a valid 72 * key, the value will be zero. 77 * Called when the user releases a key. This is sent after the {@link #onKey} is called. 79 * @param primaryCode the code of the key that was released 84 * Send a key press to the listener. 85 * @param primaryCode this is the key that was pressed 87 * with the primary code being the first. If the primary key code is 89 * will include other characters that may be on the same key o 126 onLongPress(Keyboard.Key key) argument 878 getPreviewText(Key key) argument [all...] |
/packages/providers/ContactsProvider/src/com/android/providers/contacts/ |
H A D | ContactLookupKey.java | 22 * Contacts lookup key. Used for generation and parsing of contact lookup keys as well 32 // The Profile contact will always have a lookup key of "profile". 39 public String key; field in class:ContactLookupKey.LookupKeySegment 110 // If the lookup key is for the profile, just return a segment list indicating that. The 127 String key; 155 "Work contact lookup key is not accepted here: " + lookupKey); 185 key = sb.toString(); 195 key = string.substring(start); 197 key = string.substring(start, offset - 1); 211 key [all...] |
/packages/apps/Messaging/src/com/android/messaging/mmslib/util/ |
H A D | PduCache.java | 163 private PduCacheEntry purgeSingleEntry(Uri key) { argument 164 mUpdating.remove(key); 165 PduCacheEntry entry = super.purge(key); 167 removeFromThreads(key, entry); 168 removeFromMessageBoxes(key, entry); 185 * @return Uri The normalized key of cached entry. 221 for (Uri key : msgBox) { 222 mUpdating.remove(key); 223 PduCacheEntry entry = super.purge(key); 225 removeFromThreads(key, entr 232 removeFromThreads(Uri key, PduCacheEntry entry) argument 256 removeFromMessageBoxes(Uri key, PduCacheEntry entry) argument [all...] |
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/keyboard/layout/expected/ |
H A D | ActualKeyboardBuilder.java | 40 for (final Key key : keys) { 41 if (key.isSpacer()) { 44 filteredKeys.add(key); 63 for (final Key key : filteredSortedKeys) { 64 if (lastY != key.getY()) { 66 lastY = key.getY(); 70 elements.add(key); 98 // Helper class to create concise representation from the key specification. 130 // Helper class to create concise representation from the key. 135 public String stringize(@Nullable final Key key) { argument 161 toString(@ullable final Key key) argument [all...] |
/packages/inputmethods/LatinIME/native/jni/src/dictionary/utils/ |
H A D | trie_map.h | 33 * key is int and value is uint64_t. 66 IterationResult(const TrieMap *const trieMap, const int key, const uint64_t value, argument 68 : mTrieMap(trieMap), mKey(key), mValue(value), 79 AK_FORCE_INLINE int key() const { function in class:latinime::TrieMap::TrieMapIterator::IterationResult 181 int getNextLevelBitmapEntryIndex(const int key) { argument 182 return getNextLevelBitmapEntryIndex(key, ROOT_BITMAP_ENTRY_INDEX); 185 int getNextLevelBitmapEntryIndex(const int key, const int bitmapEntryIndex); 187 const Result getRoot(const int key) const { 188 return get(key, ROOT_BITMAP_ENTRY_INDEX); 191 const Result get(const int key, cons 193 putRoot(const int key, const uint64_t value) argument 382 writeTerminalEntry(const uint32_t key, const uint64_t value, const int entryIndex) argument [all...] |
/packages/apps/Camera2/src/com/android/camera/processing/memory/ |
H A D | LruResourcePool.java | 30 * @param key size of memory. 33 public Resource<TValue> acquire(TKey key); argument
|
/packages/apps/Messaging/src/com/android/messaging/datamodel/media/ |
H A D | GifImageResource.java | 34 public GifImageResource(String key, FrameSequence frameSequence) { argument 36 super(key, ExifInterface.ORIENTATION_NORMAL); 40 public static GifImageResource createGifImageResource(String key, InputStream inputStream) { argument 54 return new GifImageResource(key, frameSequence);
|
/packages/apps/Messaging/src/com/android/messaging/util/ |
H A D | MediaMetadataRetrieverWrapper.java | 54 public int extractInteger(final int key, final int defaultValue) { argument 55 final String s = mRetriever.extractMetadata(key); 62 public String extractMetadata(final int key) { argument 63 return mRetriever.extractMetadata(key);
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/testutils/ |
H A D | XmlTestUtils.java | 34 String key; 38 key = XmlParserUtils.getDataKey(context, attrs); 39 if (!TextUtils.isEmpty(key)) { 40 keys.add(key);
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/testutils/shadow/ |
H A D | ShadowKeyValueListParserWrapperImpl.java | 17 public boolean getBoolean(String key, boolean defaultValue) { argument
|
/packages/apps/Settings/tests/unit/src/com/android/settings/vpn2/ |
H A D | PreferenceListTest.java | 59 final String key = ((VpnProfile)(invocation.getArguments()[0])).key; 60 if (!mLegacyMocks.containsKey(key)) { 61 mLegacyMocks.put(key, mock(LegacyVpnPreference.class)); 63 return mLegacyMocks.get(key); 67 final AppVpnInfo key = (AppVpnInfo)(invocation.getArguments()[0]); 68 if (!mAppMocks.containsKey(key)) { 69 mAppMocks.put(key, mock(AppPreference.class)); 71 return mAppMocks.get(key); 107 connectedLegacyVpn.key [all...] |