Home
last modified time | relevance | path

Searched refs:keys (Results 1 – 25 of 60) sorted by relevance

123

/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/keyboard/layout/expected/
DExpectedKeyboardBuilder.java68 private static ExpectedKey[] replaceKeyAt(final ExpectedKey[] keys, final int columnIndex, in replaceKeyAt() argument
72 keys[columnIndex] = replacingKeys[0]; in replaceKeyAt()
73 return keys; in replaceKeyAt()
75 final int newLength = keys.length - 1 + replacingKeys.length; in replaceKeyAt()
77 final ExpectedKey[] newKeys = Arrays.copyOf(keys, newLength); in replaceKeyAt()
78 System.arraycopy(keys, columnIndex + 1, newKeys, columnIndex + replacingKeys.length, in replaceKeyAt()
79 keys.length - 1 - columnIndex); in replaceKeyAt()
91 ExpectedKey[] keys = getRowAt(row); in replaceKeyOf() local
92 for (int columnIndex = 0; columnIndex < keys.length; /* nothing */) { in replaceKeyOf()
93 final ExpectedKey currentKey = keys[columnIndex]; in replaceKeyOf()
[all …]
DActualKeyboardBuilder.java35 private static ArrayList<Key> filterOutSpacer(final List<Key> keys) { in filterOutSpacer() argument
37 for (final Key key : keys) { in filterOutSpacer()
162 public static String toString(final Key[] keys) { in toString() argument
163 return KeyStringizer.STRINGIZER.join(keys); in toString()
DAbstractLayoutBase.java102 public static ExpectedKey[] joinKeys(final Object ... keys) { in joinKeys() argument
103 return ExpectedKeyboardBuilder.joinKeys(keys); in joinKeys()
/packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/
DIntentStore.java67 public IntentStore setStringKeys(String[] keys) { in setStringKeys() argument
68 mStringKeys = (keys == null) ? new String[0] : keys; in setStringKeys()
72 public IntentStore setLongKeys(String[] keys) { in setLongKeys() argument
73 mLongKeys = (keys == null) ? new String[0] : keys; in setLongKeys()
77 public IntentStore setIntKeys(String[] keys) { in setIntKeys() argument
78 mIntKeys = (keys == null) ? new String[0] : keys; in setIntKeys()
82 public IntentStore setBooleanKeys(String[] keys) { in setBooleanKeys() argument
83 mBooleanKeys = (keys == null) ? new String[0] : keys; in setBooleanKeys()
87 public IntentStore setAccountKeys(String[] keys) { in setAccountKeys() argument
88 mAccountKeys = (keys == null) ? new String[0] : keys; in setAccountKeys()
[all …]
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/
DContactLocaleUtilsTest.java221 Iterator<String> keys = getNameLookupKeys(CHINESE_NAME, in testChineseContactLocaleUtils() local
223 verifyKeys(keys, CHINESE_NAME_KEY); in testChineseContactLocaleUtils()
225 keys = getNameLookupKeys(CHINESE_LATIN_MIX_NAME_1, FullNameStyle.CHINESE); in testChineseContactLocaleUtils()
226 verifyKeys(keys, CHINESE_LATIN_MIX_NAME_1_KEY); in testChineseContactLocaleUtils()
228 keys = getNameLookupKeys(CHINESE_LATIN_MIX_NAME_2, FullNameStyle.CHINESE); in testChineseContactLocaleUtils()
229 verifyKeys(keys, CHINESE_LATIN_MIX_NAME_2_KEY); in testChineseContactLocaleUtils()
248 Iterator<String> keys = getNameLookupKeys(CHINESE_NAME, in testPinyinEnabledSecondaryLocale() local
250 verifyKeys(keys, CHINESE_NAME_KEY); in testPinyinEnabledSecondaryLocale()
278 Iterator<String> keys = getNameLookupKeys(CHINESE_NAME, in testChineseStyleNameWithDifferentLocale() local
280 verifyKeys(keys, CHINESE_NAME_KEY); in testChineseStyleNameWithDifferentLocale()
[all …]
/packages/apps/Settings/src/com/android/settings/
DDeviceInfoSettings.java435 final List<String> keys = new ArrayList<String>();
437 keys.add(KEY_SELINUX_STATUS);
440 keys.add(KEY_SAFETY_LEGAL);
443 keys.add(KEY_EQUIPMENT_ID);
447 keys.add((KEY_BASEBAND_VERSION));
451 keys.add(KEY_DEVICE_FEEDBACK);
454 keys.add(KEY_TERMS);
457 keys.add(KEY_LICENSE);
460 keys.add(KEY_COPYRIGHT);
463 keys.add(KEY_WEBVIEW_LICENSE);
[all …]
DSecuritySettings.java829 final List<String> keys = new ArrayList<String>(); in getNonIndexableKeys() local
839 keys.add(KEY_VISIBLE_PATTERN); in getNonIndexableKeys()
845 keys.add(KEY_SIM_LOCK); in getNonIndexableKeys()
850 keys.add(KEY_CREDENTIALS_MANAGER); in getNonIndexableKeys()
855 keys.add(KEY_TRUST_AGENT); in getNonIndexableKeys()
856 keys.add(KEY_MANAGE_TRUST_AGENTS); in getNonIndexableKeys()
859 return keys; in getNonIndexableKeys()
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/dialog/old/
DAction.java189 public static ArrayList<Action> createActionsFromArrays(String[] keys, String[] titles) { in createActionsFromArrays() argument
190 return createActionsFromArrays(keys, titles, NO_CHECK_SET, null); in createActionsFromArrays()
200 String[] keys, String[] titles, String checkedItemKey) { in createActionsFromArrays() argument
201 return createActionsFromArrays(keys, titles, DEFAULT_CHECK_SET_ID, checkedItemKey); in createActionsFromArrays()
210 public static ArrayList<Action> createActionsFromArrays(String[] keys, String[] titles, in createActionsFromArrays() argument
212 return createActionsFromArrays(keys, titles, checkSetId, null); in createActionsFromArrays()
221 public static ArrayList<Action> createActionsFromArrays(String[] keys, String[] titles, in createActionsFromArrays() argument
223 int keysLength = keys.length; in createActionsFromArrays()
233 builder.key(keys[i]).title(titles[i]).checkSetId(checkSetId); in createActionsFromArrays()
235 if (checkedItemKey.equals(keys[i])) { in createActionsFromArrays()
/packages/inputmethods/OpenWnn/src/jp/co/omronsoft/openwnn/
DKeyboardView.java472 List<Key> keys = mKeyboard.getKeys(); in setKeyboard() local
473 mKeys = keys.toArray(new Key[keys.size()]); in setKeyboard()
645 final Key[] keys = mKeys; in computeProximityThreshold()
646 if (keys == null) return; in computeProximityThreshold()
647 int length = keys.length; in computeProximityThreshold()
650 Key key = keys[i]; in computeProximityThreshold()
696 final Key[] keys = mKeys; in onBufferDraw() local
710 final int keyCount = keys.length; in onBufferDraw()
712 final Key key = keys[i]; in onBufferDraw()
800 final Key[] keys = mKeys; in getKeyIndices() local
[all …]
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/system/
DDeveloperOptionsActivity.java714 String[] keys = null; in getAnimationScaleActions() local
719 keys = getResources().getStringArray(R.array.animator_duration_scale_values); in getAnimationScaleActions()
723 keys = getResources().getStringArray(R.array.transition_animation_scale_values); in getAnimationScaleActions()
727 keys = getResources().getStringArray(R.array.window_animation_scale_values); in getAnimationScaleActions()
735 for (int i = 0; i < keys.length; i++) { in getAnimationScaleActions()
737 float keyScaleValue = Float.parseFloat(keys[i]); in getAnimationScaleActions()
738 builder.key(keys[i]) in getAnimationScaleActions()
816 String[] keys = getResources().getStringArray(R.array.hdcp_checking_values); in getHdcpStatus() local
818 for (int keyIndex = 0; keyIndex < keys.length; ++keyIndex) { in getHdcpStatus()
819 if (keys[keyIndex].equals(value)) { in getHdcpStatus()
[all …]
/packages/providers/ContactsProvider/src/com/android/providers/contacts/
DContactLocaleUtils.java339 final HashSet<String> keys = new HashSet<String>(); in getRomajiNameLookupKeys() local
340 keys.add(romajiName); in getRomajiNameLookupKeys()
341 return keys.iterator(); in getRomajiNameLookupKeys()
373 HashSet<String> keys = new HashSet<String>(); in getPinyinNameLookupKeys() local
402 keys.add(keyOriginal.toString()); in getPinyinNameLookupKeys()
403 keys.add(keyPinyin.toString()); in getPinyinNameLookupKeys()
404 keys.add(keyInitial.toString()); in getPinyinNameLookupKeys()
406 return keys.iterator(); in getPinyinNameLookupKeys()
DDataRowHandler.java357 public boolean areAllEmpty(ContentValues values, String[] keys) { in areAllEmpty() argument
358 for (String key : keys) { in areAllEmpty()
369 public boolean areAnySpecified(ContentValues values, String[] keys) { in areAnySpecified() argument
370 for (String key : keys) { in areAnySpecified()
/packages/apps/Launcher2/src/com/android/launcher2/
DPagedViewIconCache.java98 public void retainAllApps(ArrayList<ApplicationInfo> keys) { in retainAllApps() argument
100 for (ApplicationInfo info : keys) { in retainAllApps()
106 public void retainAllShortcuts(List<ResolveInfo> keys) { in retainAllShortcuts() argument
108 for (ResolveInfo info : keys) { in retainAllShortcuts()
114 public void retainAllAppWidgets(List<AppWidgetProviderInfo> keys) { in retainAllAppWidgets() argument
116 for (AppWidgetProviderInfo info : keys) { in retainAllAppWidgets()
/packages/apps/LegacyCamera/src/com/android/camera/ui/
DIndicatorControl.java89 protected void addControls(String[] keys, String[] otherSettingKeys) { in addControls() argument
90 if (keys != null) { in addControls()
91 for (int i = 0; i < keys.length; i++) { in addControls()
93 (IconListPreference) mPreferenceGroup.findPreference(keys[i]); in addControls()
133 int resId, String[] keys) { in addOtherSettingIndicator() argument
135 context, resId, mPreferenceGroup, keys); in addOtherSettingIndicator()
DSecondLevelIndicatorControlBar.java60 String[] keys, String[] otherSettingKeys) { in initialize() argument
64 addControls(keys, otherSettingKeys); in initialize()
148 int resId, String[] keys) { in addOtherSettingIndicator() argument
150 super.addOtherSettingIndicator(context, resId, keys); in addOtherSettingIndicator()
DOtherSettingsPopup.java96 public void initialize(PreferenceGroup group, String[] keys) { in initialize() argument
98 for (int i = 0; i < keys.length; ++i) { in initialize()
99 ListPreference pref = group.findPreference(keys[i]); in initialize()
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/emoji/
DDynamicGridKeyboard.java133 final ArrayList<Object> keys = new ArrayList<>(); in saveRecentKeys() local
136 keys.add(key.getOutputText()); in saveRecentKeys()
138 keys.add(key.getCode()); in saveRecentKeys()
141 final String jsonStr = JsonUtils.listToJsonStr(keys); in saveRecentKeys()
171 final List<Object> keys = JsonUtils.jsonStrToList(str); in loadRecentKeys() local
172 for (final Object o : keys) { in loadRecentKeys()
DEmojiCategory.java343 final ArrayList<Key> keys = new ArrayList<>(inKeys); in sortKeysIntoPages() local
344 Collections.sort(keys, EMOJI_KEY_COMPARATOR); in sortKeysIntoPages()
345 final int pageCount = (keys.size() - 1) / maxPageCount + 1; in sortKeysIntoPages()
347 for (int i = 0; i < keys.size(); ++i) { in sortKeysIntoPages()
348 retval[i / maxPageCount][i % maxPageCount] = keys.get(i); in sortKeysIntoPages()
/packages/apps/Camera2/src/com/android/camera/util/
DConcurrentSharedRingBuffer.java394 ArrayList<Long> keys = new ArrayList<Long>(); in tryPinGreatestSelected() local
404 keys.addAll(mElements.keySet()); in tryPinGreatestSelected()
407 Collections.sort(keys); in tryPinGreatestSelected()
412 for (int i = keys.size() - 1; i >= 0; i--) { in tryPinGreatestSelected()
413 Pair<Long, E> pinnedCandidate = tryPin(keys.get(i)); in tryPinGreatestSelected()
DCaptureDataSerializer.java94 List<CaptureRequest.Key<?>> keys = metadata.getKeys(); in dumpMetadata()
98 for (CaptureRequest.Key<?> key : keys) { in dumpMetadata()
117 List<CaptureResult.Key<?>> keys = metadata.getKeys(); in dumpMetadata()
121 for (CaptureResult.Key<?> key : keys) { in dumpMetadata()
/packages/apps/ContactsCommon/src/com/android/contacts/common/model/
DValuesDelta.java287 final HashSet<String> keys = Sets.newHashSet(); in keySet() local
291 keys.add(entry.getKey()); in keySet()
297 keys.add(entry.getKey()); in keySet()
301 return keys; in keySet()
DContactLoader.java420 final Iterator keys = items.keys(); in loadEncodedContactEntity() local
421 while (keys.hasNext()) { in loadEncodedContactEntity()
422 final String mimetype = (String) keys.next(); in loadEncodedContactEntity()
449 final Iterator iterator = item.keys(); in processOneRecord()
/packages/apps/Camera/src/com/android/camera/ui/
DMoreSettingPopup.java121 public void initialize(PreferenceGroup group, String[] keys) { in initialize() argument
123 for (int i = 0; i < keys.length; ++i) { in initialize()
124 ListPreference pref = group.findPreference(keys[i]); in initialize()
/packages/experimental/LoaderApp/src/com/android/loaderapp/model/
DEntityDelta.java675 final HashSet<String> keys = Sets.newHashSet(); in keySet() local
679 keys.add(entry.getKey()); in keySet()
685 keys.add(entry.getKey()); in keySet()
689 return keys; in keySet()
/packages/apps/UnifiedEmail/src/com/android/mail/utils/
DNotificationUtils.java285 final Set<NotificationKey> keys = keySet(); in saveNotificationMap() local
286 for (NotificationKey key : keys) { in saveNotificationMap()
379 final Set<NotificationKey> keys = notificationMap.keySet(); in resendNotifications() local
380 for (NotificationKey notification : keys) { in resendNotifications()
421 Set<NotificationKey> keys = notificationMap.keySet(); in validateAccountNotifications() local
427 for (NotificationKey notification : keys) { in validateAccountNotifications()
435 for (NotificationKey notification : keys) { in validateAccountNotifications()

123