Searched refs:keys (Results 1 - 25 of 55) 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.java35 private static ArrayList<Key> filterOutSpacer(final List<Key> keys) { argument
37 for (final Key key : keys) {
47 * Create the keyboard that consists of the array of rows of the actual keyboard's keys.
48 * @param sortedKeys keys list of the actual keyboard that is sorted from top-left to
56 // Grouping keys into rows.
159 * @param keys the keyboard row to be converted to string.
160 * @return the human readable representation of <code>keys</code>.
162 public static String toString(final Key[] keys) { argument
163 return KeyStringizer.STRINGIZER.join(keys);
H A DAbstractLayoutBase.java57 // Helper method to create an {@link ExpectedKey} object that has new "more keys".
64 // The additional more keys can be defined independently from other more keys. The position of
65 // the additional more keys in the long press popup keyboard can be controlled by specifying
66 // special marker "%" in the usual more keys definitions.
102 public static ExpectedKey[] joinKeys(final Object ... keys) { argument
103 return ExpectedKeyboardBuilder.joinKeys(keys);
/packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/
H A DIntentStore.java63 public IntentStore setStringKeys(String[] keys) { argument
64 mStringKeys = (keys == null) ? new String[0] : keys;
68 public IntentStore setLongKeys(String[] keys) { argument
69 mLongKeys = (keys == null) ? new String[0] : keys;
73 public IntentStore setIntKeys(String[] keys) { argument
74 mIntKeys = (keys == null) ? new String[0] : keys;
78 public IntentStore setBooleanKeys(String[] keys) { argument
83 setPersistableBundleKeys(String[] keys) argument
[all...]
/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/OMA-DM/engine/dmlib/tool-src/dmt_gen_tool/com/mot/dm/tool/
H A DDiff.java80 Object[] keys = map1.keySet().toArray();
82 for (int i = 0; i < keys.length; i++) {
83 String nodePath = (String) keys[i];
99 keys = map2.keySet().toArray();
100 for (int i = 0; i < keys.length; i++) {
101 presentInSecondOnly.add(keys[i]);
147 Object[] keys = parms1.keySet().toArray();
148 for (int i = 0; i < keys.length; i++) {
149 String name = (String) keys[i];
173 keys
[all...]
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/
H A DContactLocaleUtilsTest.java221 Iterator<String> keys = getNameLookupKeys(CHINESE_NAME,
223 verifyKeys(keys, CHINESE_NAME_KEY);
225 keys = getNameLookupKeys(CHINESE_LATIN_MIX_NAME_1, FullNameStyle.CHINESE);
226 verifyKeys(keys, CHINESE_LATIN_MIX_NAME_1_KEY);
228 keys = getNameLookupKeys(CHINESE_LATIN_MIX_NAME_2, FullNameStyle.CHINESE);
229 verifyKeys(keys, CHINESE_LATIN_MIX_NAME_2_KEY);
248 Iterator<String> keys = getNameLookupKeys(CHINESE_NAME,
250 verifyKeys(keys, CHINESE_NAME_KEY);
278 Iterator<String> keys = getNameLookupKeys(CHINESE_NAME,
280 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/TvSettings/Settings/src/com/android/tv/settings/dialog/old/
H A DAction.java184 * Returns a list of {@link Action} with the specified keys and titles
189 public static ArrayList<Action> createActionsFromArrays(String[] keys, String[] titles) { argument
190 return createActionsFromArrays(keys, titles, NO_CHECK_SET, null);
194 * Returns a list of {@link Action} with the specified keys and titles
200 String[] keys, String[] titles, String checkedItemKey) {
201 return createActionsFromArrays(keys, titles, DEFAULT_CHECK_SET_ID, checkedItemKey);
205 * Returns a list of {@link Action} with the specified keys and titles
210 public static ArrayList<Action> createActionsFromArrays(String[] keys, String[] titles, argument
212 return createActionsFromArrays(keys, titles, checkSetId, null);
216 * Returns a list of {@link Action} with the specified keys an
199 createActionsFromArrays( String[] keys, String[] titles, String checkedItemKey) argument
221 createActionsFromArrays(String[] keys, String[] titles, int checkSetId, String checkedItemKey) argument
[all...]
/packages/apps/Settings/src/com/android/settings/
H A DDeviceInfoSettings.java424 final List<String> keys = new ArrayList<String>();
426 keys.add(KEY_SELINUX_STATUS);
429 keys.add(KEY_SAFETY_LEGAL);
432 keys.add(KEY_EQUIPMENT_ID);
436 keys.add((KEY_BASEBAND_VERSION));
440 keys.add(KEY_DEVICE_FEEDBACK);
443 keys.add(KEY_TERMS);
446 keys.add(KEY_LICENSE);
449 keys.add(KEY_COPYRIGHT);
452 keys
[all...]
/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) {
H A DEmojiCategory.java343 final ArrayList<Key> keys = new ArrayList<>(inKeys);
344 Collections.sort(keys, EMOJI_KEY_COMPARATOR);
345 final int pageCount = (keys.size() - 1) / maxPageCount + 1;
347 for (int i = 0; i < keys.size(); ++i) {
348 retval[i / maxPageCount][i % maxPageCount] = keys.get(i);
/packages/apps/Camera2/src/com/android/camera/util/
H A DConcurrentSharedRingBuffer.java394 ArrayList<Long> keys = new ArrayList<Long>();
404 keys.addAll(mElements.keySet());
407 Collections.sort(keys);
412 for (int i = keys.size() - 1; i >= 0; i--) {
413 Pair<Long, E> pinnedCandidate = tryPin(keys.get(i));
H A DCaptureDataSerializer.java94 List<CaptureRequest.Key<?>> keys = metadata.getKeys();
98 for (CaptureRequest.Key<?> key : keys) {
117 List<CaptureResult.Key<?>> keys = metadata.getKeys();
121 for (CaptureResult.Key<?> key : keys) {
/packages/providers/ContactsProvider/src/com/android/providers/contacts/
H A DContactLocaleUtils.java45 * information: labels, name lookup keys.
339 final HashSet<String> keys = new HashSet<String>();
340 keys.add(romajiName);
341 return keys.iterator();
350 * nameLookupKeys: adds additional name lookup keys
373 HashSet<String> keys = new HashSet<String>();
380 // build the lookup keys for itself.
402 keys.add(keyOriginal.toString());
403 keys.add(keyPinyin.toString());
404 keys
[all...]
/packages/apps/Launcher3/src/com/android/launcher3/
H A DLauncherBackupHelper.java169 * <P>The journal is a timestamp and a list of keys that were saved as of that time.
193 ArrayList<Key> keys = new ArrayList<Key>();
196 backupFavorites(in, data, out, keys);
197 backupScreens(in, data, out, keys);
198 backupIcons(in, data, out, keys);
199 backupWidgets(in, data, out, keys);
203 out.key = keys.toArray(new BackupProtos.Key[keys.size()]);
290 * @param keys keys t
293 backupFavorites(Journal in, BackupDataOutput data, Journal out, ArrayList<Key> keys) argument
342 restoreFavorite(Key key, byte[] buffer, int dataSize, ArrayList<Key> keys) argument
371 backupScreens(Journal in, BackupDataOutput data, Journal out, ArrayList<Key> keys) argument
420 restoreScreen(Key key, byte[] buffer, int dataSize, ArrayList<Key> keys) argument
450 backupIcons(Journal in, BackupDataOutput data, Journal out, ArrayList<Key> keys) argument
541 restoreIcon(Key key, byte[] buffer, int dataSize, ArrayList<Key> keys) argument
586 backupWidgets(Journal in, BackupDataOutput data, Journal out, ArrayList<Key> keys) argument
671 restoreWidget(Key key, byte[] buffer, int dataSize, ArrayList<Key> keys) argument
[all...]
/packages/apps/QuickSearchBox/src/com/android/quicksearchbox/
H A DJsonBackedSuggestionExtras.java39 Iterator<String> it = mExtras.keys();
/packages/apps/UnifiedEmail/src/com/android/mail/ui/
H A DDividedImageCanvas.java114 * @param keys
116 public void setDivisionIds(List<Object> keys) { argument
117 if (keys.size() > MAX_DIVISIONS) {
118 throw new IllegalArgumentException("too many divisionIds: " + keys);
121 boolean needClear = getDivisionCount() != keys.size();
123 for (int i = 0; i < keys.size(); i++) {
124 String divisionId = transformKeyToDivisionId(keys.get(i));
137 for (Object key : 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/TvSettings/Settings/src/com/android/tv/settings/system/
H A DDeveloperOptionsActivity.java714 String[] keys = null;
719 keys = getResources().getStringArray(R.array.animator_duration_scale_values);
723 keys = getResources().getStringArray(R.array.transition_animation_scale_values);
727 keys = getResources().getStringArray(R.array.window_animation_scale_values);
735 for (int i = 0; i < keys.length; i++) {
737 float keyScaleValue = Float.parseFloat(keys[i]);
738 builder.key(keys[i])
816 String[] keys = getResources().getStringArray(R.array.hdcp_checking_values);
818 for (int keyIndex = 0; keyIndex < keys.length; ++keyIndex) {
819 if (keys[keyInde
[all...]
/packages/apps/Gallery2/src/com/android/gallery3d/util/
H A DIdentityCache.java73 public synchronized ArrayList<K> keys() { method in class:IdentityCache

Completed in 568 milliseconds

123