Searched refs:key (Results 51 - 75 of 749) sorted by relevance

1234567891011>>

/packages/apps/Settings/src/com/android/settings/fuelgauge/anomaly/
H A DKeyValueListParserWrapper.java47 * Get the value for key as a string.
48 * @param key The key to lookup.
49 * @param defaultValue The value to return if the key was not found.
50 * @return the string value associated with the key.
52 String getString(String key, String defaultValue); argument
55 * Get the value for key as a boolean.
56 * @param key The key to lookup.
57 * @param defaultValue The value to return if the key wa
60 getBoolean(String key, boolean defaultValue) argument
69 getLong(String key, long defaultValue) argument
[all...]
H A DKeyValueListParserWrapperImpl.java42 public String getString(String key, String defaultValue) { argument
43 return mParser.getString(key, defaultValue);
47 public boolean getBoolean(String key, boolean defaultValue) { argument
48 return mParser.getBoolean(key, defaultValue);
52 public long getLong(String key, long defaultValue) { argument
53 return mParser.getLong(key, defaultValue);
/packages/apps/Settings/tests/robotests/src/com/android/settings/testutils/shadow/
H A DSettingsShadowSystemProperties.java37 public static synchronized boolean getBoolean(String key, boolean def) { argument
38 if (sValues.containsKey(key)) {
39 String val = sValues.get(key);
43 return ShadowSystemProperties.getBoolean(key, def);
47 public static synchronized String get(String key) { argument
48 if (sValues.containsKey(key)) {
49 return sValues.get(key);
51 return ShadowSystemProperties.get(key);
54 public static synchronized void set(String key, String val) { argument
55 sValues.put(key, va
59 get(String key, String def) argument
[all...]
/packages/apps/Messaging/tests/src/com/android/messaging/util/
H A DFakeBugleGservices.java31 public long getLong(final String key, final long defaultValue) { argument
36 public int getInt(final String key, final int defaultValue) { argument
41 public boolean getBoolean(final String key, final boolean defaultValue) { argument
46 public String getString(final String key, final String defaultValue) { argument
51 public float getFloat(String key, float defaultValue) { argument
/packages/apps/TV/common/src/com/android/tv/common/feature/
H A DPropertyFeature.java34 * @param key the system property key. Length must be <= 31 characters.
37 public PropertyFeature(String key, boolean defaultValue) { argument
38 if (key.length() > 31) {
42 "Property keys have a max length of 31 characters but '" + key + "' is " + key
45 mProperty = new BooleanSystemProperty(key, defaultValue);
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/keyboard/layout/
H A DAzerty.java40 builder.replaceKeyOfLabel(ROW3_QUOTE, key("'", joinMoreKeys(
65 key("a", additionalMoreKey("1")),
66 key("z", additionalMoreKey("2")),
67 key("e", additionalMoreKey("3")),
68 key("r", additionalMoreKey("4")),
69 key("t", additionalMoreKey("5")),
70 key("y", additionalMoreKey("6")),
71 key("u", additionalMoreKey("7")),
72 key("i", additionalMoreKey("8")),
73 key("
[all...]
H A DColemak.java41 builder.replaceKeyOfLabel(ROW1_10, key(";", additionalMoreKey("0"), moreKey(":")));
54 builder.replaceKeyOfLabel(ROW1_10, key(":", additionalMoreKey("0")));
64 key("q", additionalMoreKey("1")),
65 key("w", additionalMoreKey("2")),
66 key("f", additionalMoreKey("3")),
67 key("p", additionalMoreKey("4")),
68 key("g", additionalMoreKey("5")),
69 key("j", additionalMoreKey("6")),
70 key("l", additionalMoreKey("7")),
71 key("
[all...]
H A DFarsi.java72 return joinKeys(key("\u060C", SETTINGS_KEY));
77 return joinKeys(key("\u060C", joinMoreKeys(
87 return joinKeys(key(".", getPunctuationMoreKeys(isPhone)));
92 return joinKeys(LANGUAGE_SWITCH_KEY, SPACE_KEY, key(ZWNJ_KEY, ZWJ_KEY));
104 private static final ExpectedKey FARSI_ALPHABET_KEY = key(
110 private static final ExpectedKey FARSI_SYMBOLS_KEY = key(
112 private static final ExpectedKey FARSI_BACK_TO_SYMBOLS_KEY = key(
115 private static final ExpectedKey CURRENCY_RIAL = key("\uFDFC",
162 key("\u0636", joinMoreKeys("\u06F1", "1")),
165 key("\u063
[all...]
H A DBulgarian.java59 key("\u044F", moreKey("1")),
61 key("\u0432", moreKey("2")),
63 key("\u0435", moreKey("3")),
65 key("\u0440", moreKey("4")),
67 key("\u0442", moreKey("5")),
69 key("\u044A", moreKey("6")),
71 key("\u0443", moreKey("7")),
74 key("\u0438", joinMoreKeys("8", "\u045D")),
76 key("\u043E", moreKey("9")),
78 key("\u043
[all...]
H A DBulgarianBds.java48 key("\u0443", moreKey("1")),
50 key("\u0435", moreKey("2")),
53 key("\u0438", joinMoreKeys("3", "\u045D")),
55 key("\u0448", moreKey("4")),
57 key("\u0449", moreKey("5")),
59 key("\u043A", moreKey("6")),
61 key("\u0441", moreKey("7")),
63 key("\u0434", moreKey("8")),
65 key("\u0437", moreKey("9")),
67 key("\u044
[all...]
H A DEastSlavic.java44 key("\u0439", additionalMoreKey("1")),
46 key("\u0446", additionalMoreKey("2")),
48 key("\u0443", additionalMoreKey("3")),
50 key("\u043A", additionalMoreKey("4")),
52 key("\u0435", additionalMoreKey("5")),
54 key("\u043D", additionalMoreKey("6")),
56 key("\u0433", additionalMoreKey("7")),
58 key("\u0448", additionalMoreKey("8")),
59 key(ROW1_9, additionalMoreKey("9")),
61 key("\u043
[all...]
H A DSerbianQwertz.java44 key("q", additionalMoreKey("1")),
45 key("w", additionalMoreKey("2")),
46 key("e", additionalMoreKey("3")),
47 key("r", additionalMoreKey("4")),
48 key("t", additionalMoreKey("5")),
49 key("z", additionalMoreKey("6")),
50 key("u", additionalMoreKey("7")),
51 key("i", additionalMoreKey("8")),
52 key("o", additionalMoreKey("9")),
53 key("
[all...]
H A DSouthSlavic.java44 key("\u0459", additionalMoreKey("1")),
46 key("\u045A", additionalMoreKey("2")),
48 key("\u0435", additionalMoreKey("3")),
50 key("\u0440", additionalMoreKey("4")),
52 key("\u0442", additionalMoreKey("5")),
53 key(ROW1_6, additionalMoreKey("6")),
55 key("\u0443", additionalMoreKey("7")),
57 key("\u0438", additionalMoreKey("8")),
59 key("\u043E", additionalMoreKey("9")),
61 key("\u043
[all...]
H A DArmenianPhonetic.java58 return joinKeys(key("!", joinMoreKeys("\u055C", "\u00A1")),
59 key("?", joinMoreKeys("\u055E", "\u00BF")),
66 return isPhone ? joinKeys(key("\u055D", SETTINGS_KEY))
67 : joinKeys(key("\u055D", SETTINGS_KEY));
73 final ExpectedKey fullStopKey = key("\u0589", getPunctuationMoreKeys(isPhone));
85 private static final ExpectedKey ARMENIAN_ALPHABET_KEY = key(
123 key("\u0567", moreKey("1")),
125 key("\u0569", moreKey("2")),
127 key("\u0583", moreKey("3")),
129 key("\u057
[all...]
H A DGreek.java49 private static final ExpectedKey GREEK_ALPHABET_KEY = key(
76 private static final ExpectedKey ROW1_1_SEMICOLON = key(";", joinMoreKeys("1", ":"));
77 private static final ExpectedKey ROW1_1_COLON = key(":", joinMoreKeys("1", ";"));
81 private static final ExpectedKey ROW1_2_FINAL_SIGMA = key("\u03C2", moreKey("2"));
85 key(ROW1_1, moreKey("1")),
86 key(ROW1_2, moreKey("2")),
89 key("\u03B5", joinMoreKeys("\u03AD", "3")),
91 key("\u03C1", moreKey("4")),
93 key("\u03C4", moreKey("5")),
98 key("\u03C
[all...]
H A DSymbolsShifted.java64 Symbols.POUND_SIGN, Symbols.YEN_SIGN, key(Symbols.DOLLAR_SIGN, Symbols.CENT_SIGN),
68 Symbols.POUND_SIGN, Symbols.EURO_SIGN, key(Symbols.DOLLAR_SIGN, Symbols.CENT_SIGN),
83 key("\u2022", joinMoreKeys("\u266A", "\u2665", "\u2660", "\u2666", "\u2663")),
88 key("\u03C0", moreKey("\u03A0")),
94 key("\u00B6", moreKey("\u00A7")),
103 key("^", joinMoreKeys("\u2191", "\u2193", "\u2190", "\u2192")),
107 key("\u00B0", joinMoreKeys("\u2032", "\u2033")),
111 key("=", joinMoreKeys("\u2260", "\u2248", "\u221E")),
124 key("<", joinMoreKeys("\u2039", "\u2264", "\u00AB")),
129 key(">", joinMoreKey
[all...]
/packages/apps/Camera2/src/com/android/camera/settings/
H A DSettingsManager.java174 public void onSettingChanged(SettingsManager settingsManager, String key); argument
182 SharedPreferences sharedPreferences, String key) {
183 listener.onSettingChanged(SettingsManager.this, key);
295 public void setDefaults(String key, String defaultValue, String[] possibleValues) { argument
297 mDefaultsStore.storeDefaults(key, defaultValue, possibleValues);
306 public void setDefaults(String key, int defaultValue, int[] possibleValues) { argument
313 mDefaultsStore.storeDefaults(key, defaultValueString, possibleValuesString);
322 public void setDefaults(String key, boolean defaultValue) { argument
326 mDefaultsStore.storeDefaults(key, defaultValueString, possibleValues);
333 public String getStringDefault(String key) { argument
342 getIntegerDefault(String key) argument
352 getBooleanDefault(String key) argument
364 getString(String scope, String key, String defaultValue) argument
382 getString(String scope, String key) argument
392 getInteger(String scope, String key, Integer defaultValue) argument
404 getInteger(String scope, String key) argument
414 getBoolean(String scope, String key, boolean defaultValue) argument
426 getBoolean(String scope, String key) argument
443 getIndexOfCurrentValue(String scope, String key) argument
466 set(String scope, String key, String value) argument
477 set(String scope, String key, int value) argument
488 set(String scope, String key, boolean value) argument
497 setToDefault(String scope, String key) argument
515 setValueByIndex(String scope, String key, int index) argument
535 isSet(String scope, String key) argument
546 isDefault(String scope, String key) argument
557 remove(String scope, String key) argument
[all...]
H A DDefaultsStore.java33 * SharedPreferences key, then calling getIndexOfCurrentValue
68 * for a SharedPreferences key.
70 public void storeDefaults(String key, String defaultValue, String[] possibleValues) { argument
72 mDefaultsInternalStore.put(key, defaults);
76 * Get the default value for a SharedPreferences key,
79 public String getDefaultValue(String key) { argument
80 Defaults defaults = mDefaultsInternalStore.get(key);
88 * Get the set of possible values for a SharedPreferences key,
91 public String[] getPossibleValues(String key) { argument
92 Defaults defaults = mDefaultsInternalStore.get(key);
[all...]
/packages/apps/Launcher3/src/com/android/launcher3/shortcuts/
H A DShortcutCache.java53 ShortcutKey key = ShortcutKey.fromInfo(shortcut);
54 mCachedShortcuts.remove(key);
55 mPinnedShortcuts.remove(key);
59 public ShortcutInfoCompat get(ShortcutKey key) { argument
60 if (mPinnedShortcuts.containsKey(key)) {
61 return mPinnedShortcuts.get(key);
63 return mCachedShortcuts.get(key);
66 public void put(ShortcutKey key, ShortcutInfoCompat shortcut) { argument
68 mPinnedShortcuts.put(key, shortcut);
70 mCachedShortcuts.put(key, shortcu
[all...]
/packages/apps/Messaging/src/com/android/messaging/mmslib/util/
H A DAbstractCache.java35 public boolean put(K key, V value) { argument
37 Log.v(TAG, "Trying to put " + key + " into cache.");
49 if (key != null) {
52 mCacheMap.put(key, cacheEntry);
55 Log.v(TAG, key + " cached, " + mCacheMap.size() + " items total.");
62 public V get(K key) { argument
64 Log.v(TAG, "Trying to get " + key + " from cache.");
67 if (key != null) {
68 CacheEntry<V> cacheEntry = mCacheMap.get(key);
72 Log.v(TAG, key
80 purge(K key) argument
[all...]
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/accessibility/
H A DKeyboardAccessibilityDelegate.java88 protected final void setLastHoverKey(final Key key) { argument
89 mLastHoverKey = key;
155 * Get a key that a hover event is on.
158 * @return key The key that the <code>event</code> is on.
197 final Key key = getHoverKeyOf(event);
199 Log.d(TAG, "onHoverEnter: key=" + key);
201 if (key != null) {
202 onHoverEnterTo(key);
257 performClickOn(final Key key) argument
271 simulateTouchEvent(final int touchAction, final Key key) argument
286 onHoverEnterTo(final Key key) argument
302 onHoverMoveWithin(final Key key) argument
309 onHoverExitFrom(final Key key) argument
324 performLongClickOn(final Key key) argument
[all...]
H A DKeyboardAccessibilityNodeProvider.java114 private int getVirtualViewIdOf(final Key key) { argument
121 if (sortedKeys.get(index) == key) {
130 * Creates and populates an {@link AccessibilityEvent} for the specified key
133 * @param key A key on the host keyboard view.
135 * @return A populated {@link AccessibilityEvent} for the key.
138 public AccessibilityEvent createAccessibilityEvent(final Key key, final int eventType) { argument
139 final int virtualViewId = getVirtualViewIdOf(key);
140 final String keyDescription = getKeyDescription(key);
143 event.setClassName(key
151 onHoverEnterTo(final Key key) argument
165 onHoverExitFrom(final Key key) argument
281 performActionForKey(final Key key, final int action) argument
312 sendAccessibilityEventForKey(final Key key, final int eventType) argument
323 getKeyDescription(final Key key) argument
[all...]
/packages/apps/DocumentsUI/tests/common/com/android/documentsui/bots/
H A DMenuBot.java44 for (String key : menuStates.keySet()) {
45 if (menuStates.get(key)) {
46 assertTrue(key + " expected to be shown", hasMenuItem(key));
48 assertFalse(key + " expected not to be shown", hasMenuItem(key));
/packages/apps/UnifiedEmail/src/com/android/mail/utils/
H A DLruCache.java57 * @param key
60 public synchronized V getElement(K key) { argument
61 return get(key);
66 * @param key
69 public synchronized void putElement(K key, V value) { argument
70 put(key, value);
76 * @param key
79 public synchronized V removeElement(K key) { argument
80 return remove(key);
/packages/apps/PackageInstaller/tests/src/com/android/packageinstaller/shadows/
H A DShadowSystemProperties.java42 public static String get(String key) { argument
43 if ("ro.build.type".equals(key)) {
50 return org.robolectric.shadows.ShadowSystemProperties.get(key);

Completed in 670 milliseconds

1234567891011>>