Home
last modified time | relevance | path

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

12345678

/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/services/Car/service/src/com/android/car/
DFastPairUtils.java46 List<FastPairUtils.AccountKey> keys = new ArrayList<>(); in getAccountKeyAdvertisement() local
48 keys = readStoredAccountKeys(context); in getAccountKeyAdvertisement()
51 byte[] bloomResults = bloom(keys, salt[0]); in getAccountKeyAdvertisement()
66 static byte[] bloom(List<AccountKey> keys, byte salt) { in bloom() argument
67 int size = (int) 1.2 * keys.size() + 3; in bloom()
70 for (AccountKey key : keys) { in bloom()
88 List<AccountKey> keys = new ArrayList<>(); in readStoredAccountKeys() local
96 keys.add(new FastPairUtils.AccountKey(readAccountKey)); in readStoredAccountKeys()
102 Log.d(TAG, "Read " + keys.size() + "/" + accountKeyCount + " keys."); in readStoredAccountKeys()
103 return keys; in readStoredAccountKeys()
[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.java181 final List<String> keys = new ArrayList<>(); in updateNonIndexableKeys_controllerUnavailable_shouldAddKey() local
184 mPreferenceController.updateNonIndexableKeys(keys); in updateNonIndexableKeys_controllerUnavailable_shouldAddKey()
186 assertThat(keys).containsExactly(mPreferenceController.getPreferenceKey()); in updateNonIndexableKeys_controllerUnavailable_shouldAddKey()
191 final List<String> keys = new ArrayList<>(); in updateNonIndexableKeys_controllerUnsearchable_shouldAddKey() local
194 mPreferenceController.updateNonIndexableKeys(keys); in updateNonIndexableKeys_controllerUnsearchable_shouldAddKey()
196 assertThat(keys).containsExactly(mPreferenceController.getPreferenceKey()); in updateNonIndexableKeys_controllerUnsearchable_shouldAddKey()
201 final List<String> keys = new ArrayList<>(); in updateNonIndexableKeys_controllerAvailable_shouldNotAddKey() local
204 mPreferenceController.updateNonIndexableKeys(keys); in updateNonIndexableKeys_controllerAvailable_shouldNotAddKey()
206 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/apps/Settings/tests/robotests/src/com/android/settings/notification/
DSoundSettingsTest.java66 final List<String> keys = XmlTestUtils.getKeysFromPreferenceXml(context, xmlId); in getNonIndexableKeys_existInXmlLayout() local
67 keys.addAll(XmlTestUtils.getKeysFromPreferenceXml(context, R.xml.zen_mode_settings)); in getNonIndexableKeys_existInXmlLayout()
69 keys.add("alarm_volume"); in getNonIndexableKeys_existInXmlLayout()
70 keys.add("ring_volume"); in getNonIndexableKeys_existInXmlLayout()
71 keys.add("notification_volume"); in getNonIndexableKeys_existInXmlLayout()
73 assertThat(keys).containsAtLeastElementsIn(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/Settings/tests/robotests/src/com/android/settings/slices/
DSlicesDatabaseAccessorTest.java175 final List<Uri> keys = mAccessor.getSliceUris(SettingsSlicesContract.AUTHORITY, in getDescendantUris_platformSlice_doesNotReturnOEMSlice() local
178 assertThat(keys).isEmpty(); in getDescendantUris_platformSlice_doesNotReturnOEMSlice()
186 final List<Uri> keys = mAccessor.getSliceUris(SettingsSliceProvider.SLICE_AUTHORITY, in getDescendantUris_oemSlice_doesNotReturnPlatformSlice() local
189 assertThat(keys).isEmpty(); in getDescendantUris_oemSlice_doesNotReturnPlatformSlice()
197 final List<Uri> keys = mAccessor.getSliceUris(SettingsSliceProvider.SLICE_AUTHORITY, in getDescendantUris_oemSlice_returnsOEMUriDescendant() local
200 assertThat(keys).containsExactly( in getDescendantUris_oemSlice_returnsOEMUriDescendant()
209 final List<Uri> keys = mAccessor.getSliceUris(SettingsSlicesContract.AUTHORITY, in getDescendantUris_platformSlice_returnsPlatformUriDescendant() local
212 assertThat(keys).containsExactly( in getDescendantUris_platformSlice_returnsPlatformUriDescendant()
269 final List<Uri> keys = accessor.getSliceUris(SettingsSliceProvider.SLICE_AUTHORITY, in getSliceKeys_indexesDatabase() local
272 assertThat(keys).isNotEmpty(); in getSliceKeys_indexesDatabase()
/packages/apps/Settings/tests/unit/src/com/android/settings/security/
DSecuritySettingsTest.java103 final List<String> keys = new ArrayList<>(); in getAllXmlKeys() local
105 keys.addAll(getKeysFromXml(res.xmlResId)); in getAllXmlKeys()
107 return keys; in getAllXmlKeys()
111 final List<String> keys = new ArrayList<>(); in getKeysFromXml() local
115 keys.add(bundle.getString(METADATA_KEY)); in getKeysFromXml()
117 return keys; in getKeysFromXml()
/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/Car/LatinIME/src/com/android/inputmethod/latin/car/
DKeyboardView.java540 List<Key> keys = mKeyboard.getKeys(); in setKeyboard() local
541 mKeys = keys.toArray(new Key[keys.size()]); in setKeyboard()
688 final Key[] keys = mKeys; in computeProximityThreshold()
689 if (keys == null) return; in computeProximityThreshold()
690 int length = keys.length; in computeProximityThreshold()
693 Key key = keys[i]; in computeProximityThreshold()
745 final Key[] keys = mKeys; in onBufferDraw() local
769 if (mLastSentIndex != NOT_A_KEY && mLastSentIndex < keys.length) { in onBufferDraw()
770 center = keys[mLastSentIndex].x + keys[mLastSentIndex].width / 2; in onBufferDraw()
776 final int keyCount = keys.length; in onBufferDraw()
[all …]
/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/src/com/android/settings/wifi/tether/
DWifiTetherSettings.java243 final List<String> keys = super.getNonIndexableKeys(context);
246 keys.add(KEY_WIFI_TETHER_NETWORK_NAME);
247 keys.add(KEY_WIFI_TETHER_NETWORK_PASSWORD);
248 keys.add(KEY_WIFI_TETHER_AUTO_OFF);
249 keys.add(KEY_WIFI_TETHER_MAXIMIZE_COMPATIBILITY);
253 keys.add(KEY_WIFI_TETHER_SCREEN);
254 return keys;
/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/apps/Settings/tests/robotests/src/com/android/settings/nfc/
DAndroidBeamPreferenceControllerTest.java159 final List<String> keys = new ArrayList<>(); in updateNonIndexableKeys_available_shouldNotUpdate() local
161 mAndroidBeamController.updateNonIndexableKeys(keys); in updateNonIndexableKeys_available_shouldNotUpdate()
163 assertThat(keys).isEmpty(); in updateNonIndexableKeys_available_shouldNotUpdate()
169 final List<String> keys = new ArrayList<>(); in updateNonIndexableKeys_notAvailable_shouldUpdate() local
171 mAndroidBeamController.updateNonIndexableKeys(keys); in updateNonIndexableKeys_notAvailable_shouldUpdate()
173 assertThat(keys).hasSize(1); in updateNonIndexableKeys_notAvailable_shouldUpdate()
DNfcPreferenceControllerTest.java153 final List<String> keys = new ArrayList<>(); in updateNonIndexableKeys_available_shouldNotUpdate() local
155 mNfcController.updateNonIndexableKeys(keys); in updateNonIndexableKeys_available_shouldNotUpdate()
157 assertThat(keys).isEmpty(); in updateNonIndexableKeys_available_shouldNotUpdate()
163 final List<String> keys = new ArrayList<>(); in updateNonIndexableKeys_notAvailable_shouldUpdate() local
165 mNfcController.updateNonIndexableKeys(keys); in updateNonIndexableKeys_notAvailable_shouldUpdate()
167 assertThat(keys).hasSize(1); in updateNonIndexableKeys_notAvailable_shouldUpdate()
/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/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/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/Settings/src/com/android/settings/
DAllInOneTetherSettings.java417 final List<String> keys = super.getNonIndexableKeys(context);
420 keys.add(KEY_WIFI_TETHER_NETWORK_NAME);
421 keys.add(KEY_WIFI_TETHER_NETWORK_PASSWORD);
422 keys.add(KEY_WIFI_TETHER_AUTO_OFF);
423 keys.add(KEY_WIFI_TETHER_NETWORK_AP_BAND);
424 keys.add(KEY_WIFI_TETHER_SECURITY);
426 return keys;
/packages/apps/Settings/tests/robotests/src/com/android/settings/search/
DFakeSettingsFragment.java112 List<String> keys = super.getNonIndexableKeys(context);
113 keys.add("pref_key_1");
114 keys.add("pref_key_3");
115 return keys;
/packages/apps/Settings/tests/unit/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;
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/permission/ui/television/
DPermissionAppsFragment.java359 ArraySet<String> keys = new ArraySet<>(); in getAllPreferencesKeys() local
362 keys.add(group.getPreference(i).getKey()); in getAllPreferencesKeys()
365 return keys; in getAllPreferencesKeys()
368 private void removePreferences(PreferenceGroup group, ArraySet<String> keys) { in removePreferences() argument
369 if (group == null || keys == null) { in removePreferences()
372 for (int i = 0, n = keys.size(); i < n; i++) { in removePreferences()
373 Preference preference = group.findPreference(keys.valueAt(i)); in removePreferences()
/packages/apps/DevCamera/src/com/android/devcamera/
DCameraDeviceReport.java231 String keys = ""; in printCameraInfo() local
233 keys += key.getName() + " "; in printCameraInfo()
235 Log.v(TAG, "CameraCharacteristics.getAvailableCaptureRequestKeys() = " + keys); in printCameraInfo()
240 String keys = ""; in printCameraInfo() local
242 keys += key.getName() + " "; in printCameraInfo()
244 Log.v(TAG, "CameraCharacteristics.getAvailableCaptureResultKeys() = " + keys); in printCameraInfo()

12345678