Searched defs:output (Results 1 - 25 of 73) sorted by relevance

123

/system/core/metricsd/uploader/
H A Dmetrics_hashes_unittest.cc30 std::string output; member in struct:metrics::__anon1711
40 EXPECT_EQ(cases[i].output, hash_hex);
/system/tpm/attestation/common/
H A Dprint_common_proto.cc89 std::string output = local
93 output += indent + " quote: ";
95 &output, "%s",
97 output += "\n";
100 output += indent + " quoted_data: ";
101 base::StringAppendF(&output, "%s",
104 output += "\n";
107 output += indent + " quoted_pcr_value: ";
109 &output, "%s",
112 output
132 std::string output = local
181 std::string output = local
210 std::string output = local
[all...]
H A Dprint_interface_proto.cc71 std::string output = local
75 output += indent + " key_label: ";
76 base::StringAppendF(&output, "%s", value.key_label().c_str());
77 output += "\n";
80 output += indent + " key_type: ";
81 base::StringAppendF(&output, "%s",
84 output += "\n";
87 output += indent + " key_usage: ";
88 base::StringAppendF(&output, "%s",
91 output
122 std::string output = local
153 std::string output = local
177 std::string output = local
242 std::string output = local
263 std::string output = local
299 std::string output = local
321 std::string output = local
379 std::string output = local
414 std::string output = local
443 std::string output = local
482 std::string output = local
525 std::string output = local
556 std::string output = local
584 std::string output = local
615 std::string output = local
644 std::string output = local
669 std::string output = local
[all...]
H A Dmock_crypto_utility.cc26 bool FakeRandom(size_t num_bytes, std::string* output) { argument
27 *output = std::string(num_bytes, 'A');
H A Dcrypto_utility_impl_test.cc49 std::vector<uint8_t> output; local
50 CHECK(base::HexStringToBytes(hex, &output));
51 return std::string(reinterpret_cast<char*>(output.data()), output.size());
110 std::string output; local
111 EXPECT_TRUE(crypto_utility_->EncryptData(std::string(), key, key, &output));
116 std::string output; local
117 EXPECT_FALSE(crypto_utility_->EncryptData(std::string(), key, key, &output));
121 std::string output; local
122 EXPECT_FALSE(crypto_utility_->UnsealKey("invalid", &output,
131 std::string output; local
137 std::string output; local
143 std::string output; local
149 std::string output; local
158 std::string output; local
164 std::string output; local
171 std::string output; local
183 EncryptedIdentityCredential output; local
193 EncryptedIdentityCredential output; local
205 std::string output; local
212 std::string output; local
222 std::string output; local
232 std::string output; local
[all...]
/system/tpm/tpm_manager/common/
H A Dprint_local_data_proto.cc34 std::string output = local
38 output += indent + " owner_password: ";
39 base::StringAppendF(&output, "%s",
43 output += "\n";
45 output += indent + " owner_dependency: {";
47 base::StringAppendF(&output, "%s", value.owner_dependency(i).c_str());
49 output += "}\n";
51 output += indent + " endorsement_password: ";
52 base::StringAppendF(&output, "%s",
56 output
[all...]
H A Dprint_tpm_nvram_interface_proto.cc37 std::string output = local
41 output += indent + " index: ";
42 base::StringAppendF(&output, "%d", value.index());
43 output += "\n";
46 output += indent + " length: ";
47 base::StringAppendF(&output, "%d", value.length());
48 output += "\n";
50 output += indent + "}\n";
51 return output;
61 std::string output local
82 std::string output = local
101 std::string output = local
122 std::string output = local
148 std::string output = local
169 std::string output = local
188 std::string output = local
216 std::string output = local
235 std::string output = local
261 std::string output = local
280 std::string output = local
306 std::string output = local
325 std::string output = local
[all...]
H A Dprint_tpm_ownership_interface_proto.cc38 std::string output = local
41 output += indent + "}\n";
42 return output;
52 std::string output = local
56 output += indent + " status: ";
58 &output, "%s",
60 output += "\n";
63 output += indent + " enabled: ";
64 base::StringAppendF(&output, "%s", value.enabled() ? "true" : "false");
65 output
113 std::string output = local
127 std::string output = local
149 std::string output = local
172 std::string output = local
[all...]
/system/keymaster/
H A Dhkdf.cpp27 bool Rfc5869Sha256Kdf::GenerateKey(const uint8_t* info, size_t info_len, uint8_t* output, argument
29 if (!is_initialized_ || output == nullptr)
91 memcpy(output + i * digest_size_, digest.get(), block_output_len);
H A Dhkdf_test.cpp67 uint8_t output[output_len]; local
72 output, output_len));
73 EXPECT_EQ(0, memcmp(output, expected.data(), output_len));
H A Diso18033kdf.cpp30 bool Iso18033Kdf::GenerateKey(const uint8_t* info, size_t info_len, uint8_t* output, argument
32 if (!is_initialized_ || output == nullptr)
35 /* Check whether output length is too long as specified in ISO/IEC 18033-2. */
80 memcpy(output + block_start, digest_result.get(), block_length);
H A Dkdf.cpp61 bool Kdf::Uint32ToBigEndianByteArray(uint32_t number, uint8_t* output) { argument
62 if (!output)
65 output[0] = (number >> 24) & 0xff;
66 output[1] = (number >> 16) & 0xff;
67 output[2] = (number >> 8) & 0xff;
68 output[3] = (number)&0xff;
H A Dkdf1_test.cpp48 uint8_t output[output_len]; local
53 ASSERT_TRUE(kdf1.GenerateKey(nullptr, 0, output, output_len));
54 EXPECT_EQ(0, memcmp(output, expected_output.data(), output_len));
H A Dkdf2_test.cpp73 uint8_t output[output_len]; local
79 output, output_len));
80 EXPECT_EQ(0, memcmp(output, expected_output.data(), output_len));
H A Decdsa_operation.cpp128 Buffer* /* output */, size_t* input_consumed) {
141 Buffer* output) {
142 if (!output)
155 output->Reinitialize(ECDSA_size(ecdsa.get()));
158 output->peek_write(), &siglen_tmp, ecdsa.get()))
164 if (!output->Reinitialize(siglen))
166 if (EVP_DigestSignFinal(&digest_ctx_, output->peek_write(), &siglen) <= 0)
169 if (!output->advance_write(siglen))
193 Buffer* /* output */, size_t* input_consumed) {
206 Buffer* /* output */) {
138 Finish(const AuthorizationSet& additional_params, const Buffer& input, const Buffer& , AuthorizationSet* , Buffer* output) argument
[all...]
H A Doperation.cpp141 Buffer output; local
144 Update(input_params, input, &output_params, &output, &input_consumed);
149 assert(output.available_read() == 0);
/system/core/libutils/tests/
H A DUnicode_test.cpp43 << "Zero length input should return zero length output.";
99 char16_t output[1 + 1 + 1 + 2 + 1]; // Room for NULL local
101 utf8_to_utf16(str, sizeof(str), output);
103 EXPECT_EQ(0x0030, output[0])
105 EXPECT_EQ(0x0100, output[1])
107 EXPECT_EQ(0x2323, output[2])
109 EXPECT_EQ(0xD800, output[3])
111 EXPECT_EQ(0xDC00, output[4])
113 EXPECT_EQ(NULL, output[5])
/system/update_engine/payload_consumer/
H A Dbzip_extent_writer_unittest.cc126 brillo::Blob output; local
127 EXPECT_TRUE(utils::ReadFile(temp_file_.path(), &output));
128 EXPECT_EQ(kDecompressedLength, output.size());
129 test_utils::ExpectVectorsEq(decompressed_data, output);
/system/core/libsparse/
H A Dappend2simg.c46 fprintf(stderr, "Usage: append2simg <output> <input>\n");
51 int output; local
79 output = open(output_path, O_RDWR | O_BINARY);
80 if (output < 0) {
81 fprintf(stderr, "Couldn't open output file (%s)\n", strerror(errno));
85 sparse_output = sparse_file_import_auto(output, false, true);
87 fprintf(stderr, "Couldn't import output file\n");
102 fprintf(stderr, "Input file is not a multiple of the output file's block size");
120 lseek64(output, 0, SEEK_SET);
128 close(output);
[all...]
/system/tools/aidl/tests/
H A Daidl_test_client_primitives.cpp163 vector<sp<IBinder>> output; local
166 status = s->ReverseNamedCallbackList(input, &output, &reversed);
171 if (output.size() != 3) {
184 android::interface_cast<INamedCallback>(output[i]);
188 cerr << "Could not query INamedCallback from output" << endl;
205 cerr << "Could not query INamedCallback from reversed output" << endl;
210 cerr << "Reversed output had wrong INamedCallback" << endl;
/system/tpm/trunks/
H A Dbackground_command_transceiver_test.cc54 std::string* output) {
55 *output = transceiver->SendCommandAndWait("test");
84 std::string output = "not_assigned"; local
85 background_transceiver.SendCommand("test", base::Bind(Assign, &output));
89 } while (output == "not_assigned");
91 EXPECT_EQ(std::string(kTestThreadName), output); local
98 std::string output = "not_assigned"; local
103 &output));
107 EXPECT_EQ(std::string("test_thread"), output);
53 SendCommandAndWaitAndAssign(trunks::CommandTransceiver* transceiver, std::string* output) argument
/system/core/base/
H A Dlogging_test.cpp136 // We can't usefully check the output of any of these on Windows because we
144 std::string output; local
145 android::base::ReadFdToString(cap.fd(), &output);
146 ASSERT_GT(output.length(), strlen("foobar"));
151 ASSERT_TRUE(std::regex_search(output, message_regex)) << output;
160 std::string output; local
161 android::base::ReadFdToString(cap.fd(), &output);
162 ASSERT_GT(output.length(), strlen("foobar"));
167 ASSERT_TRUE(std::regex_search(output, message_rege
176 std::string output; local
187 std::string output; local
207 std::string output; local
250 std::string output; local
269 std::string output; local
[all...]
/system/bt/stack/smp/
H A Dsmp_cmac.c72 ** data. The parameter dest is input and output parameter, it
95 static void leftshift_onebit(UINT8 *input, UINT8 *output) argument
103 output[i] = (input[i] << 1) | overflow;
134 tSMP_ENC output; local
145 if (!SMP_Encrypt(key, BT_OCTET16_LEN, &cmac_cb.text[(cmac_cb.round - i)*BT_OCTET16_LEN], BT_OCTET16_LEN, &output))
151 memcpy(x, output.param_buf, BT_OCTET16_LEN);
157 p_mac = output.param_buf + (BT_OCTET16_LEN - tlen);
264 tSMP_ENC output; local
267 if (SMP_Encrypt(key, BT_OCTET16_LEN, z, BT_OCTET16_LEN, &output))
269 cmac_subkey_cont(&output);;
[all...]
/system/connectivity/shill/net/
H A Dnetlink_message.cc158 string output; local
161 StringAppendF(&output, " %02x", *buf++);
163 VLOG(log_level) << output;
192 string output; local
194 StringAppendF(&output, "NETLINK_ERROR 0x%" PRIx32 ": %s",
197 StringAppendF(&output, "ACK");
199 return output;
258 string output = StringPrintf("%d bytes:", total_bytes); local
260 StringAppendF(&output, " 0x%02x", const_data[i]);
262 VLOG(header_log_level) << output;
[all...]
/system/core/adb/
H A Dshell_service_test.cpp142 // Checks if each line in |lines| exists in the same order in |output|. Blank
143 // lines in |output| are ignored for simplicity.
144 bool ExpectLinesEqual(const std::string& output, argument
146 auto output_lines = android::base::Split(output, "\r\n");
150 // Skip empty lines in output.
155 ADD_FAILURE() << "Ran out of output lines";
165 EXPECT_EQ(i, output_lines.size()) << "Found unmatched output lines";
225 // Use variable substitution so echoed input is different from output.
241 // An unpredictable command prompt makes parsing exact output difficult but
242 // it should at least contain echoed input and the expected output
[all...]

Completed in 1405 milliseconds

123