Home
last modified time | relevance | path

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

12345678910>>...18

/packages/apps/Settings/tests/robotests/src/com/android/settings/wifi/tether/
DWifiTetherSettingsTest.java270 final List<String> keys = searchIndexProvider.getNonIndexableKeys(mContext); in getNonIndexableKeys_tetherAvailable_keysNotReturned() local
272 assertThat(keys).doesNotContain(WifiTetherSettings.KEY_WIFI_TETHER_NETWORK_NAME); in getNonIndexableKeys_tetherAvailable_keysNotReturned()
273 assertThat(keys).doesNotContain(WifiTetherSettings.KEY_WIFI_TETHER_SECURITY); in getNonIndexableKeys_tetherAvailable_keysNotReturned()
274 assertThat(keys).doesNotContain(WifiTetherSettings.KEY_WIFI_HOTSPOT_SECURITY); in getNonIndexableKeys_tetherAvailable_keysNotReturned()
275 assertThat(keys).doesNotContain(WifiTetherSettings.KEY_WIFI_TETHER_NETWORK_PASSWORD); in getNonIndexableKeys_tetherAvailable_keysNotReturned()
276 assertThat(keys).doesNotContain(WifiTetherSettings.KEY_WIFI_TETHER_AUTO_OFF); in getNonIndexableKeys_tetherAvailable_keysNotReturned()
277 assertThat(keys).doesNotContain(WifiTetherSettings.KEY_WIFI_TETHER_MAXIMIZE_COMPATIBILITY); in getNonIndexableKeys_tetherAvailable_keysNotReturned()
278 assertThat(keys).doesNotContain(WifiTetherSettings.KEY_WIFI_HOTSPOT_SPEED); in getNonIndexableKeys_tetherAvailable_keysNotReturned()
279 assertThat(keys).doesNotContain(WifiTetherSettings.KEY_INSTANT_HOTSPOT); in getNonIndexableKeys_tetherAvailable_keysNotReturned()
288 final List<String> keys = searchIndexProvider.getNonIndexableKeys(mContext); in getNonIndexableKeys_tetherNotAvailable_keysReturned() local
[all …]
/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/modules/AdServices/adservices/tests/unittest/service-core/protectedaudience/src/com/android/adservices/service/adselection/encryption/
DAuctionEncryptionKeyParserTest.java101 List<DBEncryptionKey> keys = in getDbEncryptionKeys_missingMaxAge_usesDefaultAge() local
107 assertThat(keys).hasSize(1); in getDbEncryptionKeys_missingMaxAge_usesDefaultAge()
108 assertThat(keys.get(0).getKeyIdentifier()).isEqualTo(AUCTION_KEY_1.keyId()); in getDbEncryptionKeys_missingMaxAge_usesDefaultAge()
109 assertThat(keys.get(0).getPublicKey()).isEqualTo(AUCTION_KEY_1.publicKey()); in getDbEncryptionKeys_missingMaxAge_usesDefaultAge()
110 assertThat(keys.get(0).getEncryptionKeyType()) in getDbEncryptionKeys_missingMaxAge_usesDefaultAge()
112 assertThat(keys.get(0).getExpiryTtlSeconds()).isEqualTo(DEFAULT_MAX_AGE_SECONDS); in getDbEncryptionKeys_missingMaxAge_usesDefaultAge()
117 List<DBEncryptionKey> keys = in getDbEncryptionKeys_parsesSingleKey() local
124 assertThat(keys).hasSize(1); in getDbEncryptionKeys_parsesSingleKey()
125 assertThat(keys.get(0).getKeyIdentifier()).isEqualTo(AUCTION_KEY_1.keyId()); in getDbEncryptionKeys_parsesSingleKey()
126 assertThat(keys.get(0).getPublicKey()).isEqualTo(AUCTION_KEY_1.publicKey()); in getDbEncryptionKeys_parsesSingleKey()
[all …]
DJoinEncryptionKeyParserTest.java112 List<DBEncryptionKey> keys = in getDbEncryptionKeys_missingMaxAge_usesDefaultAge() local
115 assertThat(keys).hasSize(1); in getDbEncryptionKeys_missingMaxAge_usesDefaultAge()
116 assertThat(keys.get(0).getKeyIdentifier()).isEqualTo("h"); in getDbEncryptionKeys_missingMaxAge_usesDefaultAge()
117 assertThat(keys.get(0).getPublicKey()).isEqualTo(JOIN_PUBLIC_KEY_2_BASE_16); in getDbEncryptionKeys_missingMaxAge_usesDefaultAge()
118 assertThat(keys.get(0).getEncryptionKeyType()) in getDbEncryptionKeys_missingMaxAge_usesDefaultAge()
120 assertThat(keys.get(0).getExpiryTtlSeconds()).isEqualTo(DEFAULT_MAX_AGE_SECONDS); in getDbEncryptionKeys_missingMaxAge_usesDefaultAge()
/packages/modules/OnDevicePersonalization/tests/commontests/src/com/android/odp/module/common/encryption/
DOdpEncryptionKeyManagerTest.java79 { "keys": [{ "id": "0cc9b4c9-08bd", "key": "BQo+c1Tw6TaQ+VH/b+9PegZOjHuKAFkl8QdmS0IjRj8" """
193 List<OdpEncryptionKey> keys = mOdpEncryptionKeyManager.fetchAndPersistActiveKeys( in testFetchAndPersistActiveKeys_scheduled_success() local
198 assertThat(keys.size()).isGreaterThan(0); in testFetchAndPersistActiveKeys_scheduled_success()
213 List<OdpEncryptionKey> keys = mOdpEncryptionKeyManager.fetchAndPersistActiveKeys( in testFetchAndPersistActiveKeys_nonScheduled_success() local
218 assertThat(keys.size()).isGreaterThan(0); in testFetchAndPersistActiveKeys_nonScheduled_success()
326 List<OdpEncryptionKey> keys = in testFetchAndPersistActiveKeys_scheduledNoDeletion() local
337 assertThat(keys.size()).isEqualTo(1); in testFetchAndPersistActiveKeys_scheduledNoDeletion()
339 keys.stream() in testFetchAndPersistActiveKeys_scheduledNoDeletion()
362 List<OdpEncryptionKey> keys = in testFetchAndPersistActiveKeys_nonScheduledNoDeletion() local
373 assertThat(keys.size()).isEqualTo(1); in testFetchAndPersistActiveKeys_nonScheduledNoDeletion()
[all …]
/packages/apps/Settings/tests/robotests/src/com/android/settings/notification/
DSoundSettingsTest.java68 final List<String> keys = XmlTestUtils.getKeysFromPreferenceXml(context, xmlId); in getNonIndexableKeys_existInXmlLayout() local
69 keys.addAll(XmlTestUtils.getKeysFromPreferenceXml(context, R.xml.zen_mode_settings)); in getNonIndexableKeys_existInXmlLayout()
71 keys.add("alarm_volume"); in getNonIndexableKeys_existInXmlLayout()
72 keys.add("separate_ring_volume"); in getNonIndexableKeys_existInXmlLayout()
73 keys.add("notification_volume"); in getNonIndexableKeys_existInXmlLayout()
75 assertThat(keys).containsAtLeastElementsIn(niks); in getNonIndexableKeys_existInXmlLayout()
94 final List<String> keys = XmlTestUtils.getKeysFromPreferenceXml(context, xmlId); in notificationVolume_isBetweenRingAndAlarm() local
96 int ring = keys.indexOf("separate_ring_volume"); in notificationVolume_isBetweenRingAndAlarm()
97 int notification = keys.indexOf("notification_volume"); in notificationVolume_isBetweenRingAndAlarm()
98 int alarm = keys.indexOf("alarm_volume"); in notificationVolume_isBetweenRingAndAlarm()
DSettingPrefControllerTest.java134 final List<String> keys = new ArrayList<>(); in updateNonIndexableKeys_applicable_shouldNotUpdate() local
136 mController.updateNonIndexableKeys(keys); in updateNonIndexableKeys_applicable_shouldNotUpdate()
138 assertThat(keys).isEmpty(); in updateNonIndexableKeys_applicable_shouldNotUpdate()
144 final List<String> keys = new ArrayList<>(); in updateNonIndexableKeys_notApplicable_shouldUpdate() local
146 mController.updateNonIndexableKeys(keys); in updateNonIndexableKeys_notApplicable_shouldUpdate()
148 assertThat(keys).isNotEmpty(); in updateNonIndexableKeys_notApplicable_shouldUpdate()
/packages/modules/AdServices/adservices/tests/unittest/service-core/measurement/assets/msmt_e2e_tests/both_sides_debug_keys/
Daggregate_and_event_reports.json239 … + Trigger A): Source/Trigger have debug key values and permissions -> debug keys present in report
254 …// Report (Source A + Trigger B): Trigger does not have debug key values -> no debug keys present …
267 …urce A + Trigger C): Trigger does not have debug key permissions -> no debug keys present in report
280 …// Report (Source B + Trigger D): Source does not have debug key values -> no debug keys present i…
293 …// Report (Source C + Trigger E): Source does not have debug key permissions -> no debug keys pres…
325 … + Trigger A): Source/Trigger have debug key values and permissions -> debug keys present in report
353 …// Report (Source A + Trigger B): Trigger does not have debug key values -> no debug keys present …
378 …urce A + Trigger C): Trigger does not have debug key permissions -> no debug keys present in report
403 …// Report (Source B + Trigger D): Source does not have debug key values -> no debug keys present i…
428 …// Report (Source C + Trigger E): Source does not have debug key permissions -> no debug keys pres…
Dapp-app_conversion.json149 // Report (Source A + Trigger A) debug keys present in report
177 // Report (Source B + Trigger B) Source missing debug keys -> no debug keys present in report
202 // Report (Source C + Trigger C) Source missing debug keys -> no debug keys present in report
/packages/modules/Virtualization/android/TerminalApp/java/com/android/virtualization/terminal/
DModifierKeysController.kt65 private fun addClickListeners(keys: View) { in <lambda>()
67 keys in <lambda>()
82 for (btn in BTN_KEY_CODE_MAP.keys) { in <lambda>()
83 keys.findViewById<View>(btn).setOnClickListener(listener) in <lambda>()
90 val keys = if (keysInSingleLine) keysSingleLine else keysDoubleLine in <lambda>() constant
91 keys.visibility = View.GONE in <lambda>()
107 val keys = if (keysInSingleLine) keysSingleLine else keysDoubleLine in <lambda>() constant
108 keys.visibility = if (needShow) View.VISIBLE else View.GONE in <lambda>()
121 val keys = if (keysInSingleLine) keysSingleLine else keysDoubleLine in <lambda>() constant
122 return activeTerminalView!!.height + keys.height < 0.4f * activity.window.decorView.height in <lambda>()
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/
DContactLocaleUtilsTest.java183 Iterator<String> keys = getNameLookupKeys(CHINESE_NAME, in testChineseContactLocaleUtils() local
185 verifyKeys(keys, CHINESE_NAME_KEY); in testChineseContactLocaleUtils()
187 keys = getNameLookupKeys(CHINESE_LATIN_MIX_NAME_1, FullNameStyle.CHINESE); in testChineseContactLocaleUtils()
188 verifyKeys(keys, CHINESE_LATIN_MIX_NAME_1_KEY); in testChineseContactLocaleUtils()
190 keys = getNameLookupKeys(CHINESE_LATIN_MIX_NAME_2, FullNameStyle.CHINESE); in testChineseContactLocaleUtils()
191 verifyKeys(keys, CHINESE_LATIN_MIX_NAME_2_KEY); in testChineseContactLocaleUtils()
202 Iterator<String> keys = getNameLookupKeys(CHINESE_NAME, in testPinyinEnabledSecondaryLocale() local
204 verifyKeys(keys, CHINESE_NAME_KEY); in testPinyinEnabledSecondaryLocale()
237 Iterator<String> keys = getNameLookupKeys(CHINESE_NAME, in testChineseStyleNameWithDifferentLocale() local
239 verifyKeys(keys, CHINESE_NAME_KEY); in testChineseStyleNameWithDifferentLocale()
[all …]
/packages/modules/AdServices/sdksandbox/service/java/com/android/server/sdksandbox/verifier/
DStringTrie.java54 V recursivePut(V value, List<String> keys) { in recursivePut() argument
58 if (keys.isEmpty()) { in recursivePut()
63 String curKey = keys.get(0); in recursivePut()
64 List<String> nextKeys = keys.subList(1, keys.size()); in recursivePut()
84 public @Nullable V put(V value, String... keys) { in put() argument
85 if (keys.length == 0) { in put()
88 List<String> kList = Arrays.asList(keys); in put()
/packages/modules/AdServices/adservices/tests/unittest/service-core/measurement/assets/msmt_e2e_tests/debug_report/
Ddebug_ad_id_window_based_limit.json234 // t=3, T2, first counted debug_ad_id that results into debug keys in reports
273 // t=2 days, T3, 2nd counted debug_ad_id that results into debug keys in reports
312 // t=4 days, T4, 3rd counted debug_ad_id that results into debug keys in reports
351 // t=4 days, T5, 4th unique debug_ad_id => no debug keys in reports
390 // t=4 days, T6, first count for this enrollment => debug keys in reports
429 // t=11 days, T7, quota reset for ad-tech1 => debug keys present in reports
/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/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/wifi/tether/
DWifiTetherSettings.java368 final List<String> keys = super.getNonIndexableKeys(context); in getNonIndexableKeys() local
372 keys.add(KEY_WIFI_TETHER_NETWORK_NAME); in getNonIndexableKeys()
373 keys.add(KEY_WIFI_TETHER_SECURITY); in getNonIndexableKeys()
374 keys.add(KEY_WIFI_HOTSPOT_SECURITY); in getNonIndexableKeys()
375 keys.add(KEY_WIFI_TETHER_NETWORK_PASSWORD); in getNonIndexableKeys()
376 keys.add(KEY_WIFI_TETHER_AUTO_OFF); in getNonIndexableKeys()
377 keys.add(KEY_WIFI_TETHER_MAXIMIZE_COMPATIBILITY); in getNonIndexableKeys()
378 keys.add(KEY_WIFI_HOTSPOT_SPEED); in getNonIndexableKeys()
379 keys.add(KEY_INSTANT_HOTSPOT); in getNonIndexableKeys()
382 keys.add(KEY_WIFI_HOTSPOT_SECURITY); in getNonIndexableKeys()
[all …]
/packages/apps/Settings/tests/unit/src/com/android/settings/
DTestUtils.java49 final List<String> keys = new ArrayList<>(); in getAllXmlKeys() local
51 keys.addAll(getKeysFromXml(res.xmlResId, context)); in getAllXmlKeys()
53 return keys; in getAllXmlKeys()
58 final List<String> keys = new ArrayList<>(); in getKeysFromXml() local
62 keys.add(bundle.getString(METADATA_KEY)); in getKeysFromXml()
64 return keys; in getKeysFromXml()
/packages/modules/AdServices/sdksandbox/tests/unittest/src/com/android/server/sdksandbox/
DSdkDexVerifierUnitTest.java95 String[] keys = mVerifier.getApiTokens(apiRuleFull); in getApiTokens_fullyQualifiedRule() local
97 assertThat(keys).isEqualTo(expectedKeys); in getApiTokens_fullyQualifiedRule()
116 String[] keys = mVerifier.getApiTokens(apiRuleClassMethod); in getApiTokens_classAndMethodRule() local
118 assertThat(keys).isEqualTo(expectedKeys); in getApiTokens_classAndMethodRule()
142 String[] keys = mVerifier.getApiTokens(apiRuleMultiParam); in getApiTokens_multiParam() local
144 assertThat(keys).isEqualTo(expectedKeys); in getApiTokens_multiParam()
158 String[] keys = mVerifier.getApiTokens(apiRuleClassReturn); in getApiTokens_classReturn() local
160 assertThat(keys).isEqualTo(expectedKeys); in getApiTokens_classReturn()
174 String[] keys = mVerifier.getApiTokens(apiRuleClassParam); in getApiTokens_classAndParams() local
176 assertThat(keys).isEqualTo(expectedKeys); in getApiTokens_classAndParams()
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/service/adselection/encryption/
DAdSelectionEncryptionKeyManager.java236 List<DBEncryptionKey> keys =
242 return keys.isEmpty() ? null : selectRandomDbKeyAndParse(keys);
259 List<DBEncryptionKey> keys =
264 return keys.isEmpty() ? null : selectRandomDbKeyAndParse(keys);
286 .transform(keys -> selectRandomDbKeyAndParse(keys), mLightweightExecutor);
348 private AdSelectionEncryptionKey selectRandomDbKeyAndParse(List<DBEncryptionKey> keys) {
350 return parseDbEncryptionKey(keys.get(random.nextInt(keys.size())));
DProtectedServersEncryptionConfigManager.java203 List<DBProtectedServersEncryptionConfig> keys =
209 return keys.isEmpty()
212 keys.stream()
241 List<DBProtectedServersEncryptionConfig> keys =
248 return keys.isEmpty()
251 keys.stream()
271 .transform(keys -> selectRandomDbKeyAndParse(keys), mLightweightExecutor);
358 private AdSelectionEncryptionKey selectRandomDbKeyAndParse(List<DBEncryptionKey> keys) {
360 DBEncryptionKey randomKey = keys.get(random.nextInt(keys.size()));
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/service/measurement/
DFilterMap.java216 Iterator<String> keys = jsonObject.keys(); in buildFilterData() local
217 while (keys.hasNext()) { in buildFilterData()
218 String key = keys.next(); in buildFilterData()
233 Iterator<String> keys = jsonObject.keys(); in buildFilterDataV2() local
234 while (keys.hasNext()) { in buildFilterDataV2()
235 String key = keys.next(); in buildFilterDataV2()
/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/ManagedProvisioning/src/com/android/managedprovisioning/common/
DPersistableBundlable.java47 List<String> keys = new ArrayList<>(toPersistableBundle().keySet()); in hashCode() local
48 Collections.sort(keys); in hashCode()
49 return TextUtils.join(",", keys).hashCode(); in hashCode()
85 Set<String> keys = obj1.keySet(); in isPersistableBundleEquals() local
86 for (String key : keys) { in isPersistableBundleEquals()
/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/spa_unit/src/com/android/settings/system/
DSystemUpdatePreferenceControllerTest.kt69 val keys = mutableListOf<String>() in updateNonIndexable_ifAvailable_shouldNotUpdate() constant
71 controller.updateNonIndexableKeys(keys) in updateNonIndexable_ifAvailable_shouldNotUpdate()
73 assertThat(keys).isEmpty() in updateNonIndexable_ifAvailable_shouldNotUpdate()
79 val keys = mutableListOf<String>() in updateNonIndexable_ifNotAvailable_shouldUpdate() constant
81 controller.updateNonIndexableKeys(keys) in updateNonIndexable_ifNotAvailable_shouldUpdate()
83 assertThat(keys).containsExactly(KEY) in updateNonIndexable_ifNotAvailable_shouldUpdate()

12345678910>>...18