Searched refs:key (Results 76 - 100 of 749) sorted by relevance

1234567891011>>

/packages/apps/TV/src/com/android/tv/config/
H A DDefaultConfigManager.java43 public String getString(String key) { argument
48 public boolean getBoolean(String key) { argument
53 public long getLong(String key) { argument
H A DRemoteConfigFeature.java30 /** Creates a {@link RemoteConfigFeature for the {@code key}. */
31 public static RemoteConfigFeature fromKey(String key) { argument
32 return new RemoteConfigFeature(key);
35 private RemoteConfigFeature(String key) { argument
36 mKey = key;
H A DRemoteConfigUtils.java30 public static long getRemoteConfig(Context context, String key, long defaultValue) { argument
33 long remoteValue = remoteConfig.getLong(key);
34 if (DEBUG) Log.d(TAG, "Got " + key + " from remote: " + remoteValue);
37 Log.w(TAG, "Cannot get " + key + " from RemoteConfig", e);
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/keyboard/layout/
H A DLao.java63 private static final ExpectedKey LAO_ALPHABET_KEY = key(
67 private static final ExpectedKey CURRENCY_KIP = key("\u20AD",
94 key("\u0EA2", joinMoreKeys("1", "\u0ED1")),
97 key("\u0E9F", joinMoreKeys("2", "\u0ED2")),
100 key("\u0EC2", joinMoreKeys("3", "\u0ED3")),
103 key("\u0E96", joinMoreKeys("4", "\u0ED4")),
109 key("\u0E84", joinMoreKeys("5", "\u0ED5")),
112 key("\u0E95", joinMoreKeys("6", "\u0ED6")),
115 key("\u0E88", joinMoreKeys("7", "\u0ED7")),
118 key("\u0E8
[all...]
H A DDvorak.java43 * Get the left most key of the first row.
46 * @return the left most key of the first row.
51 return key("'", joinMoreKeys(additionalMoreKey("1"), "!", "\""));
53 return key("\"", additionalMoreKey("1"));
57 * Get the 2nd left key of the first row.
60 * @return the 2nd left key of the first row.
65 return key(",", joinMoreKeys(additionalMoreKey("2"), "?", "<"));
67 return key("<", additionalMoreKey("2"));
71 * Get the 3rd left key of the first row.
74 * @return the 3rd left key o
[all...]
/packages/apps/Camera2/src/com/android/camera/device/
H A DCameraDeviceActionProvider.java20 * Provides a set of executable actions for a given camera device key.
36 public SingleDeviceActions<TDevice> get(CameraDeviceKey key); argument
/packages/apps/Camera2/src_pd/com/android/camera/util/
H A DSystemProperties.java21 public static String get(String key, String defaultValue) { argument
/packages/inputmethods/LatinIME/common/src/com/android/inputmethod/latin/common/
H A DNativeSuggestOptions.java56 private void setBooleanOption(final int key, final boolean value) { argument
57 mOptions[key] = value ? 1 : 0;
60 private void setIntegerOption(final int key, final int value) { argument
61 mOptions[key] = value;
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/internal/
H A DUniqueKeysCache.java28 public abstract @Nonnull Key getUniqueKey(@Nonnull Key key); argument
39 public Key getUniqueKey(Key key) { return key; }
67 public Key getUniqueKey(final Key key) { argument
69 return key;
71 final Key existingKey = mCache.get(key);
73 // Reuse the existing object that equals to "key" without adding "key" to
77 mCache.put(key, key);
[all...]
H A DKeyboardParams.java120 final Key key = mUniqueKeysCache.getUniqueKey(newKey);
121 final boolean isSpacer = key.isSpacer();
122 if (isSpacer && key.getWidth() == 0) {
126 mSortedKeys.add(key);
130 updateHistogram(key);
131 if (key.getCode() == Constants.CODE_SHIFT) {
132 mShiftKeys.add(key);
134 if (key.altCodeWhileTyping()) {
135 mAltCodeKeysWhileTyping.add(key);
145 for (final Key key
171 updateHistogramCounter(final SparseIntArray histogram, final int key) argument
178 updateHistogram(final Key key) argument
[all...]
/packages/inputmethods/LatinIME/tools/dicttool/compat/android/util/
H A DSparseArray.java44 public void put(final int key, final E value) { argument
45 final int index = Collections.binarySearch(mKeys, key);
51 mKeys.add(insertIndex, key);
55 public E get(final int key) { argument
56 return get(key, null);
59 public E get(final int key, final E valueIfKeyNotFound) { argument
60 final int index = Collections.binarySearch(mKeys, key);
67 public int indexOfKey(final int key) { argument
68 return mKeys.indexOf(key);
/packages/apps/Camera2/src/com/android/camera/processing/memory/
H A DSimpleLruResourcePool.java44 public Resource<TValue> acquire(TKey key) { argument
47 value = mLruPool.acquire(key);
53 value = create(key);
56 return new SynchronizedResource<>(this, key, value);
60 * Create a new value for a given key.
62 protected abstract TValue create(TKey key); argument
68 protected TValue recycle(TKey key, TValue value) { argument
75 private void release(TKey key, TValue value) { argument
76 mLruPool.add(key, recycle(key, valu
94 SynchronizedResource(SimpleLruResourcePool<TKey, TValue> pool, TKey key, TValue value) argument
[all...]
/packages/apps/Settings/src/com/android/settings/core/instrumentation/
H A DSharedPreferencesLogger.java57 public String getString(String key, @Nullable String defValue) { argument
62 public Set<String> getStringSet(String key, @Nullable Set<String> defValues) { argument
67 public int getInt(String key, int defValue) { argument
72 public long getLong(String key, long defValue) { argument
77 public float getFloat(String key, float defValue) { argument
82 public boolean getBoolean(String key, boolean defValue) { argument
87 public boolean contains(String key) { argument
106 private void logValue(String key, Object value) { argument
107 logValue(key, value, false /* forceLog */);
110 private void logValue(String key, Objec argument
159 logPackageName(String key, String value) argument
165 safeLogValue(String key, String value) argument
173 buildPrefKey(String tag, String key) argument
205 putString(String key, @Nullable String value) argument
211 putStringSet(String key, @Nullable Set<String> values) argument
217 putInt(String key, int value) argument
223 putLong(String key, long value) argument
229 putFloat(String key, float value) argument
235 putBoolean(String key, boolean value) argument
241 remove(String key) argument
[all...]
/packages/apps/Messaging/src/com/android/messaging/datamodel/media/
H A DMediaBytes.java25 public MediaBytes(final String key, final byte[] bytes) { argument
26 super(key);
/packages/apps/UnifiedEmail/src/com/android/mail/utils/
H A DObservableSparseArrayCompat.java45 public void append(final int key, final E value) { argument
46 super.append(key, value);
57 public void delete(final int key) { argument
58 super.delete(key);
63 public void put(final int key, final E value) { argument
64 super.put(key, value);
69 public void remove(final int key) { argument
70 super.remove(key);
/packages/services/Car/car-lib/src/android/car/
H A DICarInfo.aidl24 String getStringInfo(in String key) = 1;
/packages/apps/Gallery2/src/com/android/gallery3d/data/
H A DImageCacheService.java59 byte[] key = makeKey(path, timeModified, type);
60 long cacheKey = Utils.crc64Long(key);
63 request.key = cacheKey;
68 if (isSameKey(key, request.buffer)) {
70 buffer.offset = key.length;
81 byte[] key = makeKey(path, timeModified, type);
82 long cacheKey = Utils.crc64Long(key);
83 ByteBuffer buffer = ByteBuffer.allocate(key.length + value.length);
84 buffer.put(key);
96 byte[] key
111 isSameKey(byte[] key, byte[] buffer) argument
[all...]
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/utils/
H A DImportantNoticeUtilsTests.java52 private Integer getInt(final String key) { argument
53 if (mPref.contains(key)) {
54 return mPref.getInt(key, 0);
59 public Long getLong(final String key) { argument
60 if (mPref.contains(key)) {
61 return mPref.getLong(key, 0);
66 private void putInt(final String key, final Integer value) { argument
68 removePreference(key);
70 mPref.edit().putInt(key, value).apply();
74 private void putLong(final String key, fina argument
82 removePreference(final String key) argument
[all...]
/packages/apps/StorageManager/src/com/android/storagemanager/utils/
H A DPreferenceListCache.java42 String key = p.getKey();
43 if (TextUtils.isEmpty(key) || mCache.containsKey(key)) {
45 "Invalid key encountered in preference group " + group.getKey());
53 * @param key The key of the preference.
56 public Preference getCachedPreference(String key) { argument
57 return mCache.remove(key);
/packages/apps/Terminal/src/com/android/terminal/
H A DTerminalService.java55 mTerminals.put(term.key, term);
56 return term.key;
59 public void destroyTerminal(int key) { argument
60 final Terminal term = mTerminals.get(key);
62 mTerminals.delete(key);
/packages/services/Car/service/src/com/android/car/hal/
H A DBidirectionalSparseIntArray.java37 throw new IllegalArgumentException("Odd number of key-value elements");
52 private void put(int key, int value) { argument
53 mMap.put(key, value);
54 mInverseMap.put(value, key);
57 int getValue(int key, int defaultValue) { argument
58 return mMap.get(key, defaultValue);
/packages/services/Telephony/src/com/android/phone/vvm/
H A DVisualVoicemailSmsFilterConfig.java105 // ICC id is better as a key but it involves more trouble to get one as subId is more
121 private Editor setInt(String key, int value) { argument
122 mPrefsEditor.putInt(makeKey(key), value);
126 private Editor setString(String key, String value) { argument
127 mPrefsEditor.putString(makeKey(key), value);
131 private Editor setBoolean(String key, boolean value) { argument
132 mPrefsEditor.putBoolean(makeKey(key), value);
136 private Editor setStringList(String key, List<String> value) { argument
137 mPrefsEditor.putStringSet(makeKey(key), new ArraySet(value));
145 private String makeKey(String key) { argument
161 getInt(String key, int defaultValue) argument
165 getString(String key, String defaultValue) argument
169 getBoolean(String key, boolean defaultValue) argument
173 getStringSet(String key, List<String> defaultValue) argument
181 makeKey(String key) argument
[all...]
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/keyboard/layout/expected/
H A DAbstractLayoutBase.java31 public static ExpectedKey key(final String label, final ExpectedKey ... moreKeys) { method in class:AbstractLayoutBase
36 public static ExpectedKey key(final String label, final String outputText, method in class:AbstractLayoutBase
42 public static ExpectedKey key(final String label, final int code, method in class:AbstractLayoutBase
48 public static ExpectedKey key(final int iconId, final String outputText, method in class:AbstractLayoutBase
54 public static ExpectedKey key(final int iconId, final int code, method in class:AbstractLayoutBase
60 public static ExpectedKey key(final ExpectedKey key, final ExpectedKey ... moreKeys) { argument
61 return ExpectedKey.newInstance(key.getVisual(), key.getOutput(), moreKeys);
65 // "additional more key" tha
[all...]
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/
H A DKeyboardLayout.java59 Key key = layoutKeys.get(i);
60 mKeyCodes[i] = Character.toLowerCase(key.getCode());
61 mKeyXCoordinates[i] = key.getX();
62 mKeyYCoordinates[i] = key.getY();
63 mKeyWidths[i] = key.getWidth();
64 mKeyHeights[i] = key.getHeight();
90 * between keys. The mostCommonKey(Width/Height) represents the true key width/height
99 * between keys. The mostCommonKey(Width/Height) represents the true key width/height
113 for (final Key key : sortedKeys) {
114 if (!ProximityInfo.needsProximityInfo(key)) {
[all...]
/packages/apps/Dialer/java/com/android/dialer/protos/
H A DProtoParsers.java34 @NonNull Bundle bundle, @NonNull String key, @NonNull T defaultInstance)
38 Assert.isNotNull(key);
41 byte[] bytes = bundle.getByteArray(key);
51 @NonNull Bundle bundle, @NonNull String key, @NonNull T defaultInstance) {
53 return get(bundle, key, defaultInstance);
65 @NonNull Intent intent, @NonNull String key, @NonNull T defaultInstance) {
67 return getTrusted(intent.getExtras(), key, defaultInstance);
75 @NonNull Bundle bundle, @NonNull String key, @NonNull MessageLite message) {
78 Assert.isNotNull(key);
79 bundle.putByteArray(key, messag
33 get( @onNull Bundle bundle, @NonNull String key, @NonNull T defaultInstance) argument
50 getTrusted( @onNull Bundle bundle, @NonNull String key, @NonNull T defaultInstance) argument
64 getTrusted( @onNull Intent intent, @NonNull String key, @NonNull T defaultInstance) argument
74 put( @onNull Bundle bundle, @NonNull String key, @NonNull MessageLite message) argument
86 put( @onNull Intent intent, @NonNull String key, @NonNull MessageLite message) argument
[all...]

Completed in 533 milliseconds

1234567891011>>