Home
last modified time | relevance | path

Searched refs:getByteArray (Results 1 – 25 of 99) sorted by relevance

1234

/packages/modules/Uwb/service/tests/src/com/android/server/uwb/params/
DTlvDecoderBufferTest.java46 UwbUtil.getByteArray("0001010101020301000401050501010602040007020800080260090904C"
50 new Tlv((byte) 0, (byte) 1, UwbUtil.getByteArray("01")),
51 new Tlv((byte) 1, (byte) 1, UwbUtil.getByteArray("02")),
52 new Tlv((byte) 3, (byte) 1, UwbUtil.getByteArray("00")),
53 new Tlv((byte) 4, (byte) 1, UwbUtil.getByteArray("05")),
54 new Tlv((byte) 5, (byte) 1, UwbUtil.getByteArray("01")),
55 new Tlv((byte) 6, (byte) 2, UwbUtil.getByteArray("0400")),
56 new Tlv((byte) 7, (byte) 2, UwbUtil.getByteArray("0800")),
57 new Tlv((byte) 8, (byte) 2, UwbUtil.getByteArray("6009")),
58 new Tlv((byte) 9, (byte) 4, UwbUtil.getByteArray("C8000000")),
[all …]
DFiraEncoderTest.java130 UwbUtil.getByteArray("2D01060E01040F020400100206001D0807D59E4707D56022");
251 mFiraSessionv11TlvData = UwbUtil.getByteArray( in setUp()
258 mFiraOpenSessionTlvUtTag = UwbUtil.getByteArray( in setUp()
265 mFiraSessionv11TlvData = UwbUtil.getByteArray(RANGING_ROUND_USAGE_SS_TWR_TLV in setUp()
284 mFiraSessionv20TlvData = UwbUtil.getByteArray( in setUp()
310 mFiraSessionv20AbsoluteInitiationTimeTlvData = UwbUtil.getByteArray( in setUp()
336 mFiraOpenSessionTlvUtTag = UwbUtil.getByteArray( in setUp()
367 assertThat(tlvs.getByteArray()).isEqualTo(mFiraSessionv11TlvData); in testFiraOpenSessionParams_useUwbsUciVersion()
376 assertThat(tlvs.getByteArray()).isEqualTo(mFiraSessionv20TlvData); in testFiraOpenSessionParams_useUwbsUciVersion()
383 assertThat(tlvs.getByteArray()).isEqualTo(mFiraSessionv20AbsoluteInitiationTimeTlvData); in testFiraOpenSessionParams_useUwbsUciVersion()
[all …]
DAliroEncoderTest.java90 UwbUtil.getByteArray(TEST_ALIRO_OPEN_RANGING_TLV_DEFAULT);
113 assertThat(tlvs.getByteArray()).isEqualTo(TEST_ALIRO_OPEN_RANGING_TLV_DATA); in testAliroOpenRangingParams()
123 assertThat(tlvs.getByteArray()).isEqualTo(TEST_ALIRO_OPEN_RANGING_TLV_DATA); in testAliroOpenRangingParamsViaTlvEncoder()
136 UwbUtil.getByteArray("00010102010104010905010109048001000011010103010" in testAliroOpenRangingParamsWithAbsoluteInitiationTime()
141 assertThat(tlvs.getByteArray()).isEqualTo( in testAliroOpenRangingParamsWithAbsoluteInitiationTime()
163 assertThat(tlvs.getByteArray()).isEqualTo(UwbUtil.getByteArray(expectedTlvStr)); in testAliroOpenRangingParams_withRangeDataNtfConfigSupportedAndDisabled()
187 assertThat(tlvs.getByteArray()).isEqualTo(UwbUtil.getByteArray(expectedTlvStr)); in testAliroOpenRangingParams_withRangeDataNtfConfigSupportedAndEnabled()
213 assertThat(tlvs.getByteArray()).isEqualTo(UwbUtil.getByteArray(expectedTlvStr)); in testAliroOpenRangingParams_withRangeDataNtfConfigSupportedAndConfigured()
DCccEncoderTest.java90 UwbUtil.getByteArray(TEST_CCC_OPEN_RANGING_TLV_DEFAULT);
113 assertThat(tlvs.getByteArray()).isEqualTo(TEST_CCC_OPEN_RANGING_TLV_DATA); in testCccOpenRangingParams()
123 assertThat(tlvs.getByteArray()).isEqualTo(TEST_CCC_OPEN_RANGING_TLV_DATA); in testCccOpenRangingParamsViaTlvEncoder()
136 UwbUtil.getByteArray("00010102010104010905010109048001000011010103010" in testCccOpenRangingParamsWithAbsoluteInitiationTime()
141 assertThat(tlvs.getByteArray()).isEqualTo( in testCccOpenRangingParamsWithAbsoluteInitiationTime()
163 assertThat(tlvs.getByteArray()).isEqualTo(UwbUtil.getByteArray(expectedTlvStr)); in testCccOpenRangingParams_withRangeDataNtfConfigSupportedAndDisabled()
187 assertThat(tlvs.getByteArray()).isEqualTo(UwbUtil.getByteArray(expectedTlvStr)); in testCccOpenRangingParams_withRangeDataNtfConfigSupportedAndEnabled()
213 assertThat(tlvs.getByteArray()).isEqualTo(UwbUtil.getByteArray(expectedTlvStr)); in testCccOpenRangingParams_withRangeDataNtfConfigSupportedAndConfigured()
DGenericDecoderTest.java57 UwbUtil.getByteArray(
69 UwbUtil.getByteArray(
182 UwbUtil.getByteArray( in testGetGenericSpecificationViaTlvDecoderVersion1_WithoutCCC()
204 UwbUtil.getByteArray( in testGetGenericSpecificationViaTlvDecoderVersion1_WithoutFira()
226 UwbUtil.getByteArray( in testGetGenericSpecificationViaTlvDecoderVersion1_WithoutRadar()
DCccDecoderTest.java62 UwbUtil.getByteArray("0a0402000100"
106 UwbUtil.getByteArray(TEST_CCC_SPECIFICATION_TLV_DATA_STRING);
109 UwbUtil.getByteArray(TEST_CCC_SPECIFICATION_TLV_DATA_STRING_PRIORITIZED_CHANNELS);
111 UwbUtil.getByteArray(TEST_CCC_SPECIFICATION_TLV_DATA_STRING_UWBS_MAX_PPM);
DAliroDecoderTest.java62 UwbUtil.getByteArray("0a0402000100"
106 UwbUtil.getByteArray(TEST_ALIRO_SPECIFICATION_TLV_DATA_STRING);
109 UwbUtil.getByteArray(TEST_ALIRO_SPECIFICATION_TLV_DATA_STRING_PRIORITIZED_CHANNELS);
111 UwbUtil.getByteArray(TEST_ALIRO_SPECIFICATION_TLV_DATA_STRING_UWBS_MAX_PPM);
DRadarEncoderTest.java64 UwbUtil.getByteArray(
84 assertThat(tlvs.getByteArray()).isEqualTo(TEST_RADAR_OPEN_SESSION_TLV_DATA); in verifyRadarOpenSessionParamsTlvBuffer()
/packages/modules/Uwb/service/java/com/android/server/uwb/secure/csml/
DSessionData.java89 return sessionDataBuilder.build().getByteArray(); in toBytes()
97 tlvDecoderBuffer.getByteArray(tagType); in isPresent()
112 byte[] sessionDataVersion = tlvs.getByteArray(UWB_SESSION_DATA_VERSION_HEADER); in fromBytes()
117 ByteBuffer.wrap(tlvs.getByteArray(UWB_SESSION_ID)).getInt()); in fromBytes()
121 ByteBuffer.wrap(tlvs.getByteArray(UWB_SUB_SESSION_ID)).getInt()); in fromBytes()
124 byte[] configurationParams = tlvs.getByteArray(CONFIGURATION_PARAMS); in fromBytes()
129 byte[] secureRangingInfo = tlvs.getByteArray(SECURE_RANGING_INFO_TAG); in fromBytes()
DControleeInfo.java64 return controleeInfoBuilder.build().getByteArray(); in toBytes()
73 tlvDecoderBuffer.getByteArray(tagType); in isPresent()
93 byte[] controleeInfoVersion = tlvs.getByteArray(UWB_CONTROLEE_INFO_VERSION_HEADER); in fromBytes()
97 byte[] uwbCapability = tlvs.getByteArray(UWB_CAPABILITY); in fromBytes()
DConfigurationParams.java298 return configParamsBuilder.build().getByteArray(); in toBytes()
311 tlvDecoderBuffer.getByteArray(tagType); in isPresent()
332 byte[] firaPhyVersion = configParamsTlv.getByteArray(FIRA_PHY_VERSION); in fromBytes()
340 byte[] firaMacVersion = configParamsTlv.getByteArray(FIRA_MAC_VERSION); in fromBytes()
434 configParamsTlv.getByteArray(CONTROLEE_SHORT_MAC_ADDRESS)); in fromBytes()
439 configParamsTlv.getByteArray(CONTROLLER_MAC_ADDRESS)); in fromBytes()
452 ByteBuffer.wrap(configParamsTlv.getByteArray(SLOT_DURATION)).getInt()); in fromBytes()
457 configParamsTlv.getByteArray(RANGING_INTERVAL)).getInt()); in fromBytes()
469 ByteBuffer.wrap(configParamsTlv.getByteArray(MAX_RR_RETRY)).getInt()); in fromBytes()
DSecureRangingInfo.java61 return secureInfoBuilder.build().getByteArray(); in toBytes()
67 return Optional.of(parsedTlvBuffer.getByteArray(tag)); in getByteArrayValue()
/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/
DObexAppParametersTest.java52 assertThat(params.getByteArray(KEY)).isEqualTo(expected); in constructorWithByteArrays_withOneInvalidElement()
67 assertThat(params.getByteArray(KEY)).isEqualTo(expected); in constructorWithByteArrays_withTwoInvalidElements()
82 assertThat(params.getByteArray(KEY)).isEqualTo(expected); in fromHeaderSet()
131 byte[] byteArray = params.getByteArray(KEY); in add_long()
150 assertThat(params.getByteArray(KEY)).isEqualTo(value); in add_byteArray()
162 assertThat(emptyParams.getByteArray(KEY)).isNull(); in get_errorCases()
/packages/services/Car/service/src/com/android/car/hal/
DHalPropValue.java162 public abstract byte[] getByteArray(); in getByteArray() method in HalPropValue
243 if (!Arrays.equals(other.getByteArray(), getByteArray())) { in equals()
244 Slogf.i(TAG, "ByteValues mismatch, got " + Arrays.toString(other.getByteArray()) in equals()
245 + " want " + Arrays.toString(getByteArray())); in equals()
324 value = getByteArray(); in toCarPropertyValue()
/packages/modules/Uwb/service/java/com/android/server/uwb/params/
DAliroDecoder.java110 byte[] hopModeKey = tlvs.getByteArray(ConfigParam.HOP_MODE_KEY); in getAliroRangingStartedParamsFromTlvBuffer()
136 byte[] versions = tlvs.getByteArray(CCC_SUPPORTED_VERSIONS); in getAliroSpecificationParamsFromTlvBuffer()
144 byte[] configs = tlvs.getByteArray(CCC_SUPPORTED_UWB_CONFIGS); in getAliroSpecificationParamsFromTlvBuffer()
148 byte[] pulse_shape_combos = tlvs.getByteArray(CCC_SUPPORTED_PULSE_SHAPE_COMBOS); in getAliroSpecificationParamsFromTlvBuffer()
177 byte[] syncCodes = tlvs.getByteArray(CCC_SUPPORTED_SYNC_CODES); in getAliroSpecificationParamsFromTlvBuffer()
188 int syncCodes = ByteBuffer.wrap(tlvs.getByteArray(CCC_SUPPORTED_SYNC_CODES)).getInt(); in getAliroSpecificationParamsFromTlvBuffer()
197 byte[] prioritizedChannels = tlvs.getByteArray(CCC_PRIORITIZED_CHANNEL_LIST); in getAliroSpecificationParamsFromTlvBuffer()
DCccDecoder.java109 byte[] hopModeKey = tlvs.getByteArray(ConfigParam.HOP_MODE_KEY); in getCccRangingStartedParamsFromTlvBuffer()
134 byte[] versions = tlvs.getByteArray(CCC_SUPPORTED_VERSIONS); in getCccSpecificationParamsFromTlvBuffer()
142 byte[] configs = tlvs.getByteArray(CCC_SUPPORTED_UWB_CONFIGS); in getCccSpecificationParamsFromTlvBuffer()
146 byte[] pulse_shape_combos = tlvs.getByteArray(CCC_SUPPORTED_PULSE_SHAPE_COMBOS); in getCccSpecificationParamsFromTlvBuffer()
183 byte[] syncCodes = tlvs.getByteArray(CCC_SUPPORTED_SYNC_CODES); in getCccSpecificationParamsFromTlvBuffer()
194 int syncCodes = ByteBuffer.wrap(tlvs.getByteArray(CCC_SUPPORTED_SYNC_CODES)).getInt(); in getCccSpecificationParamsFromTlvBuffer()
203 byte[] prioritizedChannels = tlvs.getByteArray(CCC_PRIORITIZED_CHANNEL_LIST); in getCccSpecificationParamsFromTlvBuffer()
DFiraDecoder.java197 byte[] versionCheck = tlvs.getByteArray(SUPPORTED_FIRA_PHY_VERSION_RANGE_VER_2_0); in getFiraSpecificationParamsFromTlvBuffer()
200 byte[] phyVersions = tlvs.getByteArray(SUPPORTED_FIRA_PHY_VERSION_RANGE_VER_1_0); in getFiraSpecificationParamsFromTlvBuffer()
203 byte[] macVersions = tlvs.getByteArray(SUPPORTED_FIRA_MAC_VERSION_RANGE_VER_1_0); in getFiraSpecificationParamsFromTlvBuffer()
382 byte[] hprfSets = tlvs.getByteArray(SUPPORTED_HPRF_PARAMETER_SETS_VER_1_0); in getFiraSpecificationParamsFromTlvBuffer()
456 byte[] phyVersions = tlvs.getByteArray(SUPPORTED_FIRA_PHY_VERSION_RANGE_VER_2_0); in getFiraSpecificationParamsFromTlvBuffer()
459 byte[] macVersions = tlvs.getByteArray(SUPPORTED_FIRA_MAC_VERSION_RANGE_VER_2_0); in getFiraSpecificationParamsFromTlvBuffer()
463 byte[] deviceRolesUci = tlvs.getByteArray(SUPPORTED_DEVICE_ROLES_VER_2_0); in getFiraSpecificationParamsFromTlvBuffer()
499 byte[] rangingMethodUci = tlvs.getByteArray(SUPPORTED_RANGING_METHOD_VER_2_0); in getFiraSpecificationParamsFromTlvBuffer()
669 byte[] hprfSets = tlvs.getByteArray(SUPPORTED_HPRF_PARAMETER_SETS_VER_2_0); in getFiraSpecificationParamsFromTlvBuffer()
819 byte[] rangeDataNtfConfigUciBytes = tlvs.getByteArray(SUPPORTED_RANGE_DATA_NTF_CONFIG); in getFiraSpecificationParamsFromTlvBuffer()
DTlvDecoderBuffer.java87 public byte[] getByteArray() { in getByteArray() method in TlvDecoderBuffer
189 public byte[] getByteArray(int tagType) { in getByteArray() method in TlvDecoderBuffer
/packages/modules/OnDevicePersonalization/tests/frameworktests/src/com/android/ondevicepersonalization/internal/util/
DByteArrayParceledSliceTest.java71 byte[] result = parceledByteArray.getByteArray(); in runTest()
87 byte[] result = parceledByteArray.getByteArray(); in runTestForNullArray()
104 byte[] result = parceledByteArray.getByteArray(); in runTestForEmptyArray()
133 byte[] contents = parceledByteArray.getByteArray(); in run()
/packages/modules/OnDevicePersonalization/federatedcompute/src/com/android/federatedcompute/services/http/
DHttpClient.java155 getByteArray( in performRequest()
164 getByteArray( in performRequest()
181 private byte[] getByteArray(@Nullable InputStream in, long contentLength) throws IOException { in getByteArray() method in HttpClient
/packages/modules/Uwb/tests/cts/tests/src/android/uwb/cts/
DUwbAddressTest.java48 byte[] addressBytes = getByteArray(len); in runFromBytes()
54 private byte[] getByteArray(int len) { in getByteArray() method in UwbAddressTest
/packages/modules/OnDevicePersonalization/tests/servicetests/src/com/android/ondevicepersonalization/services/federatedcompute/
DOdpExampleStoreIteratorTest.java81 mExpectedExample, result.getByteArray(EXTRA_EXAMPLE_ITERATOR_RESULT)); in onIteratorNextSuccess()
84 result.getByteArray(EXTRA_EXAMPLE_ITERATOR_RESUMPTION_TOKEN)); in onIteratorNextSuccess()
/packages/apps/Settings/tests/unit/src/com/android/settings/biometrics2/ui/model/
DCredentialModelTest.kt118 val value1 = bundle1.getByteArray(key) in checkBundleByteArrayValue()
119 val value2 = bundle2.getByteArray(key) in checkBundleByteArrayValue()
/packages/apps/Settings/src/com/android/settings/security/
DCredentialStorage.java155 final byte[] privateKeyData = bundle.getByteArray(Credentials.EXTRA_USER_PRIVATE_KEY_DATA); in installIfAvailable()
156 final byte[] certData = bundle.getByteArray(Credentials.EXTRA_USER_CERTIFICATE_DATA); in installIfAvailable()
157 final byte[] caListData = bundle.getByteArray(Credentials.EXTRA_CA_CERTIFICATES_DATA); in installIfAvailable()
/packages/apps/Car/Settings/src/com/android/car/settings/security/
DCredentialStorageActivity.java217 final byte[] privateKeyData = installBundle.getByteArray( in installIfAvailable()
219 final byte[] certData = installBundle.getByteArray(Credentials.EXTRA_USER_CERTIFICATE_DATA); in installIfAvailable()
220 final byte[] caListData = installBundle.getByteArray( in installIfAvailable()

1234