Home
last modified time | relevance | path

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

1234567

/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 …]
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/
DContactLocaleUtilsTest.java182 Iterator<String> keys = getNameLookupKeys(CHINESE_NAME, in testChineseContactLocaleUtils() local
184 verifyKeys(keys, CHINESE_NAME_KEY); in testChineseContactLocaleUtils()
186 keys = getNameLookupKeys(CHINESE_LATIN_MIX_NAME_1, FullNameStyle.CHINESE); in testChineseContactLocaleUtils()
187 verifyKeys(keys, CHINESE_LATIN_MIX_NAME_1_KEY); in testChineseContactLocaleUtils()
189 keys = getNameLookupKeys(CHINESE_LATIN_MIX_NAME_2, FullNameStyle.CHINESE); in testChineseContactLocaleUtils()
190 verifyKeys(keys, CHINESE_LATIN_MIX_NAME_2_KEY); in testChineseContactLocaleUtils()
201 Iterator<String> keys = getNameLookupKeys(CHINESE_NAME, in testPinyinEnabledSecondaryLocale() local
203 verifyKeys(keys, CHINESE_NAME_KEY); in testPinyinEnabledSecondaryLocale()
236 Iterator<String> keys = getNameLookupKeys(CHINESE_NAME, in testChineseStyleNameWithDifferentLocale() local
238 verifyKeys(keys, CHINESE_NAME_KEY); in testChineseStyleNameWithDifferentLocale()
[all …]
/packages/apps/Settings/tests/robotests/src/com/android/settings/core/
DBasePreferenceControllerTest.java180 final List<String> keys = new ArrayList<>(); in updateNonIndexableKeys_controllerUnavailable_shouldAddKey() local
183 mPreferenceController.updateNonIndexableKeys(keys); in updateNonIndexableKeys_controllerUnavailable_shouldAddKey()
185 assertThat(keys).containsExactly(mPreferenceController.getPreferenceKey()); in updateNonIndexableKeys_controllerUnavailable_shouldAddKey()
190 final List<String> keys = new ArrayList<>(); in updateNonIndexableKeys_controllerUnsearchable_shouldAddKey() local
193 mPreferenceController.updateNonIndexableKeys(keys); in updateNonIndexableKeys_controllerUnsearchable_shouldAddKey()
195 assertThat(keys).containsExactly(mPreferenceController.getPreferenceKey()); in updateNonIndexableKeys_controllerUnsearchable_shouldAddKey()
200 final List<String> keys = new ArrayList<>(); in updateNonIndexableKeys_controllerAvailable_shouldNotAddKey() local
203 mPreferenceController.updateNonIndexableKeys(keys); in updateNonIndexableKeys_controllerAvailable_shouldNotAddKey()
205 assertThat(keys).isEmpty(); in updateNonIndexableKeys_controllerAvailable_shouldNotAddKey()
/packages/apps/Settings/src/com/android/settings/dashboard/
DUiBlockerController.java47 public UiBlockerController(@NonNull List<String> keys) { in UiBlockerController() argument
48 this(keys, TIMEOUT_MILLIS); in UiBlockerController()
51 public UiBlockerController(@NonNull List<String> keys, long timeout) { in UiBlockerController() argument
52 mCountDownLatch = new CountDownLatch(keys.size()); in UiBlockerController()
53 mBlockerFinished = keys.isEmpty(); in UiBlockerController()
54 mKeys = new HashSet<>(keys); in UiBlockerController()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/dashboard/
DUiBlockerController.java47 public UiBlockerController(@NonNull List<String> keys) { in UiBlockerController() argument
48 this(keys, TIMEOUT_MILLIS); in UiBlockerController()
51 public UiBlockerController(@NonNull List<String> keys, long timeout) { in UiBlockerController() argument
52 mCountDownLatch = new CountDownLatch(keys.size()); in UiBlockerController()
53 mBlockerFinished = keys.isEmpty(); in UiBlockerController()
54 mKeys = new HashSet<>(keys); in UiBlockerController()
/packages/apps/Settings/tests/robotests/src/com/android/settings/slices/
DSlicesDatabaseAccessorTest.java171 final List<String> keys = mAccessor.getSliceKeys(!isPlatformSlice); in getDescendantUris_platformSlice_doesNotReturnOEMSlice() local
173 assertThat(keys).isEmpty(); in getDescendantUris_platformSlice_doesNotReturnOEMSlice()
181 final List<String> keys = mAccessor.getSliceKeys(!isPlatformSlice); in getDescendantUris_oemSlice_doesNotReturnPlatformSlice() local
183 assertThat(keys).isEmpty(); in getDescendantUris_oemSlice_doesNotReturnPlatformSlice()
191 final List<String> keys = mAccessor.getSliceKeys(isPlatformSlice); in getDescendantUris_oemSlice_returnsOEMUriDescendant() local
193 assertThat(keys).containsExactly(key); in getDescendantUris_oemSlice_returnsOEMUriDescendant()
201 final List<String> keys = mAccessor.getSliceKeys(isPlatformSlice); in getDescendantUris_platformSlice_returnsPlatformUriDescendant() local
203 assertThat(keys).containsExactly(key); in getDescendantUris_platformSlice_returnsPlatformUriDescendant()
222 final List<String> keys = accessor.getSliceKeys(true); in getSliceKeys_indexesDatabase() local
224 assertThat(keys).isNotEmpty(); in getSliceKeys_indexesDatabase()
/packages/apps/Settings/tests/robotests/src/com/android/settings/notification/
DSoundSettingsTest.java65 final List<String> keys = XmlTestUtils.getKeysFromPreferenceXml(context, xmlId); in getNonIndexableKeys_existInXmlLayout() local
66 keys.addAll(XmlTestUtils.getKeysFromPreferenceXml(context, R.xml.zen_mode_settings)); in getNonIndexableKeys_existInXmlLayout()
68 keys.add("alarm_volume"); in getNonIndexableKeys_existInXmlLayout()
69 keys.add("ring_volume"); in getNonIndexableKeys_existInXmlLayout()
70 keys.add("notification_volume"); in getNonIndexableKeys_existInXmlLayout()
72 assertThat(keys).containsAllIn(niks); in getNonIndexableKeys_existInXmlLayout()
DSettingPrefControllerTest.java130 final List<String> keys = new ArrayList<>(); in updateNonIndexableKeys_applicable_shouldNotUpdate() local
132 mController.updateNonIndexableKeys(keys); in updateNonIndexableKeys_applicable_shouldNotUpdate()
134 assertThat(keys).isEmpty(); in updateNonIndexableKeys_applicable_shouldNotUpdate()
140 final List<String> keys = new ArrayList<>(); in updateNonIndexableKeys_notApplicable_shouldUpdate() local
142 mController.updateNonIndexableKeys(keys); in updateNonIndexableKeys_notApplicable_shouldUpdate()
144 assertThat(keys).isNotEmpty(); in updateNonIndexableKeys_notApplicable_shouldUpdate()
/packages/apps/DocumentsUI/tests/common/com/android/documentsui/testing/
DTestEvents.java170 public Builder pressKey(@Key int... keys) { in pressKey() argument
171 for (int key : keys) { in pressKey()
180 public Builder releaseKey(@Button int... keys) { in releaseKey() argument
181 for (int key : keys) { in releaseKey()
258 int keys = 0; in build() local
260 keys |= key; in build()
270 keys, in build()
/packages/apps/Car/LatinIME/src/com/android/inputmethod/latin/car/
DKeyboardView.java537 List<Key> keys = mKeyboard.getKeys(); in setKeyboard() local
538 mKeys = keys.toArray(new Key[keys.size()]); in setKeyboard()
685 final Key[] keys = mKeys; in computeProximityThreshold()
686 if (keys == null) return; in computeProximityThreshold()
687 int length = keys.length; in computeProximityThreshold()
690 Key key = keys[i]; in computeProximityThreshold()
742 final Key[] keys = mKeys; in onBufferDraw() local
766 if (mLastSentIndex != NOT_A_KEY && mLastSentIndex < keys.length) { in onBufferDraw()
767 center = keys[mLastSentIndex].x + keys[mLastSentIndex].width / 2; in onBufferDraw()
773 final int keyCount = keys.length; in onBufferDraw()
[all …]
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/datausage/
DDataUsageSummary.java365 List<String> keys = super.getNonIndexableKeys(context);
368 keys.add(KEY_MOBILE_USAGE_TITLE);
369 keys.add(KEY_MOBILE_DATA_USAGE_TOGGLE);
370 keys.add(KEY_MOBILE_DATA_USAGE);
374 keys.add(KEY_WIFI_DATA_USAGE);
378 keys.add(KEY_WIFI_USAGE_TITLE);
381 keys.add(KEY_RESTRICT_BACKGROUND);
383 keys.add(KEY_MOBILE_BILLING_CYCLE);
385 return keys;
/packages/apps/Settings/tests/robotests/src/com/android/settings/system/
DSystemUpdatePreferenceControllerTest.java88 final List<String> keys = new ArrayList<>(); in updateNonIndexable_ifAvailable_shouldNotUpdate() local
91 mController.updateNonIndexableKeys(keys); in updateNonIndexable_ifAvailable_shouldNotUpdate()
93 assertThat(keys).isEmpty(); in updateNonIndexable_ifAvailable_shouldNotUpdate()
99 final List<String> keys = new ArrayList<>(); in updateNonIndexable_ifNotAvailable_shouldUpdate() local
101 mController.updateNonIndexableKeys(keys); in updateNonIndexable_ifNotAvailable_shouldUpdate()
103 assertThat(keys).hasSize(1); in updateNonIndexable_ifNotAvailable_shouldUpdate()
/packages/apps/Settings/src/com/android/settings/wifi/tether/
DWifiTetherSettings.java246 final List<String> keys = super.getNonIndexableKeys(context);
249 keys.add(KEY_WIFI_TETHER_NETWORK_NAME);
250 keys.add(KEY_WIFI_TETHER_NETWORK_PASSWORD);
251 keys.add(KEY_WIFI_TETHER_AUTO_OFF);
252 keys.add(KEY_WIFI_TETHER_NETWORK_AP_BAND);
256 keys.add(KEY_WIFI_TETHER_SCREEN);
257 return keys;
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/wifi/tether/
DWifiTetherSettings.java246 final List<String> keys = super.getNonIndexableKeys(context);
249 keys.add(KEY_WIFI_TETHER_NETWORK_NAME);
250 keys.add(KEY_WIFI_TETHER_NETWORK_PASSWORD);
251 keys.add(KEY_WIFI_TETHER_AUTO_OFF);
252 keys.add(KEY_WIFI_TETHER_NETWORK_AP_BAND);
256 keys.add(KEY_WIFI_TETHER_SCREEN);
257 return keys;
/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()
/packages/apps/Settings/tests/robotests/src/com/android/settings/nfc/
DAndroidBeamPreferenceControllerTest.java156 final List<String> keys = new ArrayList<>(); in updateNonIndexableKeys_available_shouldNotUpdate() local
158 mAndroidBeamController.updateNonIndexableKeys(keys); in updateNonIndexableKeys_available_shouldNotUpdate()
160 assertThat(keys).isEmpty(); in updateNonIndexableKeys_available_shouldNotUpdate()
166 final List<String> keys = new ArrayList<>(); in updateNonIndexableKeys_notAvailable_shouldUpdate() local
168 mAndroidBeamController.updateNonIndexableKeys(keys); in updateNonIndexableKeys_notAvailable_shouldUpdate()
170 assertThat(keys).hasSize(1); in updateNonIndexableKeys_notAvailable_shouldUpdate()
DNfcPreferenceControllerTest.java150 final List<String> keys = new ArrayList<>(); in updateNonIndexableKeys_available_shouldNotUpdate() local
152 mNfcController.updateNonIndexableKeys(keys); in updateNonIndexableKeys_available_shouldNotUpdate()
154 assertThat(keys).isEmpty(); in updateNonIndexableKeys_available_shouldNotUpdate()
160 final List<String> keys = new ArrayList<>(); in updateNonIndexableKeys_notAvailable_shouldUpdate() local
162 mNfcController.updateNonIndexableKeys(keys); in updateNonIndexableKeys_notAvailable_shouldUpdate()
164 assertThat(keys).hasSize(1); in updateNonIndexableKeys_notAvailable_shouldUpdate()
/packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/common/
DPersistableBundlable.java45 List<String> keys = new ArrayList(toPersistableBundle().keySet()); in hashCode() local
46 Collections.sort(keys); in hashCode()
47 return TextUtils.join(",", keys).hashCode(); in hashCode()
83 Set<String> keys = obj1.keySet(); in isPersistableBundleEquals() local
84 for (String key : keys) { in isPersistableBundleEquals()
/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()
/packages/apps/Settings/tests/robotests/src/com/android/settings/wifi/
DConfigureWifiSettingsTest.java41 final List<String> keys = XmlTestUtils.getKeysFromPreferenceXml(mContext, xmlId); in testNonIndexableKeys_existInXmlLayout() local
43 assertThat(keys).containsAllIn(niks); in testNonIndexableKeys_existInXmlLayout()
53 final List<String> keys = XmlTestUtils.getKeysFromPreferenceXml(mContext, xmlId); in testNonIndexableKeys_ifPageDisabled_shouldNotIndexResource() local
54 assertThat(keys).isNotNull(); in testNonIndexableKeys_ifPageDisabled_shouldNotIndexResource()
55 assertThat(niks).containsAllIn(keys); in testNonIndexableKeys_ifPageDisabled_shouldNotIndexResource()
/packages/providers/ContactsProvider/src/com/android/providers/contacts/
DContactLocaleUtils.java424 final ArraySet<String> keys = new ArraySet<>(); in getRomajiNameLookupKeys() local
425 keys.add(romajiName); in getRomajiNameLookupKeys()
426 return keys.iterator(); in getRomajiNameLookupKeys()
471 ArraySet<String> keys = new ArraySet<>(); in getPinyinNameLookupKeys() local
500 keys.add(keyOriginal.toString()); in getPinyinNameLookupKeys()
501 keys.add(keyPinyin.toString()); in getPinyinNameLookupKeys()
502 keys.add(keyInitial.toString()); in getPinyinNameLookupKeys()
504 return keys.iterator(); in getPinyinNameLookupKeys()
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/dialog/old/
DAction.java177 public static ArrayList<Action> createActionsFromArrays(String[] keys, String[] titles) { in createActionsFromArrays() argument
178 return createActionsFromArrays(keys, titles, NO_CHECK_SET, null); in createActionsFromArrays()
187 public static ArrayList<Action> createActionsFromArrays(String[] keys, String[] titles, in createActionsFromArrays() argument
189 int keysLength = keys.length; in createActionsFromArrays()
199 builder.key(keys[i]).title(titles[i]).checkSetId(checkSetId); in createActionsFromArrays()
201 if (checkedItemKey.equals(keys[i])) { in createActionsFromArrays()
/packages/apps/Settings/src/com/android/settings/notification/
DWorkSoundPreferenceController.java162 public void updateNonIndexableKeys(List<String> keys) { in updateNonIndexableKeys() argument
166 keys.add(KEY_WORK_CATEGORY); in updateNonIndexableKeys()
167 keys.add(KEY_WORK_USE_PERSONAL_SOUNDS); in updateNonIndexableKeys()
168 keys.add(KEY_WORK_NOTIFICATION_RINGTONE); in updateNonIndexableKeys()
169 keys.add(KEY_WORK_PHONE_RINGTONE); in updateNonIndexableKeys()
170 keys.add(KEY_WORK_ALARM_RINGTONE); in updateNonIndexableKeys()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/notification/
DWorkSoundPreferenceController.java162 public void updateNonIndexableKeys(List<String> keys) { in updateNonIndexableKeys() argument
166 keys.add(KEY_WORK_CATEGORY); in updateNonIndexableKeys()
167 keys.add(KEY_WORK_USE_PERSONAL_SOUNDS); in updateNonIndexableKeys()
168 keys.add(KEY_WORK_NOTIFICATION_RINGTONE); in updateNonIndexableKeys()
169 keys.add(KEY_WORK_PHONE_RINGTONE); in updateNonIndexableKeys()
170 keys.add(KEY_WORK_ALARM_RINGTONE); in updateNonIndexableKeys()
/packages/apps/Settings/tests/robotests/src/com/android/settings/search/
DFakeSettingsFragment.java111 List<String> keys = super.getNonIndexableKeys(context);
112 keys.add("pref_key_1");
113 keys.add("pref_key_3");
114 return keys;

1234567