Home
last modified time | relevance | path

Searched refs:output (Results 1 – 25 of 362) sorted by relevance

12345678910>>...15

/system/extras/simpleperf/scripts/test/
Ddebug_unwind_reporter_test.py29 output = self.run_reporter([])
30 self.assertFalse('__start_thread' in output)
31 output = self.run_reporter(['--show-callchain-fixed-by-joiner'])
32 self.assertTrue('__start_thread' in output)
35 output = self.run_reporter(['--summary'])
36 self.assertTrue('Error Code' in output)
39 output = self.run_reporter(['--exclude-error-code', '1'])
40 self.assertFalse('sample_time: 626968109563718' in output)
41 output = self.run_reporter(
43 self.assertFalse('sample_time: 626968109563718' in output)
[all …]
Dpprof_proto_generator_test.py56 output = self.run_generator(options)
57 self.assertIn(key1, output)
58 self.assertIn(key2, output)
59 output = self.run_generator(['--tid', '10459'])
60 self.assertIn(key1, output)
61 self.assertNotIn(key2, output)
62 output = self.run_generator(['--tid', '10463'])
63 self.assertNotIn(key1, output)
64 self.assertIn(key2, output)
70 output = self.run_generator(options)
[all …]
/system/extras/simpleperf/
Dcmd_monitor_test.cpp39 static ::testing::AssertionResult RunMonitorCmd(std::vector<std::string> v, std::string& output) { in RunMonitorCmd() argument
58 output.append(capture.Finish()); in RunMonitorCmd()
63 std::string output; in TEST() local
64 ASSERT_FALSE(RunMonitorCmd({}, output)); in TEST()
73 std::string output; in TEST() local
74 ASSERT_TRUE(RunMonitorCmd({"-a"}, output)); in TEST()
75 ASSERT_GT(output.size(), 0); in TEST()
80 std::string output; in TEST() local
81 ASSERT_TRUE(RunMonitorCmd({"-a", "--exclude-perf"}, output)); in TEST()
82 ASSERT_GT(output.size(), 0); in TEST()
[all …]
Dcmd_debug_unwind_test.cpp55 std::string output = capture.Finish(); in TEST() local
56 ASSERT_NE(output.find("sample_time: 1516379654300997"), std::string::npos); in TEST()
57 ASSERT_NE(output.find("sample_time: 1516379654363914"), std::string::npos); in TEST()
58 ASSERT_NE(output.find("sample_time: 1516379655959122"), std::string::npos); in TEST()
67 std::string output; in TEST() local
68 ASSERT_TRUE(android::base::ReadFileToString(tmpfile.path, &output)); in TEST()
69 ASSERT_NE(output.find("sample_time: 1516379654300997"), std::string::npos); in TEST()
101 std::string output = capture.Finish(); in TEST() local
103 output.find( in TEST()
106 << output; in TEST()
[all …]
/system/tools/aidl/
Daidl-format.sh119 local output="$(mktemp)"
121 cp "$input" "$output"
122 prepare "$output"
123 apply-clang-format "$output" "$style"
124 fixup "$output"
127 diff "$input" "$output" || (
132 rm "$output"
134 if diff -q "$output" "$input" >/dev/null; then
135 rm "$output"
137 mv "$output" "$input"
[all …]
/system/netd/include/binder_utils/
DBinderUtil.h66 std::string output; in binderCallLogFn() local
69 output.append(log.method_name + "("s); in binderCallLogFn()
73 output.append(log.input_args[i].second); in binderCallLogFn()
75 output.append(", "s); in binderCallLogFn()
78 output.append(")"s); in binderCallLogFn()
83 output.append(" -> "s); in binderCallLogFn()
90 output.append(fmt::format("{}({}, \"{}\")", exceptionToString(exceptionCode), in binderCallLogFn()
95 output.append("{" + log.result + "}"); in binderCallLogFn()
98 output.append(fmt::format(" <{:.2f}ms>", log.duration_ms)); in binderCallLogFn()
101 logFn(::android::base::StringReplace(output, "\n", "\\n", true)); in binderCallLogFn()
/system/keymaster/tests/
Dckdf_test.cpp33 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/logging/liblog/tests/
Dlogprint_test.cpp32 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/
Dkdf.cpp58 bool Kdf::Uint32ToBigEndianByteArray(uint32_t number, uint8_t* output) { in Uint32ToBigEndianByteArray() argument
59 if (!output) return false; in Uint32ToBigEndianByteArray()
61 output[0] = (number >> 24) & 0xff; in Uint32ToBigEndianByteArray()
62 output[1] = (number >> 16) & 0xff; in Uint32ToBigEndianByteArray()
63 output[2] = (number >> 8) & 0xff; in Uint32ToBigEndianByteArray()
64 output[3] = (number)&0xff; in Uint32ToBigEndianByteArray()
Dblock_cipher_operation.cpp171 Buffer* output, size_t* input_consumed) { in Update() argument
174 if (!InternalUpdate(input.peek_read(), input.available_read(), output, &error)) return error; in Update()
189 AuthorizationSet* output_params, Buffer* output) { in Finish() argument
191 if (!UpdateForFinish(additional_params, input, output_params, output, &error)) return error; in Finish()
192 if (!output->reserve(block_size_bytes())) return KM_ERROR_MEMORY_ALLOCATION_FAILED; in Finish()
199 if (!EVP_CipherFinal_ex(&ctx_, output->peek_write(), &output_written)) { in Finish()
209 if (!output->advance_write(output_written)) return KM_ERROR_UNKNOWN_ERROR; in Finish()
363 Buffer* output, keymaster_error_t* error) { in InternalUpdate() argument
364 assert(output); in InternalUpdate()
369 if (!output->reserve(input_length + block_size_bytes())) { in InternalUpdate()
[all …]
Dckdf.cpp42 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/
DBUILD.gn21 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/tools/mkbootimg/
Dmkbootimg.py113 args.output.write(pack(f'{BOOT_MAGIC_SIZE}s', BOOT_MAGIC.encode()))
115 args.output.write(pack('I', filesize(args.kernel)))
117 args.output.write(pack('I', filesize(args.ramdisk)))
119 args.output.write(pack('I', (args.os_version << 11) | args.os_patch_level))
120 args.output.write(pack('I', boot_header_size))
122 args.output.write(pack('4I', 0, 0, 0, 0))
124 args.output.write(pack('I', args.header_version))
125 args.output.write(pack(f'{BOOT_ARGS_SIZE + BOOT_EXTRA_ARGS_SIZE}s',
129 args.output.write(pack('I', BOOT_IMAGE_V4_SIGNATURE_SIZE))
130 pad_file(args.output, BOOT_IMAGE_HEADER_V3_PAGESIZE)
[all …]
/system/extras/tests/workloads/
Ddefs.sh57 (-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/core/trusty/keymaster/keymint/
DTrustyKeyMintOperation.cpp70 vector<uint8_t>* output) { in update() argument
71 if (!output) return kmError2ScopedAStatus(KM_ERROR_OUTPUT_PARAMETER_NULL); in update()
88 output->clear(); in update()
104 output->insert(output->end(), response.output.begin(), response.output.end()); in update()
115 vector<uint8_t>* output) { in finish() argument
116 if (!output) { in finish()
120 output->clear(); in finish()
147 std::nullopt /* timestampToken */, output); in finish()
164 *output = {response.output.begin(), response.output.end()}; in finish()
/system/bt/build/toolchain/clang/
DBUILD.gn40 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/
DUnicode_test.cpp103 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/bt/gd/crypto_toolbox/
Daes_cmac.cc64 Octet16 output; in aes_128() local
71 aes_encrypt(message_reversed.data(), output.data(), &ctx); in aes_128()
73 std::reverse(output.begin(), output.end()); in aes_128()
74 return output; in aes_128()
87 static void leftshift_onebit(uint8_t* input, uint8_t* output) { in leftshift_onebit() argument
92 output[i] = (input[i] << 1) | overflow; in leftshift_onebit()
100 Octet16 output; in cmac_aes_k_calculate() local
108 output = aes_128(key, &cmac_cb.text[(cmac_cb.round - i) * OCTET16_LEN], OCTET16_LEN); in cmac_aes_k_calculate()
109 x = output; in cmac_aes_k_calculate()
113 return output; in cmac_aes_k_calculate()
/system/security/keystore-engine/
Dkeystore2_engine.cpp232 std::optional<std::vector<uint8_t>> output = std::nullopt; in keystore2_sign() local
233 rc = op->finish(std::move(input), {}, &output); in keystore2_sign()
246 if (!output) { in keystore2_sign()
250 return output; in keystore2_sign()
266 auto output = in rsa_private_transform() local
268 if (!output) { in rsa_private_transform()
272 if (output->size() > len) { in rsa_private_transform()
277 LOG(WARNING) << "Reply len " << output->size() << " greater than expected " << len; in rsa_private_transform()
278 memcpy(out, &output->data()[output->size() - len], len); in rsa_private_transform()
279 } else if (output->size() < len) { in rsa_private_transform()
[all …]
/system/tools/hidl/test/error_test/
Dhidl_error_test.sh18 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/
Daes_cmac.cc65 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/
DIptablesRestoreController.cpp208 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 …]
/system/extras/tools/
Dgraph_lockdep_chains49 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/keymaster/ng/
DAndroidKeyMintOperation.cpp69 vector<uint8_t>* output) { in update() argument
70 if (!output) return kmError2ScopedAStatus(KM_ERROR_OUTPUT_PARAMETER_NULL); in update()
84 *output = kmBuffer2vector(response.output); in update()
94 vector<uint8_t>* output) { in finish() argument
96 if (!output) { in finish()
112 *output = kmBuffer2vector(response.output); in finish()
/system/logging/logd/
DLogStatistics.cpp561 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 …]

12345678910>>...15