/system/netd/include/binder_utils/ |
D | BinderUtil.h | 66 std::string output; in binderCallLogFn() local 71 output.append(logTransaction["method_name"].asString() + "("s); in binderCallLogFn() 78 output.append(value); in binderCallLogFn() 80 output.append(", "s); in binderCallLogFn() 83 output.append(")"s); in binderCallLogFn() 89 output.append(" -> "s); in binderCallLogFn() 96 output.append(::android::base::StringPrintf( in binderCallLogFn() 103 output.append(::android::base::StringPrintf("{%s}", fastWriter.write(returnArgs).c_str())); in binderCallLogFn() 106 output.append( in binderCallLogFn() 108 logFn(output); in binderCallLogFn()
|
/system/keymaster/tests/ |
D | ckdf_test.cpp | 33 const char* output; member 92 auto expected = hex2blob(test.output); in TEST() 94 KeymasterKeyBlob output; in TEST() local 95 output.Reset(expected.data_length); in TEST() 97 ASSERT_EQ(KM_ERROR_OK, ckdf(key, label, context, &output)); in TEST() 98 EXPECT_TRUE(std::equal(output.begin(), output.end(), expected.begin())); in TEST()
|
/system/core/liblog/tests/ |
D | logprint_test.cpp | 32 char output[output_size]; in TEST() local 34 output_size = convertPrintable(output, input, strlen(input)); in TEST() 36 EXPECT_STREQ(input, output); in TEST() 46 char output[output_size]; in TEST() local 48 output_size = convertPrintable(output, input, strlen(input)); in TEST() 50 EXPECT_STREQ(expected_output, output); in TEST() 58 char output[output_size]; in TEST() local 60 output_size = convertPrintable(output, input, strlen(input)); in TEST() 62 EXPECT_STREQ(input, output); in TEST() 72 char output[output_size]; in TEST() local [all …]
|
/system/keymaster/km_openssl/ |
D | kdf.cpp | 61 bool Kdf::Uint32ToBigEndianByteArray(uint32_t number, uint8_t* output) { in Uint32ToBigEndianByteArray() argument 62 if (!output) in Uint32ToBigEndianByteArray() 65 output[0] = (number >> 24) & 0xff; in Uint32ToBigEndianByteArray() 66 output[1] = (number >> 16) & 0xff; in Uint32ToBigEndianByteArray() 67 output[2] = (number >> 8) & 0xff; in Uint32ToBigEndianByteArray() 68 output[3] = (number)&0xff; in Uint32ToBigEndianByteArray()
|
D | block_cipher_operation.cpp | 171 Buffer* output, size_t* input_consumed) { in Update() argument 174 if (!InternalUpdate(input.peek_read(), input.available_read(), output, &error)) return error; in Update() 188 AuthorizationSet* output_params, Buffer* output) { in Finish() argument 190 if (!UpdateForFinish(additional_params, input, output_params, output, &error)) return error; in Finish() 191 if (!output->reserve(block_size_bytes())) return KM_ERROR_MEMORY_ALLOCATION_FAILED; in Finish() 198 if (!EVP_CipherFinal_ex(&ctx_, output->peek_write(), &output_written)) { in Finish() 206 if (!output->advance_write(output_written)) return KM_ERROR_UNKNOWN_ERROR; in Finish() 360 Buffer* output, keymaster_error_t* error) { in InternalUpdate() argument 361 assert(output); in InternalUpdate() 366 if (!output->reserve(input_length + block_size_bytes())) { in InternalUpdate() [all …]
|
D | ckdf.cpp | 42 KeymasterKeyBlob* output) { in DEFINE_OPENSSL_OBJECT_POINTER() 46 const uint32_t blocks = div_round_up(output->key_material_size, AES_BLOCK_SIZE); in DEFINE_OPENSSL_OBJECT_POINTER() 47 const uint32_t L = output->key_material_size * 8; // bits in DEFINE_OPENSSL_OBJECT_POINTER() 70 auto output_pos = const_cast<uint8_t*>(output->begin()); in DEFINE_OPENSSL_OBJECT_POINTER() 71 memset(output_pos, 0, output->key_material_size); in DEFINE_OPENSSL_OBJECT_POINTER() 106 if (output_pos <= output->end() - AES_BLOCK_SIZE) { in DEFINE_OPENSSL_OBJECT_POINTER() 112 size_t to_copy = output->end() - output_pos; in DEFINE_OPENSSL_OBJECT_POINTER() 119 assert(output_pos == output->end()); in DEFINE_OPENSSL_OBJECT_POINTER()
|
/system/bt/build/toolchain/gcc/ |
D | BUILD.gn | 21 depfile = "{{output}}.d" 22 …-MMD -MF $depfile {{defines}} {{include_dirs}} {{cflags}} {{cflags_c}} -c {{source}} -o {{output}}" 24 description = "CC {{output}}" 31 depfile = "{{output}}.d" 32 …MMD -MF $depfile {{defines}} {{include_dirs}} {{cflags}} {{cflags_cc}} -c {{source}} -o {{output}}" 34 description = "CXX {{output}}" 41 rspfile = "{{output}}.rsp" 42 command = "rm -f {{output}} && ar rcs {{output}} @$rspfile" 89 command = "touch {{output}}" 90 description = "STAMP {{output}}" [all …]
|
/system/core/adb/fastdeploy/deploypatchgenerator/ |
D | patch_utils.cpp | 81 void PatchUtils::WriteSignature(borrowed_fd output) { in WriteSignature() argument 82 WriteFdExactly(output, kSignature, sizeof(kSignature) - 1); in WriteSignature() 85 void PatchUtils::WriteLong(int64_t value, borrowed_fd output) { in WriteLong() argument 87 WriteFdExactly(output, &littleEndian, sizeof(littleEndian)); in WriteLong() 90 void PatchUtils::WriteString(const std::string& value, android::base::borrowed_fd output) { in WriteString() argument 91 WriteLong(value.size(), output); in WriteString() 92 WriteFdExactly(output, value); in WriteString() 95 void PatchUtils::Pipe(borrowed_fd input, borrowed_fd output, size_t amount) { in Pipe() argument 106 WriteFdExactly(output, buffer, readAmount); in Pipe()
|
D | deploy_patch_generator.cpp | 103 static void WritePatchEntry(const PatchEntry& patchEntry, borrowed_fd input, borrowed_fd output, in WritePatchEntry() argument 110 PatchUtils::WriteLong(patchEntry.deltaFromDeviceDataStart, output); in WritePatchEntry() 112 PatchUtils::Pipe(input, output, patchEntry.deltaFromDeviceDataStart); in WritePatchEntry() 117 PatchUtils::WriteLong(patchEntry.deviceDataOffset, output); in WritePatchEntry() 118 PatchUtils::WriteLong(patchEntry.deviceDataLength, output); in WritePatchEntry() 125 const std::string& deviceApkPath, borrowed_fd output) { in GeneratePatch() argument 131 PatchUtils::WriteSignature(output); in GeneratePatch() 132 PatchUtils::WriteLong(newApkSize, output); in GeneratePatch() 133 PatchUtils::WriteString(deviceApkPath, output); in GeneratePatch() 153 WritePatchEntry(patchEntry, input, output, &realSizeOut); in GeneratePatch() [all …]
|
D | deploy_patch_generator_test.cpp | 62 TemporaryFile output; in TEST() local 64 generator.CreatePatch(apkPath.c_str(), {}, output.fd); in TEST() 67 long patchSize = adb_lseek(output.fd, 0L, SEEK_END); in TEST() 80 TemporaryFile output; in TEST() local 81 output.DoNotRemove(); in TEST() 83 generator.CreatePatch(apkPath.c_str(), metadata, output.fd); in TEST() 86 int64_t patchSize = adb_lseek(output.fd, 0L, SEEK_END); in TEST()
|
D | patch_utils_test.cpp | 62 TemporaryFile output; in TEST() local 63 PatchUtils::WriteLong(0x0011223344556677, output.fd); in TEST() 64 adb_lseek(output.fd, 0, SEEK_SET); in TEST() 66 EXPECT_TRUE(FileMatchesContent(output.fd, expected, 8)); in TEST() 72 TemporaryFile output; in TEST() local 77 PatchUtils::Pipe(input.fd, output.fd, expected.size()); in TEST() 79 EXPECT_TRUE(FileMatchesContent(output.fd, expected.c_str(), expected.size())); in TEST() 84 TemporaryFile output; in TEST() local 85 PatchUtils::WriteSignature(output.fd); in TEST() 87 EXPECT_TRUE(FileMatchesContent(output.fd, contents.c_str(), contents.size())); in TEST()
|
D | patch_utils.h | 43 static void WriteSignature(android::base::borrowed_fd output); 47 static void WriteLong(int64_t value, android::base::borrowed_fd output); 51 static void WriteString(const std::string& value, android::base::borrowed_fd output); 55 static void Pipe(android::base::borrowed_fd input, android::base::borrowed_fd output,
|
/system/tools/mkbootimg/ |
D | mkbootimg.py | 70 args.output.write(pack('8s', BOOT_MAGIC)) 71 args.output.write(pack( 78 args.output.write(pack('4I', 0, 0, 0, 0)) # reserved 80 args.output.write(pack('I', args.header_version)) # version of bootimage header 81 args.output.write(pack('1536s', args.cmdline.encode())) 82 pad_file(args.output, BOOT_IMAGE_HEADER_V3_PAGESIZE) 116 args.output.write(pack('8s', BOOT_MAGIC)) 119 args.output.write(pack( 131 args.output.write(pack('16s', args.board.encode())) # asciiz product name 132 args.output.write(pack('512s', args.cmdline[:512].encode())) [all …]
|
/system/extras/tests/workloads/ |
D | defs.sh | 57 (-o) output=$2; shift;; 127 output=${output:="./out"} 130 if [ -f $output ]; then 131 > $output 148 echo DEBUG: $* >&2 >> $output 291 echo =============================== >> $output 292 echo Before iteration $_iter >> $output 293 echo =============================== >> $output 294 ${ADB}cat /proc/meminfo 2>&1 >> $output 295 ${ADB}dumpsys meminfo 2>&1 >> $output [all …]
|
/system/bt/build/toolchain/clang/ |
D | BUILD.gn | 40 depfile = "{{output}}.d" 41 …-MMD -MF $depfile {{defines}} {{include_dirs}} {{cflags}} {{cflags_c}} -c {{source}} -o {{output}}" 43 description = "CC {{output}}" 50 depfile = "{{output}}.d" 51 …MMD -MF $depfile {{defines}} {{include_dirs}} {{cflags}} {{cflags_cc}} -c {{source}} -o {{output}}" 53 description = "CXX {{output}}" 60 rspfile = "{{output}}.rsp" 61 command = "rm -f {{output}} && ar rcs {{output}} @$rspfile" 108 command = "touch {{output}}" 109 description = "STAMP {{output}}" [all …]
|
/system/core/libutils/ |
D | Unicode_test.cpp | 103 char16_t output[1 + 1 + 1 + 2 + 1]; // Room for NULL in TEST_F() local 105 utf8_to_utf16(str, sizeof(str), output, sizeof(output) / sizeof(output[0])); in TEST_F() 107 EXPECT_EQ(0x0030, output[0]) in TEST_F() 109 EXPECT_EQ(0x0100, output[1]) in TEST_F() 111 EXPECT_EQ(0x2323, output[2]) in TEST_F() 113 EXPECT_EQ(0xD800, output[3]) in TEST_F() 115 EXPECT_EQ(0xDC00, output[4]) in TEST_F() 117 EXPECT_EQ(NULL, output[5]) in TEST_F()
|
/system/core/adb/ |
D | compression_utils.h | 57 virtual DecodeResult Decode(std::span<char>* output) = 0; 79 virtual EncodeResult Encode(Block* output) = 0; 93 DecodeResult Decode(std::span<char>* output) final { in Decode() 102 *output = std::span(output_buffer_.data(), static_cast<char*>(p)); in Decode() 113 EncodeResult Encode(Block* output) final { in Encode() 114 output->clear(); in Encode() 115 output->resize(output_block_size_); in Encode() 117 size_t available_out = output->size(); in Encode() 118 void* p = output->data(); in Encode() 127 output->resize(output->size() - available_out); in Encode() [all …]
|
D | test_adb.py | 116 output = subprocess.check_output(["adb", "connect", serial]) 117 unittest.assertEqual(output.strip(), 399 err.output.strip(), 412 output = subprocess.check_output(["adb", "-P", str(server_port), 414 self.assertEqual(output.strip(), b"device") 442 output = subprocess.check_output(["adb", "connect", serial]) 444 output.strip(), 457 output = subprocess.check_output(["adb", "-s", serial, 459 self.assertEqual(output.strip(), b"device") 465 output, _ = proc.communicate() [all …]
|
/system/bt/gd/crypto_toolbox/ |
D | aes_cmac.cc | 62 Octet16 output; in aes_128() local 69 aes_encrypt(message_reversed.data(), output.data(), &ctx); in aes_128() 71 std::reverse(output.begin(), output.end()); in aes_128() 72 return output; in aes_128() 85 static void leftshift_onebit(uint8_t* input, uint8_t* output) { in leftshift_onebit() argument 90 output[i] = (input[i] << 1) | overflow; in leftshift_onebit() 98 Octet16 output; in cmac_aes_k_calculate() local 106 output = aes_128(key, &cmac_cb.text[(cmac_cb.round - i) * OCTET16_LEN], OCTET16_LEN); in cmac_aes_k_calculate() 107 x = output; in cmac_aes_k_calculate() 111 return output; in cmac_aes_k_calculate()
|
/system/tools/hidl/test/error_test/ |
D | hidl_error_test.sh | 18 output=$($HIDL_GEN_PATH -L check -r test:$HIDL_ERROR_TEST_DIR test.$package@1.0 2>&1) 24 echo "$output" | while read line; do echo "test output: $line"; done 33 if [[ $output != *"$error"* ]]; then 35 echo "$output" | while read line; do echo "test output: $line"; done
|
/system/bt/stack/crypto_toolbox/ |
D | aes_cmac.cc | 65 Octet16 output; in aes_128() local 72 aes_encrypt(message_reversed.data(), output.data(), &ctx); in aes_128() 74 std::reverse(output.begin(), output.end()); in aes_128() 75 return output; in aes_128() 89 static void leftshift_onebit(uint8_t* input, uint8_t* output) { in leftshift_onebit() argument 95 output[i] = (input[i] << 1) | overflow; in leftshift_onebit() 103 Octet16 output; in cmac_aes_k_calculate() local 113 output = aes_128(key, &cmac_cb.text[(cmac_cb.round - i) * OCTET16_LEN], in cmac_aes_k_calculate() 115 x = output; in cmac_aes_k_calculate() 119 return output; in cmac_aes_k_calculate()
|
/system/netd/server/ |
D | IptablesRestoreController.cpp | 208 std::string *output) { in sendCommand() argument 247 if (!drainAndWaitForAck(*process, command, output)) { in sendCommand() 273 std::string *output) { in drainAndWaitForAck() argument 309 output->append(buffer, size); in drainAndWaitForAck() 310 size_t pos = output->find(PING); in drainAndWaitForAck() 312 if (output->size() > pos + PING_SIZE) { in drainAndWaitForAck() 313 size_t extra = output->size() - (pos + PING_SIZE); in drainAndWaitForAck() 315 extra, output->substr(pos + PING_SIZE, 128).c_str()); in drainAndWaitForAck() 317 output->resize(pos); in drainAndWaitForAck() 348 std::string *output) { in execute() argument [all …]
|
D | IptablesRestoreControllerTest.cpp | 160 std::string output; in TEST_F() local 170 EXPECT_EQ(0, con.execute(IptablesTarget::V4V6, "#Test\n", &output)); in TEST_F() 171 EXPECT_EQ("#Test\n#Test\n", output); // One for IPv4 and one for IPv6. in TEST_F() 183 std::string *output = (i % 2) ? &buffer : nullptr; in TEST_F() local 184 ASSERT_EQ(-1, con.execute(target, "malformed command\n", output)) << in TEST_F() 186 ASSERT_EQ(0, con.execute(target, "#Test\n", output)) << in TEST_F() 192 std::string output; in TEST_F() local 195 EXPECT_EQ(0, con.execute(IptablesTarget::V4V6, "#Test\n", &output)); in TEST_F() 241 std::string output; in TEST_F() local 243 EXPECT_EQ(0, con.execute(IptablesTarget::V4V6, commandString, &output)); in TEST_F() [all …]
|
/system/extras/tools/ |
D | graph_lockdep_chains | 49 output="cat -" 129 --output | -o) 130 if [ "${output}" != "cat -" ]; then 135 output="cat - > ${2}" # run through eval 139 --output=*) 140 if [ "${output}" != "cat -" ]; then 145 output="cat - > ${1#--output=}" # run through eval 284 eval ${output}
|
/system/core/logd/ |
D | LogStatistics.cpp | 561 std::string output = formatLine(name, size, pruned); in format() local 564 return output; in format() 590 output += formatLine(std::string(" PID/UID COMMAND LINE"), ditto, in format() 592 output += byPid; in format() 595 return output; in format() 736 std::string output; in formatMsec() local 737 if (val < sec) return output; in formatMsec() 740 output = android::base::StringPrintf("%" PRIu64 "d ", val / day); in formatMsec() 745 output += android::base::StringPrintf("%" PRIu64 ":", in formatMsec() 748 output += android::base::StringPrintf( in formatMsec() [all …]
|