Home
last modified time | relevance | path

Searched refs:TEST_KEY (Results 1 – 25 of 51) sorted by relevance

123

/packages/modules/AdServices/shared/tests/device-side/java/com/android/adservices/shared/storage/
DBooleanFileDatastoreTest.java58 private static final String TEST_KEY = "key"; field in BooleanFileDatastoreTest
191 mDatastore.put(TEST_KEY, insertedValue); in testWriteAndGetVersion()
211 assertWithMessage("get(%s)", TEST_KEY).that(mDatastore.get(TEST_KEY)).isNull(); in testPutGetUpdateRemove()
215 mDatastore.put(TEST_KEY, insertedValue); in testPutGetUpdateRemove()
218 Boolean readValue = mDatastore.get(TEST_KEY); in testPutGetUpdateRemove()
219 assertWithMessage("get(%s)", TEST_KEY).that(readValue).isNotNull(); in testPutGetUpdateRemove()
220 assertWithMessage("get(%s)", TEST_KEY).that(readValue).isEqualTo(insertedValue); in testPutGetUpdateRemove()
224 mDatastore.put(TEST_KEY, insertedValue); in testPutGetUpdateRemove()
225 readValue = mDatastore.get(TEST_KEY); in testPutGetUpdateRemove()
226 assertWithMessage("get(%s)", TEST_KEY).that(readValue).isNotNull(); in testPutGetUpdateRemove()
[all …]
/packages/modules/OnDevicePersonalization/tests/systemserviceimpltests/src/com/android/server/ondevicepersonalization/
DBooleanFileDataStoreTest.java38 private static final String TEST_KEY = "key"; field in BooleanFileDataStoreTest
84 assertNull(mDataStore.get(TEST_KEY)); in testPutGetUpdate()
87 mDataStore.put(TEST_KEY, false); in testPutGetUpdate()
90 Boolean readValue = mDataStore.get(TEST_KEY); in testPutGetUpdate()
94 mDataStore.put(TEST_KEY, true); in testPutGetUpdate()
95 readValue = mDataStore.get(TEST_KEY); in testPutGetUpdate()
101 assertTrue(keys.contains(TEST_KEY)); in testPutGetUpdate()
107 mDataStore.put(TEST_KEY + i, true); in testClearAll()
118 mDataStore.put(TEST_KEY + i, true); in testReinitializeFromDisk()
130 Boolean readValue = mDataStore.get(TEST_KEY + i); in testReinitializeFromDisk()
/packages/apps/Settings/tests/robotests/src/com/android/settings/display/
DTopLevelWallpaperPreferenceControllerTest.java49 private static final String TEST_KEY = "test_key"; field in TopLevelWallpaperPreferenceControllerTest
73 mController = new TopLevelWallpaperPreferenceController(mContext, TEST_KEY); in setUp()
167 preference.setKey(TEST_KEY); in handlePreferenceTreeClick_wallpaperOnly()
183 preference.setKey(TEST_KEY); in handlePreferenceTreeClick_stylesAndWallpaper()
199 preference.setKey(TEST_KEY); in handlePreferenceTreeClick_launchSourceExtra()
213 preference.setKey(TEST_KEY); in handlePreferenceTreeClick_embeddingActivityDisabled_launchWithTaskFlag()
228 preference.setKey(TEST_KEY); in handlePreferenceTreeClick_embeddingActivityEnabled_launchWithoutTaskFlag()
DWallpaperPreferenceControllerTest.java48 private static final String TEST_KEY = "test_key"; field in WallpaperPreferenceControllerTest
72 mController = new WallpaperPreferenceController(mContext, TEST_KEY); in setUp()
190 preference.setKey(TEST_KEY); in handlePreferenceTreeClick_wallpaperOnly()
206 preference.setKey(TEST_KEY); in handlePreferenceTreeClick_stylesAndWallpaper()
222 preference.setKey(TEST_KEY); in handlePreferenceTreeClick_launchSourceExtra()
DTwilightLocationPreferenceControllerTest.java39 private static final String TEST_KEY = "test_key"; field in TwilightLocationPreferenceControllerTest
52 mController = new TwilightLocationPreferenceController(mContext, TEST_KEY); in setUp()
/packages/apps/Settings/tests/robotests/src/com/android/settings/applications/assist/
DDefaultAssistPreferenceControllerTest.java62 private static final String TEST_KEY = "test_pref_key"; field in DefaultAssistPreferenceControllerTest
76 mController = new DefaultAssistPreferenceController(mContext, TEST_KEY, in setUp()
93 assertThat(mController.getPreferenceKey()).isEqualTo(TEST_KEY); in getPrefKey_shouldReturnKey()
113 new DefaultAssistPreferenceController(mContext, TEST_KEY, true /* showSetting */)); in getSettingIntent_noSettingsActivity_shouldNotCrash()
140 mContext, TEST_KEY, false /* showSetting */); in getSettingIntent_doNotShowSetting_shouldNotTryToGetSettingIntent()
/packages/apps/Settings/tests/spa_unit/src/com/android/settings/spa/preference/
DComposePreferenceControllerTest.kt42 preferenceKey = TEST_KEY,
53 key = TEST_KEY in <lambda>()
70 const val TEST_KEY = "test_key" constant
/packages/modules/Virtualization/service_vm/requests/src/
Dkeyblob.rs113 const TEST_KEY: [u8; 32] = [ constant
132 cbor_util::serialize(&EncryptedKeyBlob::new(&TEST_KEY, &TEST_SECRET1)?)?; in decrypting_keyblob_succeeds_with_the_same_kek()
135 assert_eq!(TEST_KEY, decrypted_key.as_slice()); in decrypting_keyblob_succeeds_with_the_same_kek()
142 cbor_util::serialize(&EncryptedKeyBlob::new(&TEST_KEY, &TEST_SECRET1)?)?; in decrypting_keyblob_fails_with_a_different_kek()
/packages/apps/Settings/tests/spa_unit/src/com/android/settings/network/telephony/
DCallingPreferenceCategoryControllerTest.kt34 private val preference = ComposePreference(context).apply { key = TEST_KEY } in <lambda>()
37 private val controller = CallingPreferenceCategoryController(context, TEST_KEY)
76 const val TEST_KEY = "test_key" constant
DMobileNetworkSpnPreferenceControllerTest.kt56 private val controller = MobileNetworkSpnPreferenceController(context, TEST_KEY)
57 private val preference = Preference(context).apply { key = TEST_KEY } in <lambda>()
93 const val TEST_KEY = "test_key" constant
DMobileNetworkPhoneNumberPreferenceControllerTest.kt54 private val controller = MobileNetworkPhoneNumberPreferenceController(context, TEST_KEY)
55 private val preference = Preference(context).apply { key = TEST_KEY } in <lambda>()
125 const val TEST_KEY = "test_key" constant
DWifiCallingPreferenceControllerTest.kt56 key = TEST_KEY in <lambda>()
75 key = TEST_KEY,
145 const val TEST_KEY = "test_key" constant
DMobileNetworkEidPreferenceControllerTest.kt75 private val controller = MobileNetworkEidPreferenceController(context, TEST_KEY)
76 private val preference = CustomDialogPreferenceCompat(context).apply { key = TEST_KEY } in <lambda>()
145 const val TEST_KEY = "test_key" constant
DMobileNetworkImeiPreferenceControllerTest.kt71 private val controller = MobileNetworkImeiPreferenceController(context, TEST_KEY)
72 private val preference = Preference(context).apply { key = TEST_KEY } in <lambda>()
167 const val TEST_KEY = "test_key" constant
/packages/apps/Settings/tests/robotests/src/com/android/settings/sound/
DMediaOutputPreferenceControllerTest.java99 private static final String TEST_KEY = "Test_Key"; field in MediaOutputPreferenceControllerTest
231 mController = new MediaOutputPreferenceController(mContext, TEST_KEY); in setUp()
355 mController = new MediaOutputPreferenceController(mContext, TEST_KEY); in updateState_noActiveLocalPlayback_noTitle()
369 mController = new MediaOutputPreferenceController(mContext, TEST_KEY); in updateState_noActiveLocalPlayback_checkTitle()
383 mController = new MediaOutputPreferenceController(mContext, TEST_KEY); in updateState_withNullMediaController_noTitle()
394 mController = new MediaOutputPreferenceController(mContext, TEST_KEY); in updateState_withNullMediaController_checkTitle()
421 mPreference.setKey(TEST_KEY); in click_launch_outputSwitcherSlice()
436 mController = new MediaOutputPreferenceController(mContext, TEST_KEY); in handlePreferenceTreeClick_WithNoLocalPlaybackFlagEnabled_verifyIntentExtra()
437 mPreference.setKey(TEST_KEY); in handlePreferenceTreeClick_WithNoLocalPlaybackFlagEnabled_verifyIntentExtra()
451 mController = new MediaOutputPreferenceController(mContext, TEST_KEY); in handlePreferenceTreeClick_WithNullControllerFlagEnabled_verifyIntentExtra()
[all …]
/packages/apps/Settings/tests/robotests/src/com/android/settings/wifi/savedaccesspoints2/
DSavedAccessPointsPreferenceController2Test.java59 private static final String TEST_KEY = "key"; field in SavedAccessPointsPreferenceController2Test
82 when(mWifiEntryPreference.getKey()).thenReturn(TEST_KEY); in setUp()
84 when(mWifiEntry.getKey()).thenReturn(TEST_KEY); in setUp()
147 verify(mSettings).showWifiPage(TEST_KEY, TEST_TITLE); in onPreferenceClick_shouldCallShowWifiPage()
/packages/apps/Settings/tests/robotests/src/com/android/settings/accessibility/
DViewAllBluetoothDevicesPreferenceControllerTest.java56 private final String TEST_KEY = "test_key"; field in ViewAllBluetoothDevicesPreferenceControllerTest
71 mController = spy(new ViewAllBluetoothDevicesPreferenceController(mActivity, TEST_KEY)); in setUp()
79 mPreference.setKey(TEST_KEY); in handlePreferenceTreeClick_expectedPreference_launchConnectedDevicePage()
DAccessibilityFooterPreferenceControllerTest.java50 private static final String TEST_KEY = "test_pref_key"; field in AccessibilityFooterPreferenceControllerTest
69 mController = new AccessibilityFooterPreferenceController(mContext, TEST_KEY); in setUp()
71 mPreference.setKey(TEST_KEY); in setUp()
DAccessibilityQuickSettingsPrimarySwitchPreferenceControllerTest.java73 private static final String TEST_KEY = "test_pref_key"; field in AccessibilityQuickSettingsPrimarySwitchPreferenceControllerTest
110 mPreference.setKey(TEST_KEY); in setUp()
120 TEST_KEY); in setUp()
/packages/apps/Settings/tests/spa_unit/src/com/android/settings/network/telephony/gsm/
DOpenNetworkSelectPagePreferenceControllerTest.kt60 private val preference = Preference(context).apply { key = TEST_KEY } in <lambda>()
67 key = TEST_KEY,
113 const val TEST_KEY = "test_key" constant
DAutoSelectPreferenceControllerTest.kt73 private val preference = ComposePreference(context).apply { key = TEST_KEY } in <lambda>()
82 key = TEST_KEY,
193 const val TEST_KEY = "test_key" constant
/packages/apps/Settings/tests/robotests/src/com/android/settings/widget/
DHighlightablePreferenceGroupAdapterTest.java68 private static final String TEST_KEY = "key"; field in HighlightablePreferenceGroupAdapterTest
87 mPreference.setKey(TEST_KEY); in setUp()
89 mAdapter = spy(new HighlightablePreferenceGroupAdapter(mPreferenceCategory, TEST_KEY, in setUp()
125 ReflectionHelpers.setField(mAdapter, "mHighlightKey", TEST_KEY); in requestHighlight_noKey_highlightedBefore_noRecyclerView_shouldNotRequest()
129 ReflectionHelpers.setField(mAdapter, "mHighlightKey", TEST_KEY); in requestHighlight_noKey_highlightedBefore_noRecyclerView_shouldNotRequest()
/packages/apps/Settings/tests/spa_unit/src/com/android/settings/wifi/
DWepNetworksPreferenceControllerTest.kt77 private var controller = WepNetworksPreferenceController(context, TEST_KEY)
78 private val preference = ComposePreference(context).apply { key = TEST_KEY } in <lambda>()
160 const val TEST_KEY = "test_key" constant
/packages/apps/Settings/tests/spa_unit/src/com/android/settings/deviceinfo/simstatus/
DSimEidPreferenceControllerTest.kt40 private val controller = SimEidPreferenceController(context, TEST_KEY)
75 const val TEST_KEY = "test_key" constant
/packages/modules/Connectivity/staticlibs/tests/unit/src/com/android/net/module/util/
DBpfDumpTest.java49 private static final int TEST_KEY = 123; field in BpfDumpTest
60 final Struct.S32 key = new Struct.S32(TEST_KEY); in testToBase64EncodedString()
76 assertEquals(TEST_KEY, decodedKeyValue.first.val); in testFromBase64EncodedString()

123