/test/vts/tests/firmware_test/src/com/android/tests/firmware/ |
D | BootImageInfo.java | 64 byte[] bytes = new byte[4]; in BootImageInfo() 67 mRaf.read(bytes); in BootImageInfo() 68 mKernelSize = ByteBuffer.wrap(bytes).order(ByteOrder.LITTLE_ENDIAN).getInt(); in BootImageInfo() 71 mRaf.read(bytes); in BootImageInfo() 72 mImgHeaderVer = ByteBuffer.wrap(bytes).order(ByteOrder.LITTLE_ENDIAN).getInt(); in BootImageInfo() 79 mRaf.read(bytes); in BootImageInfo() 80 mRamdiskSize = ByteBuffer.wrap(bytes).order(ByteOrder.LITTLE_ENDIAN).getInt(); in BootImageInfo() 84 mRaf.read(bytes); in BootImageInfo() 85 mPageSize = ByteBuffer.wrap(bytes).order(ByteOrder.LITTLE_ENDIAN).getInt(); in BootImageInfo() 92 mRaf.read(bytes); in BootImageInfo() [all …]
|
/test/vts-testcase/kernel/encryption/ |
D | utils.cpp | 108 void RandomBytesForTesting(std::vector<uint8_t> &bytes) { in RandomBytesForTesting() argument 109 for (size_t i = 0; i < bytes.size(); i++) { in RandomBytesForTesting() 110 bytes[i] = rand(); in RandomBytesForTesting() 121 std::string BytesToHex(const std::vector<uint8_t> &bytes) { in BytesToHex() argument 123 for (uint8_t b : bytes) { in BytesToHex() 194 memcpy(fs_uuid->bytes, sb.s_uuid, kFilesystemUuidSize); in GetFilesystemUuid() 209 if (pread(fd, fs_uuid->bytes, kFilesystemUuidSize, kF2fsUuidOffset) != in GetFilesystemUuid() 297 << BytesToHex(info->uuid.bytes) << ", raw block device is " in GetFilesystemInfo() 311 bool VerifyDataRandomness(const std::vector<uint8_t> &bytes) { in VerifyDataRandomness() argument 315 size_t destLen = bytes.size() - std::min<size_t>(4, bytes.size()); in VerifyDataRandomness() [all …]
|
D | vts_kernel_encryption.h | 94 void RandomBytesForTesting(std::vector<uint8_t> &bytes); 98 std::string BytesToHex(const std::vector<uint8_t> &bytes); 110 uint8_t bytes[kFilesystemUuidSize]; member 122 bool VerifyDataRandomness(const std::vector<uint8_t> &bytes);
|
D | file_based_encryption_tests.cpp | 136 uint8_t bytes[kFscryptFileNonceSize]; member 146 uint8_t bytes[kFscryptMaxIVSize]; member 416 static bool MakeSomeCompressibleClusters(std::vector<uint8_t> &bytes, in MakeSomeCompressibleClusters() argument 419 if (bytes.size() % cluster_bytes != 0) { in MakeSomeCompressibleClusters() 420 ADD_FAILURE() << "Test file size (" << bytes.size() in MakeSomeCompressibleClusters() 425 int num_clusters = bytes.size() / cluster_bytes; in MakeSomeCompressibleClusters() 428 memset(&bytes[i * cluster_bytes], 0, 2 * kFilesystemBlockSize); in MakeSomeCompressibleClusters() 751 if (ioctl(fd, FS_IOC_GET_ENCRYPTION_NONCE, info->nonce.bytes) != 0) { in GenerateTestFile() 756 GTEST_LOG_(INFO) << "File nonce: " << BytesToHex(info->nonce.bytes); in GenerateTestFile() 804 hkdf_info.insert(hkdf_info.end(), fs_info_.uuid.bytes, in DerivePerModeEncryptionKey() [all …]
|
D | adiantum.cpp | 154 uint8_t bytes[64]; in XChaCha() member 161 dst[i + j] = src[i + j] ^ keystream.bytes[j]; in XChaCha()
|
/test/mlts/benchmark/src/com/android/nn/benchmark/core/ |
D | OutputMeanStdDev.java | 29 public OutputMeanStdDev(byte[] bytes) { in OutputMeanStdDev() argument 30 mNumOutputs = bytes.length / MeanStdDev.DATA_SIZE_BYTES; in OutputMeanStdDev() 32 ByteBuffer buffer = ByteBuffer.wrap(bytes); in OutputMeanStdDev()
|
/test/vts-testcase/security/avb/ |
D | gsi_validation_utils.cpp | 45 bool HexToBytes(const std::string &hex, std::vector<uint8_t> *bytes) { in HexToBytes() argument 49 bytes->resize(hex.size() / 2); in HexToBytes() 50 for (unsigned i = 0; i < bytes->size(); i++) { in HexToBytes() 56 bytes->at(i) = (hi << 4) | lo; in HexToBytes() 64 std::string BytesToHex(const std::vector<uint8_t> &bytes) { in BytesToHex() argument 66 retval.reserve(bytes.size() * 2 + 1); in BytesToHex() 67 for (uint8_t byte : bytes) { in BytesToHex()
|
D | gsi_validation_utils.h | 27 bool HexToBytes(const std::string &hex, std::vector<uint8_t> *bytes); 29 std::string BytesToHex(const std::vector<uint8_t> &bytes);
|
/test/mlts/benchmark/src/com/android/nn/benchmark/util/ |
D | IOUtils.java | 34 public static float[] readFloats(byte[] bytes, int dataSize) { in readFloats() argument 35 ByteBuffer buffer = ByteBuffer.wrap(bytes); in readFloats() 37 int size = bytes.length / dataSize; in readFloats()
|
/test/mlts/benchmark/jni/ |
D | benchmark_jni.cpp | 358 jfloat *bytes = env->GetFloatArrayElements(meanSquareErrorArray, nullptr); in Java_com_android_nn_benchmark_core_NNTestBase_runBenchmark() local 359 memcpy(bytes, in Java_com_android_nn_benchmark_core_NNTestBase_runBenchmark() 362 env->ReleaseFloatArrayElements(meanSquareErrorArray, bytes, 0); in Java_com_android_nn_benchmark_core_NNTestBase_runBenchmark() 365 jfloat *bytes = env->GetFloatArrayElements(maxSingleErrorArray, nullptr); in Java_com_android_nn_benchmark_core_NNTestBase_runBenchmark() local 366 memcpy(bytes, in Java_com_android_nn_benchmark_core_NNTestBase_runBenchmark() 369 env->ReleaseFloatArrayElements(maxSingleErrorArray, bytes, 0); in Java_com_android_nn_benchmark_core_NNTestBase_runBenchmark() 384 jbyte *bytes = env->GetByteArrayElements(inferenceOutput, nullptr); in Java_com_android_nn_benchmark_core_NNTestBase_runBenchmark() local 385 … memcpy(bytes, &rentry.inferenceOutputs[i][0], rentry.inferenceOutputs[i].size()); in Java_com_android_nn_benchmark_core_NNTestBase_runBenchmark() 386 env->ReleaseByteArrayElements(inferenceOutput, bytes, 0); in Java_com_android_nn_benchmark_core_NNTestBase_runBenchmark() 491 jfloat* bytes = env->GetFloatArrayElements(to, nullptr); in convertToJfloatArray() local [all …]
|
D | run_tflite.cpp | 280 output_tensor->data.uint8 + output_tensor->bytes); in saveInferenceOutput() 287 if (output_tensor->bytes != length) { in getOutputError() 289 output_tensor->bytes, length); in getOutputError() 298 elements_count = output_tensor->bytes; in getOutputError() 299 for (size_t i = 0; i < output_tensor->bytes; ++i) { in getOutputError() 309 elements_count = output_tensor->bytes / sizeof(float); in getOutputError() 310 for (size_t i = 0; i < output_tensor->bytes / sizeof(float); ++i) { in getOutputError() 391 input_tensor->bytes)) { in benchmark() 751 fwrite(output_tensor->data.raw, output_tensor->bytes, 1, f); in dumpAllLayers()
|
/test/app_compat/csuite/tools/script/ |
D | generate_module.py | 144 def parse_package_list(package_list_file: IO[bytes]) -> Set[bytes]: argument 181 out_file: IO[bytes]) -> Text: argument
|
D | generate_module_test.py | 56 def assert_valid_xml(self, xml_str: bytes) -> None: argument 86 def assert_braces_balanced(self, generated_str: bytes) -> None: argument
|
/test/vts/tests/firmware_dtbo_test/src/com/android/tests/firmwaredtbo/ |
D | FirmwareDtboVerification.java | 134 byte[] bytes = new byte[4]; in decompressDTEntries() 145 raf.read(bytes); in decompressDTEntries() 146 dtboItems[i] = ByteBuffer.wrap(bytes).order(ByteOrder.BIG_ENDIAN).getInt(); in decompressDTEntries() 157 raf.read(bytes); in decompressDTEntries() 158 int flags = ByteBuffer.wrap(bytes).order(ByteOrder.BIG_ENDIAN).getInt(); in decompressDTEntries()
|
/test/vts/vndk_utils/library/elf/ |
D | utils_test.py | 31 _SLEB_INPUT_DATA = bytes(bytearray.fromhex('0F71FF00800180800280807EFFFFFFFF'
|
/test/suite_harness/common/host-side/util/src/com/android/compatibility/common/util/ |
D | HostInfoStore.java | 262 public void addBytesResult(String name, byte[] bytes) throws IOException { in addBytesResult() argument 265 mJsonWriter.value(Base64.getEncoder().encodeToString(bytes)); in addBytesResult()
|
/test/dittosuite/ |
D | README.md | 243 - `int64 size` - New file size (in bytes). 254 - `int64 min` - Minimum value (in bytes) 255 - `int64 max` - Maximum value (in bytes) 274 - (optional) `int64 size` (`default = -1`) - How much data (in bytes) should be written in total. 276 - (optional) `int64 block_size` (`default = 4096`) - How much data (in bytes) should be written at 280 will start from this starting offset (in bytes). 302 - (optional) `int64 size` (`default = -1`) - How much data (in bytes) should be read in total. 304 - (optional) `int64 block_size` (`default = 4096`) - How much data (in bytes) should be read at 308 will start from this starting offset (in bytes).
|
/test/app_compat/csuite/harness/src/main/java/com/android/csuite/core/ |
D | TestUtils.java | 516 public void addTestArtifact(String name, LogDataType type, byte[] bytes) { in addTestArtifact() argument 517 mTestLogData.addTestLog(name, type, new ByteArrayInputStreamSource(bytes)); in addTestArtifact() 540 void addTestArtifact(String name, LogDataType type, byte[] bytes); in addTestArtifact() argument
|