/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/keyboard/ |
D | MoreKeysKeyboardBuilderMaxOrderTests.java | 51 final MoreKeysKeyboardParams params = new MoreKeysKeyboardParams(); in createParams() local 52 params.setParameters(numKeys, maxColumns, WIDTH, HEIGHT, coordXInParent, KEYBOARD_WIDTH, in createParams() 55 return params; in createParams() 60 MoreKeysKeyboardParams params = null; in testLayoutError() local 63 params = createParams(maxColumns + 1, maxColumns + 1, HEIGHT); in testLayoutError() 68 assertNull("Too small keyboard to hold more keys keyboard", params); in testLayoutError() 78 MoreKeysKeyboardParams params = createParams(1, 5, XPOS_M0); in testLayout1KeyMax5M0() local 79 assertEquals("1 key max 5 M0 columns", 1, params.mNumColumns); in testLayout1KeyMax5M0() 80 assertEquals("1 key max 5 M0 rows", 1, params.mNumRows); in testLayout1KeyMax5M0() 81 assertEquals("1 key max 5 M0 left", 0, params.mLeftKeys); in testLayout1KeyMax5M0() [all …]
|
D | MoreKeysKeyboardBuilderFixedOrderTests.java | 51 final MoreKeysKeyboardParams params = new MoreKeysKeyboardParams(); in createParams() local 52 params.setParameters(numKeys, columnNum, WIDTH, HEIGHT, coordXInParent, KEYBOARD_WIDTH, in createParams() 55 return params; in createParams() 60 MoreKeysKeyboardParams params = null; in testLayoutError() local 63 params = createParams(fixColumns + 1, fixColumns + 1, HEIGHT); in testLayoutError() 68 assertNull("Too small keyboard to hold more keys keyboard", params); in testLayoutError() 78 MoreKeysKeyboardParams params = createParams(1, 5, XPOS_M0); in testLayout1KeyFix5M0() local 79 assertEquals("1 key fix 5 M0 columns", 1, params.mNumColumns); in testLayout1KeyFix5M0() 80 assertEquals("1 key fix 5 M0 rows", 1, params.mNumRows); in testLayout1KeyFix5M0() 81 assertEquals("1 key fix 5 M0 left", 0, params.mLeftKeys); in testLayout1KeyFix5M0() [all …]
|
D | MoreKeysKeyboardBuilderAutoOrderTests.java | 51 final MoreKeysKeyboardParams params = new MoreKeysKeyboardParams(); in createParams() local 52 params.setParameters(numKeys, columnNum, WIDTH, HEIGHT, coordXInParent, KEYBOARD_WIDTH, in createParams() 55 return params; in createParams() 60 MoreKeysKeyboardParams params = null; in testLayoutError() local 63 params = createParams(maxColumns + 1, maxColumns + 1, HEIGHT); in testLayoutError() 68 assertNull("Too small keyboard to hold more keys keyboard", params); in testLayoutError() 78 MoreKeysKeyboardParams params = createParams(1, 5, XPOS_M0); in testLayout1KeyAuto5M0() local 79 assertEquals("1 key auto 5 M0 columns", 1, params.mNumColumns); in testLayout1KeyAuto5M0() 80 assertEquals("1 key auto 5 M0 rows", 1, params.mNumRows); in testLayout1KeyAuto5M0() 81 assertEquals("1 key auto 5 M0 left", 0, params.mLeftKeys); in testLayout1KeyAuto5M0() [all …]
|
/packages/modules/Uwb/service/java/com/android/server/uwb/params/ |
D | FiraEncoder.java | 17 package com.android.server.uwb.params; 31 import com.google.uwb.support.base.Params; 49 public TlvBuffer getTlvBuffer(Params param, ProtocolVersion protocolVersion) { in getTlvBuffer() 73 Params baseParam, FiraProtocolVersion uwbsFiraProtocolVersion) { in getTlvBufferFromFiraOpenSessionParams() 74 FiraOpenSessionParams params = (FiraOpenSessionParams) baseParam; in getTlvBufferFromFiraOpenSessionParams() local 75 int deviceType = params.getDeviceType(); in getTlvBufferFromFiraOpenSessionParams() 76 int resultReportConfig = getResultReportConfig(params); in getTlvBufferFromFiraOpenSessionParams() 77 int rangingRoundControl = getRangingRoundControl(params); in getTlvBufferFromFiraOpenSessionParams() 78 int deviceRole = params.getDeviceRole(); in getTlvBufferFromFiraOpenSessionParams() 81 .putByte(ConfigParam.RANGING_ROUND_USAGE, (byte) params.getRangingRoundUsage()) in getTlvBufferFromFiraOpenSessionParams() [all …]
|
D | CccEncoder.java | 17 package com.android.server.uwb.params; 30 import com.google.uwb.support.base.Params; 45 public TlvBuffer getTlvBuffer(Params param, ProtocolVersion protocolVersion) { in getTlvBuffer() 56 private TlvBuffer getTlvBufferFromCccOpenRangingParams(Params baseParam) { in getTlvBufferFromCccOpenRangingParams() 57 CccOpenRangingParams params = (CccOpenRangingParams) baseParam; in getTlvBufferFromCccOpenRangingParams() local 58 int hoppingConfig = params.getHoppingConfigMode(); in getTlvBufferFromCccOpenRangingParams() 59 int hoppingSequence = params.getHoppingSequence(); in getTlvBufferFromCccOpenRangingParams() 62 byte[] protocolVer = params.getProtocolVersion().toBytes(); in getTlvBufferFromCccOpenRangingParams() 87 .putByte(ConfigParam.CHANNEL_NUMBER, (byte) params.getChannel()) // CHANNEL_ID in getTlvBufferFromCccOpenRangingParams() 89 (byte) params.getNumResponderNodes()) // NUMBER_OF_ANCHORS in getTlvBufferFromCccOpenRangingParams() [all …]
|
D | AliroEncoder.java | 17 package com.android.server.uwb.params; 32 import com.google.uwb.support.base.Params; 49 public TlvBuffer getTlvBuffer(Params param, ProtocolVersion protocolVersion) { in getTlvBuffer() 56 private TlvBuffer getTlvBufferFromAliroOpenRangingParams(Params baseParam) { in getTlvBufferFromAliroOpenRangingParams() 57 AliroOpenRangingParams params = (AliroOpenRangingParams) baseParam; in getTlvBufferFromAliroOpenRangingParams() local 58 int hoppingConfig = params.getHoppingConfigMode(); in getTlvBufferFromAliroOpenRangingParams() 59 int hoppingSequence = params.getHoppingSequence(); in getTlvBufferFromAliroOpenRangingParams() 62 byte[] protocolVer = params.getProtocolVersion().toBytes(); in getTlvBufferFromAliroOpenRangingParams() 87 .putByte(ConfigParam.CHANNEL_NUMBER, (byte) params.getChannel()) // CHANNEL_ID in getTlvBufferFromAliroOpenRangingParams() 89 (byte) params.getNumResponderNodes()) // NUMBER_OF_ANCHORS in getTlvBufferFromAliroOpenRangingParams() [all …]
|
/packages/modules/Wifi/framework/java/android/net/wifi/ |
D | SecurityParams.java | 196 * Get the security type of this params. 205 * Check the security type of this params. 215 * Check whether the security of given params is the same as this one. 217 * @param params the testing security params. 220 public boolean isSameSecurityType(SecurityParams params) { in isSameSecurityType() argument 221 return params.mSecurityType == mSecurityType; in isSameSecurityType() 225 * Update security params to legacy WifiConfiguration object. 241 * Set this params enabled. 250 * Indicate this params is enabled or not. 386 * Indicate whether this params is H2E only mode. [all …]
|
/packages/modules/AdServices/sdksandbox/tests/unittest/src/android/app/sdksandbox/ |
D | SdkSandboxManagerUnitTest.java | 96 final Bundle params = new Bundle(); in testLoadSdkSuccess() local 101 mSdkSandboxManager.loadSdk(SDK_NAME, params, Runnable::run, outcomeReceiver); in testLoadSdkSuccess() 114 Mockito.eq(params), in testLoadSdkSuccess() 137 final Bundle params = new Bundle(); in testLoadSdkFailed() local 141 mSdkSandboxManager.loadSdk(SDK_NAME, params, Runnable::run, outcomeReceiver); in testLoadSdkFailed() 151 Mockito.eq(params), in testLoadSdkFailed() 198 final Bundle params = new Bundle(); in testRequestSurfacePackageSuccess() local 199 params.putInt(EXTRA_WIDTH_IN_PIXELS, 400); in testRequestSurfacePackageSuccess() 200 params.putInt(EXTRA_HEIGHT_IN_PIXELS, 500); in testRequestSurfacePackageSuccess() 201 params.putInt(EXTRA_DISPLAY_ID, 0); in testRequestSurfacePackageSuccess() [all …]
|
/packages/modules/Uwb/framework/tests/src/android/uwb/ |
D | RangingManagerTest.java | 56 private static final PersistableBundle PARAMS = new PersistableBundle(); field in RangingManagerTest 74 ATTRIBUTION_SOURCE, PARAMS, EXECUTOR, callback, /* chipIds= */ null); in testOpenSession_OpenRangingInvoked() 85 rangingManager.openSession(ATTRIBUTION_SOURCE, PARAMS, EXECUTOR, callback, VALID_CHIP_ID); in testOpenSession_validChipId_OpenRangingInvoked() 103 ATTRIBUTION_SOURCE, PARAMS, EXECUTOR, callback, VALID_CHIP_ID)); in testOpenSession_validChipId_RuntimeException() 117 ATTRIBUTION_SOURCE, PARAMS, EXECUTOR, callback, invalidChipId)); in testOpenSession_invalidChipId_IllegalArgumentException() 142 ATTRIBUTION_SOURCE, PARAMS, EXECUTOR, callback1, /* chipIds= */ null); in testOnRangingOpened_MultipleSessionsRegistered() 153 ATTRIBUTION_SOURCE, PARAMS, EXECUTOR, callback2, /* chipIds= */ null); in testOnRangingOpened_MultipleSessionsRegistered() 182 ATTRIBUTION_SOURCE, PARAMS, EXECUTOR, callback, /* chipIds= */ null); in testCorrectCallbackInvoked() 195 rangingManager.onRangingStarted(handle, PARAMS); in testCorrectCallbackInvoked() 196 verify(callback, times(1)).onStarted(eq(PARAMS)); in testCorrectCallbackInvoked() [all …]
|
D | RangingSessionTest.java | 63 private static final PersistableBundle PARAMS = new PersistableBundle(); field in RangingSessionTest 107 session.onServiceDiscovered(PARAMS); in testOnRangingOpened_OnServiceDiscoveredConnectedCalled() 108 verify(callback, times(1)).onServiceDiscovered(eq(PARAMS)); in testOnRangingOpened_OnServiceDiscoveredConnectedCalled() 110 session.onServiceConnected(PARAMS); in testOnRangingOpened_OnServiceDiscoveredConnectedCalled() 111 verify(callback, times(1)).onServiceConnected(eq(PARAMS)); in testOnRangingOpened_OnServiceDiscoveredConnectedCalled() 127 session.onRangingClosed(REASON, PARAMS); in testOnRangingOpened_CannotOpenClosedSession() 147 session.onRangingClosed(REASON, PARAMS); in testOnRangingClosed_OnClosedCalledWhenSessionNotOpen() 161 session.onRangingStarted(PARAMS); in testOnRangingClosed_OnClosedCalled() 162 session.onRangingClosed(REASON, PARAMS); in testOnRangingClosed_OnClosedCalled() 166 session.onRangingClosed(REASON, PARAMS); in testOnRangingClosed_OnClosedCalled() [all …]
|
D | UwbManagerTest.java | 70 private static final PersistableBundle PARAMS = new PersistableBundle(); field in UwbManagerTest 119 when(mIUwbAdapter.getSpecificationInfo(/*chipId=*/ null)).thenReturn(PARAMS); in testGettersAndSetters() 120 assertThat(mUwbManager.getSpecificationInfo()).isEqualTo(PARAMS); in testGettersAndSetters() 151 when(mIUwbAdapter.getChipInfos()).thenReturn(List.of(PARAMS)); in testGettersAndSetters() 152 assertThat(mUwbManager.getChipInfos()).isEqualTo(List.of(PARAMS)); in testGettersAndSetters() 163 when(mIUwbAdapter.getAllServiceProfiles()).thenReturn(PARAMS); in testGettersAndSetters() 164 assertThat(mUwbManager.getAllServiceProfiles()).isEqualTo(PARAMS); in testGettersAndSetters() 169 when(mIUwbAdapter.getAdfProvisioningAuthorities(PARAMS)).thenReturn(PARAMS); in testGettersAndSetters() 170 assertThat(mUwbManager.getAdfProvisioningAuthorities(PARAMS)).isEqualTo(PARAMS); in testGettersAndSetters() 171 doThrow(new RemoteException()).when(mIUwbAdapter).getAdfProvisioningAuthorities(PARAMS); in testGettersAndSetters() [all …]
|
/packages/modules/Permission/SafetyCenter/Config/tests/java/com/android/safetycenter/config/ |
D | ParserConfigInvalidTest.kt | 34 data class Params( dataClass 44 @Parameterized.Parameter lateinit var params: Params in toString() variable in com.android.safetycenter.config.ParserConfigInvalidTest 48 val inputStream = context.resources.openRawResource(params.configResourceId) in toString() 55 assertThat(thrown).hasMessageThat().isEqualTo(params.errorMessage) in toString() 56 if (params.causeErrorMessage != null) { in toString() 57 assertThat(thrown.cause).hasMessageThat().isEqualTo(params.causeErrorMessage) in toString() 66 Params( in parameters() 73 Params( in parameters() 79 Params( in parameters() 86 Params( in parameters() [all …]
|
/packages/modules/Uwb/service/support_lib/test/ |
D | FiraTests.java | 58 import com.google.uwb.support.base.Params; 153 FiraOpenSessionParams params = in testOpenSessionParams() local 223 assertEquals(params.getProtocolVersion(), protocolVersion); in testOpenSessionParams() 224 assertEquals(params.getSessionId(), sessionId); in testOpenSessionParams() 225 assertEquals(params.getSessionType(), sessionType); in testOpenSessionParams() 226 assertEquals(params.getDeviceType(), deviceType); in testOpenSessionParams() 227 assertEquals(params.getDeviceRole(), deviceRole); in testOpenSessionParams() 228 assertEquals(params.getRangingRoundUsage(), rangingRoundUsage); in testOpenSessionParams() 229 assertEquals(params.getMultiNodeMode(), multiNodeMode); in testOpenSessionParams() 230 assertEquals(params.getDeviceAddress(), deviceAddress); in testOpenSessionParams() [all …]
|
D | AliroTests.java | 28 import com.google.uwb.support.base.Params; 109 AliroOpenRangingParams params = in testOpenRangingParams() local 133 assertEquals(params.getProtocolVersion(), protocolVersion); in testOpenRangingParams() 134 assertEquals(params.getUwbConfig(), uwbConfig); in testOpenRangingParams() 136 params.getPulseShapeCombo().getInitiatorTx(), pulseShapeCombo.getInitiatorTx()); in testOpenRangingParams() 138 params.getPulseShapeCombo().getResponderTx(), pulseShapeCombo.getResponderTx()); in testOpenRangingParams() 139 assertEquals(params.getSessionId(), sessionId); in testOpenRangingParams() 140 assertEquals(params.getSessionType(), AliroParams.SESSION_TYPE_ALIRO); in testOpenRangingParams() 141 assertEquals(params.getRanMultiplier(), ranMultiplier); in testOpenRangingParams() 142 assertEquals(params.getChannel(), channel); in testOpenRangingParams() [all …]
|
D | CccTests.java | 28 import com.google.uwb.support.base.Params; 106 CccOpenRangingParams params = in testOpenRangingParams() local 130 assertEquals(params.getProtocolVersion(), protocolVersion); in testOpenRangingParams() 131 assertEquals(params.getUwbConfig(), uwbConfig); in testOpenRangingParams() 133 params.getPulseShapeCombo().getInitiatorTx(), pulseShapeCombo.getInitiatorTx()); in testOpenRangingParams() 135 params.getPulseShapeCombo().getResponderTx(), pulseShapeCombo.getResponderTx()); in testOpenRangingParams() 136 assertEquals(params.getSessionId(), sessionId); in testOpenRangingParams() 137 assertEquals(params.getSessionType(), CccParams.SESSION_TYPE_CCC); in testOpenRangingParams() 138 assertEquals(params.getRanMultiplier(), ranMultiplier); in testOpenRangingParams() 139 assertEquals(params.getChannel(), channel); in testOpenRangingParams() [all …]
|
/packages/modules/OnDevicePersonalization/tests/frameworktests/src/android/adservices/ondevicepersonalization/ |
D | IsolatedServiceTest.java | 99 Bundle params = new Bundle(); in testOnExecute() local 100 params.putParcelable(Constants.EXTRA_INPUT, input); in testOnExecute() 101 params.putBinder(Constants.EXTRA_DATA_ACCESS_SERVICE_BINDER, new TestDataAccessService()); in testOnExecute() 102 params.putBinder( in testOnExecute() 105 params.putBinder(Constants.EXTRA_MODEL_SERVICE_BINDER, new TestIsolatedModelService()); in testOnExecute() 106 mBinder.onRequest(Constants.OP_EXECUTE, params, new TestServiceCallback()); in testOnExecute() 125 Bundle params = new Bundle(); in testOnExecutePropagatesError() local 126 params.putParcelable(Constants.EXTRA_INPUT, input); in testOnExecutePropagatesError() 127 params.putBinder(Constants.EXTRA_DATA_ACCESS_SERVICE_BINDER, new TestDataAccessService()); in testOnExecutePropagatesError() 128 params.putBinder( in testOnExecutePropagatesError() [all …]
|
D | InferenceInputTest.java | 47 InferenceInput.Params.Builder builder = in buildParams_reusable() 48 new InferenceInput.Params.Builder(mRemoteData, MODEL_KEY); in buildParams_reusable() 51 InferenceInput.Params params = builder.setModelKey("other_kay").build(); in buildParams_reusable() local 53 assertThat(params.getModelKey()).isEqualTo("other_kay"); in buildParams_reusable() 62 InferenceInput.Params params = in buildInferenceInput_reusable() local 63 new InferenceInput.Params.Builder(mRemoteData, MODEL_KEY).build(); in buildInferenceInput_reusable() 67 params, in buildInferenceInput_reusable() 82 InferenceInput.Params params = in buildInput_success() local 83 new InferenceInput.Params.Builder(mRemoteData, MODEL_KEY).build(); in buildInput_success() 87 params, in buildInput_success() [all …]
|
D | OnDevicePersonalizationManagerTest.java | 93 PersistableBundle params = new PersistableBundle(); in testExecuteSuccess() local 94 params.putString(KEY_OP, "ok"); in testExecuteSuccess() 98 params, in testExecuteSuccess() 111 PersistableBundle params = new PersistableBundle(); in testExecuteUnknownError() local 112 params.putString(KEY_OP, "error"); in testExecuteUnknownError() 116 params, in testExecuteUnknownError() 127 PersistableBundle params = new PersistableBundle(); in testExecuteServiceError() local 128 params.putString(KEY_OP, "error"); in testExecuteServiceError() 129 params.putInt(KEY_STATUS_CODE, Constants.STATUS_SERVICE_FAILED); in testExecuteServiceError() 133 params, in testExecuteServiceError() [all …]
|
/packages/modules/OnDevicePersonalization/tests/cts/endtoend/src/com/android/ondevicepersonalization/cts/e2e/ |
D | InferenceInputTest.java | 54 InferenceInput.Params params = in buildInput_success() local 55 new InferenceInput.Params.Builder(mRemoteData, MODEL_KEY).build(); in buildInput_success() 59 params, in buildInput_success() 69 assertThat(inferenceInput.getParams()).isEqualTo(params); in buildInput_success() 78 InferenceInput.Params params = in buildInputWithSetters() local 79 new InferenceInput.Params.Builder(mRemoteData, MODEL_KEY).build(); in buildInputWithSetters() 83 params, in buildInputWithSetters() 86 .setParams(params) in buildInputWithSetters() 97 assertThat(inferenceInput.getParams()).isEqualTo(params); in buildInputWithSetters() 106 InferenceInput.Params params = in buildInput_batchNotSet_success() local [all …]
|
/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/ |
D | ObexAppParametersTest.java | 48 ObexAppParameters params = new ObexAppParameters(byteArray); in constructorWithByteArrays_withOneInvalidElement() local 49 assertThat(params.exists(KEY)).isTrue(); in constructorWithByteArrays_withOneInvalidElement() 52 assertThat(params.getByteArray(KEY)).isEqualTo(expected); in constructorWithByteArrays_withOneInvalidElement() 63 ObexAppParameters params = new ObexAppParameters(byteArray); in constructorWithByteArrays_withTwoInvalidElements() local 64 assertThat(params.exists(KEY)).isTrue(); in constructorWithByteArrays_withTwoInvalidElements() 67 assertThat(params.getByteArray(KEY)).isEqualTo(expected); in constructorWithByteArrays_withTwoInvalidElements() 78 ObexAppParameters params = ObexAppParameters.fromHeaderSet(headerSet); in fromHeaderSet() local 79 assertThat(params).isNotNull(); in fromHeaderSet() 82 assertThat(params.getByteArray(KEY)).isEqualTo(expected); in fromHeaderSet() 91 ObexAppParameters params = new ObexAppParameters(byteArray); in addToHeaderSet() local [all …]
|
/packages/modules/OnDevicePersonalization/tests/servicetests/src/com/android/ondevicepersonalization/services/data/ |
D | DataAccessServiceImplTest.java | 140 Bundle params = new Bundle(); in testRemoteDataLookup() local 141 params.putString(Constants.EXTRA_LOOKUP_KEYS, "key"); in testRemoteDataLookup() 144 params, in testRemoteDataLookup() 164 Bundle params = new Bundle(); in testRemoteDataLookupWithOverride() local 165 params.putString(Constants.EXTRA_LOOKUP_KEYS, "key1"); in testRemoteDataLookupWithOverride() 168 params, in testRemoteDataLookupWithOverride() 181 Bundle params = new Bundle(); in testLocalDataLookup() local 182 params.putString(Constants.EXTRA_LOOKUP_KEYS, "localkey"); in testLocalDataLookup() 185 params, in testLocalDataLookup() 205 Bundle params = new Bundle(); in testRemoteDataKeysetWithOverride() local [all …]
|
/packages/modules/Permission/SafetyCenter/Persistence/tests/java/com/android/safetycenter/persistence/ |
D | SafetyCenterIssuesPersistenceInvalidTest.kt | 30 data class Params( class in com.android.safetycenter.persistence.SafetyCenterIssuesPersistenceInvalidTest 39 @Parameterized.Parameter lateinit var params: Params in toString() variable in com.android.safetycenter.persistence.SafetyCenterIssuesPersistenceInvalidTest 43 val file = File(PATH + params.fileName) in toString() 50 assertThat(thrown).hasMessageThat().isEqualTo(params.errorMessage) in toString() 51 if (params.causeErrorMessage != null) { in toString() 52 assertThat(thrown.cause).hasMessageThat().isEqualTo(params.causeErrorMessage) in toString() 61 Params( 67 Params( 73 Params( 79 Params( [all …]
|
/packages/modules/Bluetooth/system/audio_bluetooth_hw/ |
D | utils_unittest.cc | 36 std::string params = ""; in TEST_F() local 37 map_ = ParseAudioParams(params); in TEST_F() 43 std::string params = ";"; in TEST_F() local 44 map_ = ParseAudioParams(params); in TEST_F() 50 std::string params = "key0"; in TEST_F() local 51 map_ = ParseAudioParams(params); in TEST_F() 59 std::string params = "key0="; in TEST_F() local 60 map_ = ParseAudioParams(params); in TEST_F() 68 std::string params = "key0=;"; in TEST_F() local 69 map_ = ParseAudioParams(params); in TEST_F() [all …]
|
/packages/modules/Wifi/framework/tests/src/android/net/wifi/ |
D | SecurityParamsTest.java | 44 private void verifySecurityParams(SecurityParams params, in verifySecurityParams() argument 52 assertTrue(params.isSecurityType(expectedSecurityType)); in verifySecurityParams() 53 assertEquals(expectedSecurityType, params.getSecurityType()); in verifySecurityParams() 55 assertTrue(params.getAllowedKeyManagement().get(b)); in verifySecurityParams() 58 assertTrue(params.getAllowedProtocols().get(b)); in verifySecurityParams() 61 assertTrue(params.getAllowedAuthAlgorithms().get(b)); in verifySecurityParams() 64 assertTrue(params.getAllowedPairwiseCiphers().get(b)); in verifySecurityParams() 67 assertTrue(params.getAllowedGroupCiphers().get(b)); in verifySecurityParams() 69 assertEquals(expectedRequirePmf, params.isRequirePmf()); in verifySecurityParams() 72 /** Verify the security params created by security type. */ [all …]
|
/packages/modules/Uwb/androidx_backend/tests/src/androidx/core/uwb/backend/impl/internal/ |
D | ConfigurationManagerTest.java | 96 FiraOpenSessionParams params = in testCreateOpenSessionParams() local 100 assertEquals(params.getDeviceRole(), RANGING_DEVICE_ROLE_INITIATOR); in testCreateOpenSessionParams() 101 assertFalse(params.isKeyRotationEnabled()); in testCreateOpenSessionParams() 102 assertEquals(params.getKeyRotationRate(), 0); in testCreateOpenSessionParams() 121 FiraOpenSessionParams params = in testCreateOpenSessionParams_ProvisionedSts() local 125 assertEquals(params.getStsConfig(), STS_CONFIG_PROVISIONED); in testCreateOpenSessionParams_ProvisionedSts() 126 assertArrayEquals(params.getSessionKey(), sessionKey); in testCreateOpenSessionParams_ProvisionedSts() 127 assertTrue(params.isKeyRotationEnabled()); in testCreateOpenSessionParams_ProvisionedSts() 128 assertEquals(params.getKeyRotationRate(), 0); in testCreateOpenSessionParams_ProvisionedSts() 129 assertEquals(params.getSlotDurationRstu(), convertMsToRstu(Utils.DURATION_2_MS)); in testCreateOpenSessionParams_ProvisionedSts() [all …]
|