Searched refs:keys (Results 1 - 25 of 63) sorted by relevance

123

/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/keyboard/layout/expected/
H A DExpectedKeyboardBuilder.java68 private static ExpectedKey[] replaceKeyAt(final ExpectedKey[] keys, final int columnIndex, argument
72 keys[columnIndex] = replacingKeys[0];
73 return keys;
75 final int newLength = keys.length - 1 + replacingKeys.length;
77 final ExpectedKey[] newKeys = Arrays.copyOf(keys, newLength);
78 System.arraycopy(keys, columnIndex + 1, newKeys, columnIndex + replacingKeys.length,
79 keys.length - 1 - columnIndex);
80 // Insert replacing keys at columnIndex.
91 ExpectedKey[] keys = getRowAt(row);
92 for (int columnIndex = 0; columnIndex < keys
116 joinKeys(final Object ... keys) argument
139 setKeysOfRow(final int row, final Object ... keys) argument
220 insertKeysAtRow(final int row, final int column, final Object ... keys) argument
237 addKeysOnTheLeftOfRow(final int row, final Object ... keys) argument
255 addKeysOnTheRightOfRow(final int row, final Object ... keys) argument
[all...]
H A DActualKeyboardBuilder.java38 private static ArrayList<Key> filterOutSpacer(final List<Key> keys) { argument
40 for (final Key key : keys) {
50 * Create the keyboard that consists of the array of rows of the actual keyboard's keys.
51 * @param sortedKeys keys list of the actual keyboard that is sorted from top-left to
59 // Grouping keys into rows.
167 * @param keys the keyboard row to be converted to string.
168 * @return the human readable representation of <code>keys</code>.
171 public static String toString(@Nullable final Key[] keys) { argument
172 return KeyStringizer.STRINGIZER.join(keys);
/packages/apps/Settings/src/com/android/settings/
H A DLegalSettings.java79 final List<String> keys = new ArrayList<String>();
81 keys.add(KEY_TERMS);
84 keys.add(KEY_LICENSE);
87 keys.add(KEY_COPYRIGHT);
90 keys.add(KEY_WEBVIEW_LICENSE);
92 return keys;
H A DDeviceInfoSettings.java427 final List<String> keys = new ArrayList<String>();
429 keys.add(KEY_SELINUX_STATUS);
432 keys.add(KEY_SAFETY_LEGAL);
435 keys.add(KEY_EQUIPMENT_ID);
439 keys.add((KEY_BASEBAND_VERSION));
443 keys.add(KEY_DEVICE_FEEDBACK);
448 keys.add(KEY_SYSTEM_UPDATE_SETTINGS);
452 keys.add(KEY_UPDATE_SETTING);
454 return keys;
/packages/apps/TV/tests/common/src/com/android/tv/testing/uihelper/
H A DUiDeviceUtils.java58 public static void pressKeys(UiDevice uiDevice, String keys) { argument
59 for (char c : keys.toCharArray()) {
/packages/apps/LegacyCamera/src/com/android/camera/ui/
H A DIndicatorControlContainer.java27 boolean isZoomSupported, String[] keys, String[] otherSettingKeys);
26 initialize(Context context, PreferenceGroup group, boolean isZoomSupported, String[] keys, String[] otherSettingKeys) argument
H A DIndicatorControl.java89 protected void addControls(String[] keys, String[] otherSettingKeys) { argument
90 if (keys != null) {
91 for (int i = 0; i < keys.length; i++) {
93 (IconListPreference) mPreferenceGroup.findPreference(keys[i]);
133 int resId, String[] keys) {
135 context, resId, mPreferenceGroup, keys);
132 addOtherSettingIndicator(Context context, int resId, String[] keys) argument
H A DOtherSettingsPopup.java96 public void initialize(PreferenceGroup group, String[] keys) { argument
98 for (int i = 0; i < keys.length; ++i) {
99 ListPreference pref = group.findPreference(keys[i]);
H A DSecondLevelIndicatorControlBar.java60 String[] keys, String[] otherSettingKeys) {
64 addControls(keys, otherSettingKeys);
148 int resId, String[] keys) {
150 super.addOtherSettingIndicator(context, resId, keys);
59 initialize(Context context, PreferenceGroup group, String[] keys, String[] otherSettingKeys) argument
147 addOtherSettingIndicator(Context context, int resId, String[] keys) argument
H A DIndicatorControlWheelContainer.java60 boolean isZoomSupported, String[] keys, String[] otherSettingKeys) {
62 keys, otherSettingKeys);
59 initialize(Context context, PreferenceGroup group, boolean isZoomSupported, String[] keys, String[] otherSettingKeys) argument
/packages/apps/TvSettings/QuickSettings/src/com/android/tv/quicksettings/
H A DPresetSettingsListener.java57 final String[] keys = res.getStringArray(R.array.setting_keys);
61 for (int i = 0; i < keys.length; i++) {
62 prefs.putInt(keys[i], newValues[i]);
H A DQuickSettingsPreferenceFragment.java142 final List<String> keys =
144 final int pos = keys.indexOf(key);
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/
H A DContactLocaleUtilsTest.java185 Iterator<String> keys = getNameLookupKeys(CHINESE_NAME,
187 verifyKeys(keys, CHINESE_NAME_KEY);
189 keys = getNameLookupKeys(CHINESE_LATIN_MIX_NAME_1, FullNameStyle.CHINESE);
190 verifyKeys(keys, CHINESE_LATIN_MIX_NAME_1_KEY);
192 keys = getNameLookupKeys(CHINESE_LATIN_MIX_NAME_2, FullNameStyle.CHINESE);
193 verifyKeys(keys, CHINESE_LATIN_MIX_NAME_2_KEY);
204 Iterator<String> keys = getNameLookupKeys(CHINESE_NAME,
206 verifyKeys(keys, CHINESE_NAME_KEY);
239 Iterator<String> keys = getNameLookupKeys(CHINESE_NAME,
241 verifyKeys(keys, CHINESE_NAME_KE
[all...]
/packages/apps/Launcher2/src/com/android/launcher2/
H A DPagedViewIconCache.java97 /** Removes all the keys to applications that aren't in the passed in collection */
98 public void retainAllApps(ArrayList<ApplicationInfo> keys) { argument
100 for (ApplicationInfo info : keys) {
105 /** Removes all the keys to shortcuts that aren't in the passed in collection */
106 public void retainAllShortcuts(List<ResolveInfo> keys) { argument
108 for (ResolveInfo info : keys) {
113 /** Removes all the keys to widgets that aren't in the passed in collection */
114 public void retainAllAppWidgets(List<AppWidgetProviderInfo> keys) { argument
116 for (AppWidgetProviderInfo info : keys) {
/packages/apps/Launcher3/src/com/android/launcher3/util/
H A DItemInfoMatcher.java56 public static ItemInfoMatcher ofShortcutKeys(final HashSet<ShortcutKey> keys) { argument
61 keys.contains(ShortcutKey.fromShortcutInfo((ShortcutInfo) info));
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/dialog/old/
H A DAction.java181 * Returns a list of {@link Action} with the specified keys and titles
186 public static ArrayList<Action> createActionsFromArrays(String[] keys, String[] titles) { argument
187 return createActionsFromArrays(keys, titles, NO_CHECK_SET, null);
191 * Returns a list of {@link Action} with the specified keys and titles
196 public static ArrayList<Action> createActionsFromArrays(String[] keys, String[] titles, argument
198 int keysLength = keys.length;
208 builder.key(keys[i]).title(titles[i]).checkSetId(checkSetId);
210 if (checkedItemKey.equals(keys[i])) {
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/emoji/
H A DDynamicGridKeyboard.java35 * This is a Keyboard class where you can add keys dynamically shown in a grid layout
110 // Remove duplicate keys.
133 final ArrayList<Object> keys = new ArrayList<>();
136 keys.add(key.getOutputText());
138 keys.add(key.getCode());
141 final String jsonStr = JsonUtils.listToJsonStr(keys);
171 final List<Object> keys = JsonUtils.jsonStrToList(str);
172 for (final Object o : keys) {
/packages/apps/ManagedProvisioning/tests/src/com/android/managedprovisioning/
H A DTestUtils.java95 Set<String> keys = bundle1.keySet();
96 for (String key : keys) {
/packages/providers/ContactsProvider/src/com/android/providers/contacts/
H A DContactLocaleUtils.java44 * information: labels, name lookup keys.
424 final HashSet<String> keys = new HashSet<String>();
425 keys.add(romajiName);
426 return keys.iterator();
435 * nameLookupKeys: adds additional name lookup keys
458 HashSet<String> keys = new HashSet<String>();
465 // build the lookup keys for itself.
487 keys.add(keyOriginal.toString());
488 keys.add(keyPinyin.toString());
489 keys
[all...]
/packages/apps/Camera2/src/com/android/camera/util/
H A DCaptureDataSerializer.java95 List<CaptureRequest.Key<?>> keys = metadata.getKeys();
99 for (CaptureRequest.Key<?> key : keys) {
118 List<CaptureResult.Key<?>> keys = metadata.getKeys();
122 for (CaptureResult.Key<?> key : keys) {
H A DConcurrentSharedRingBuffer.java444 ArrayList<Long> keys = new ArrayList<Long>();
454 keys.addAll(mElements.keySet());
457 Collections.sort(keys);
462 for (int i = keys.size() - 1; i >= 0; i--) {
463 Pair<Long, E> pinnedCandidate = tryPin(keys.get(i));
/packages/apps/QuickSearchBox/src/com/android/quicksearchbox/
H A DJsonBackedSuggestionExtras.java39 Iterator<String> it = mExtras.keys();
/packages/inputmethods/OpenWnn/src/jp/co/omronsoft/openwnn/
H A DKeyboardView.java58 * A view that renders a virtual {@link Keyboard}. It handles rendering of keys and
70 * For keys that repeat, this is only called once.
78 * For keys that repeat, this is only called once.
86 * @param keyCodes the codes for all the possible alternative keys
89 * will include other characters that may be on the same key or adjacent keys.
472 List<Key> keys = mKeyboard.getKeys();
473 mKeys = keys.toArray(new Key[keys.size()]);
593 * codes for adjacent keys. When disabled, only the primary key code will be
638 * Compute the average distance between adjacent keys (horizontall
[all...]
/packages/apps/DevCamera/src/com/android/devcamera/
H A DCameraDeviceReport.java231 String keys = "";
233 keys += key.getName() + " ";
235 Log.v(TAG, "CameraCharacteristics.getAvailableCaptureRequestKeys() = " + keys);
240 String keys = "";
242 keys += key.getName() + " ";
244 Log.v(TAG, "CameraCharacteristics.getAvailableCaptureResultKeys() = " + keys);
/packages/apps/Gallery2/src/com/android/gallery3d/util/
H A DIdentityCache.java73 public synchronized ArrayList<K> keys() { method in class:IdentityCache

Completed in 634 milliseconds

123