Home
last modified time | relevance | path

Searched refs:key1 (Results 1 – 18 of 18) sorted by relevance

/frameworks/base/core/tests/coretests/src/android/view/
DKeyEventTest.java137 KeyEvent key1 = createKey(); in testParcelUnparcel() local
142 key1.writeToParcel(parcel, /* flags= */ 0); in testParcelUnparcel()
150 compareKeys(key1, key2); in testParcelUnparcel()
155 KeyEvent key1 = createKey(); in testCopyConstructor() local
156 KeyEvent key2 = new KeyEvent(key1); in testCopyConstructor()
158 compareKeys(key1, key2); in testCopyConstructor()
163 KeyEvent key1 = createKey(); in testCopyConstructorWith2ChangedFields() local
165 KeyEvent key2 = new KeyEvent(key1, ANOTHER_EVENT_TIME, ANOTHER_REPEAT); in testCopyConstructorWith2ChangedFields()
171 expect.withMessage("id (key1=%s, key2=%s", key1, key2).that(key2.getId()) in testCopyConstructorWith2ChangedFields()
172 .isNotEqualTo(key1.getId()); in testCopyConstructorWith2ChangedFields()
[all …]
/frameworks/base/packages/SettingsLib/DataStore/tests/src/com/android/settingslib/datastore/
DKeyedObserverTest.kt39 private val key1 = Object() in <lambda>() constant in com.android.settingslib.datastore.KeyedObserverTest
54 keyedObservable.addObserver(key1, keyedObserver1, executor1) in <lambda>()
55 keyedObservable.addObserver(key1, keyedObserver1, executor1) in <lambda>()
68 keyedObservable.addObserver(key1, keyedObserver1, executor1) in <lambda>()
70 keyedObservable.addObserver(key1, keyedObserver1, executor2) in <lambda>()
96 keyedObservable.addObserver(key1, keyObserver!!, executor1) in <lambda>()
98 keyedObservable.notifyChange(key1, DataChangeReason.UPDATE) in <lambda>()
106 keyedObservable.notifyChange(key1, DataChangeReason.UPDATE) in <lambda>()
129 keyedObservable.addObserver(key1, keyedObserver1, executor1) in <lambda>()
132 keyedObservable.notifyChange(key1, DataChangeReason.UPDATE) in <lambda>()
[all …]
/frameworks/base/keystore/tests/src/android/security/keystore2/
DAndroidKeyStoreSpiTest.java279 AndroidKeyStoreKey key1 = new AndroidKeyStoreKey(descriptor(), 1, new Authorization[0], in testKeystoreKeysAdhereToContractBetweenEqualsAndHashCode() local
286 assertThat("Identity should yield true", key1.equals(key1)); in testKeystoreKeysAdhereToContractBetweenEqualsAndHashCode()
288 key1.hashCode(), key1.hashCode()); in testKeystoreKeysAdhereToContractBetweenEqualsAndHashCode()
292 assertThat("Different keys should differ", !key1.equals(key2)); in testKeystoreKeysAdhereToContractBetweenEqualsAndHashCode()
294 key1.hashCode(), key2.hashCode()); in testKeystoreKeysAdhereToContractBetweenEqualsAndHashCode()
296 assertThat("Same keys should yield true", key1.equals(key1_clone)); in testKeystoreKeysAdhereToContractBetweenEqualsAndHashCode()
297 assertThat("Same keys should yield true", key1_clone.equals(key1)); in testKeystoreKeysAdhereToContractBetweenEqualsAndHashCode()
299 key1.hashCode(), key1_clone.hashCode()); in testKeystoreKeysAdhereToContractBetweenEqualsAndHashCode()
301 assertThat("anything.equal(null) should yield false", !key1.equals(null)); in testKeystoreKeysAdhereToContractBetweenEqualsAndHashCode()
308 AndroidKeyStorePublicKey key1 = makePrivateKeyObject("myCert1", "myChain1"); in testKeystorePublicKeysAdhereToContractBetweenEqualsAndHashCode() local
[all …]
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/media/controls/domain/pipeline/
DMediaSessionBasedFilterTest.kt269 val key1 = "KEY_1" in remoteAndLocalHaveDifferentKeys_localLoadedEventFiltered() constant
276 filter.onMediaDataLoaded(key1, null, mediaData1) in remoteAndLocalHaveDifferentKeys_localLoadedEventFiltered()
281 .onMediaDataLoaded(eq(key1), eq(null), eq(mediaData1), eq(true), eq(0), eq(false)) in remoteAndLocalHaveDifferentKeys_localLoadedEventFiltered()
303 val key1 = "KEY_1" in remoteAndLocalHaveDifferentKeys_remoteSessionWithoutNotification() constant
310 filter.onMediaDataLoaded(key1, null, mediaData1) in remoteAndLocalHaveDifferentKeys_remoteSessionWithoutNotification()
315 .onMediaDataLoaded(eq(key1), eq(null), eq(mediaData1), eq(true), eq(0), eq(false)) in remoteAndLocalHaveDifferentKeys_remoteSessionWithoutNotification()
370 val key1 = "KEY_1" in doNotFilterDuringKeyMigration() constant
373 filter.onMediaDataLoaded(key1, null, mediaData2) in doNotFilterDuringKeyMigration()
383 filter.onMediaDataLoaded(key2, key1, mediaData2) in doNotFilterDuringKeyMigration()
388 .onMediaDataLoaded(eq(key2), eq(key1), eq(mediaData2), eq(true), eq(0), eq(false)) in doNotFilterDuringKeyMigration()
[all …]
/frameworks/base/services/tests/InputMethodSystemServerTests/src/com/android/server/inputmethod/
DAdditionalSubtypeMapTest.java51 @NonNull String key1, @NonNull List<InputMethodSubtype> value1) { in mapOf()
53 map.put(key1, value1); in mapOf()
58 @NonNull String key1, @NonNull List<InputMethodSubtype> value1, in mapOf()
61 map.put(key1, value1); in mapOf()
/frameworks/av/camera/
DCameraParameters2.cpp150 status_t CameraParameters2::compareSetOrder(const char *key1, const char *key2, in compareSetOrder() argument
152 if (key1 == NULL) { in compareSetOrder()
163 ssize_t index1 = mMap.indexOfKey(String8(key1)); in compareSetOrder()
166 ALOGW("%s: Key1 (%s) was not set", __FUNCTION__, key1); in compareSetOrder()
/frameworks/base/core/tests/coretests/assets/
Dbackup_mock.gld1 key1:
/frameworks/base/packages/SystemUI/compose/features/src/com/android/systemui/fold/ui/composable/
DFoldPosture.kt40 key1 = layoutInfo, in foldPosture()
/frameworks/opt/car/services/updatableServices/tests/src/com/android/server/wm/
DCarDisplayCompatScaleProviderUpdatableTest.java449 CarDisplayCompatConfig.Key key1 = in displayUserPackage_hasHigherPriority_thanDisplayUser() local
452 mConfig.setScaleFactor(key1, 0.6f); in displayUserPackage_hasHigherPriority_thanDisplayUser()
479 CarDisplayCompatConfig.Key key1 = in displayUser_hasHigherPriority_thanDisplayPackage() local
483 mConfig.setScaleFactor(key1, 0.6f); in displayUser_hasHigherPriority_thanDisplayPackage()
511 CarDisplayCompatConfig.Key key1 = in displayPackage_hasHigherPriority_thanDisplay() local
515 mConfig.setScaleFactor(key1, 0.6f); in displayPackage_hasHigherPriority_thanDisplay()
/frameworks/av/camera/tests/fuzzer/
Dcamera_Parameters_fuzzer.cpp209 string key1 = mFDP->ConsumeRandomLengthString(kMaxBytes); in callCameraParametersAPIs() local
212 mCameraParameters2->compareSetOrder(key1.c_str(), key2.c_str(), &order); in callCameraParametersAPIs()
/frameworks/av/camera/include/camera/
DCameraParameters2.h60 status_t compareSetOrder(const char *key1, const char *key2,
/frameworks/base/packages/SystemUI/compose/features/src/com/android/systemui/qs/ui/composable/
DQuickSettings.kt186 LaunchedEffect(key1 = context) { in QuickSettingsContent()
/frameworks/base/packages/SystemUI/src/com/android/keyguard/
DKeyguardPinBasedInputView.java185 mButtons[1] = findViewById(R.id.key1); in onFinishInflate()
DKeyguardPINView.java252 findViewById(R.id.key1), findViewById(R.id.key2), in onFinishInflate()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/people/widget/
DPeopleSpaceWidgetManagerTest.java1477 PeopleTileKey key1 = SharedPreferencesHelper.getPeopleTileKey(sp1); in testRemapWidgetFiles() local
1478 assertThat(key1.getShortcutId()).isEqualTo(SHORTCUT_ID); in testRemapWidgetFiles()
1479 assertThat(key1.getPackageName()).isEqualTo(TEST_PACKAGE_A); in testRemapWidgetFiles()
1510 PeopleTileKey key1 = SharedPreferencesHelper.getPeopleTileKey(sp1); in testRemapWidgetFiles_crossMapping() local
1511 assertThat(key1.getShortcutId()).isEqualTo(THIRD_SHORTCUT_ID); in testRemapWidgetFiles_crossMapping()
1512 assertThat(key1.getPackageName()).isEqualTo(TEST_PACKAGE_C); in testRemapWidgetFiles_crossMapping()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/notification/collection/
DNotifCollectionTest.java1595 String key1 = mNoMan.postNotif(buildNotif(TEST_PACKAGE, 1, "myTag")).key; in testMissingRanking() local
1597 NotificationEntry entry1 = mCollectionListener.getEntry(key1); in testMissingRanking()
1602 Ranking ranking1 = mNoMan.removeRankingWithoutEvent(key1); in testMissingRanking()
1618 mNoMan.setRanking(key1, ranking1); in testMissingRanking()
1626 verify(mLogger).logRecoveredRankings(eq(List.of(key1)), eq(0)); in testMissingRanking()
/frameworks/base/services/tests/servicestests/src/com/android/server/locksettings/recoverablekeystore/storage/
DRecoverableKeyStoreDbTest.java116 WrappedKey key1 = new WrappedKey( in insertKey_allowsTwoUidsToHaveSameAlias() local
127 mRecoverableKeyStoreDb.insertKey(userId, /*uid=*/ 1, alias, key1); in insertKey_allowsTwoUidsToHaveSameAlias()
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/panels/ui/compose/
DTile.kt452 LaunchedEffect(key1 = icon.res) { in TileIcon()