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

1234

/system/connectivity/wificond/tests/
H A Dshell_unittest.cpp28 string output; local
29 int result = RunShellCommand("echo hello world", &output);
31 EXPECT_EQ("hello world\n", output);
H A Dshell_utils.cpp59 int RunShellCommand(const std::string& shell_command, std::string* output) { argument
99 if (output && nread > 0) {
100 output->append(buf, nread);
/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: ";
102 &output, "%s",
105 output += "\n";
108 output += indent + " quoted_pcr_value: ";
109 base::StringAppendF(&output, "%s",
113 output
134 std::string output = local
186 std::string output = local
215 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", GetProtoDebugStringWithIndent(
84 output += "\n";
87 output += indent + " key_usage: ";
88 base::StringAppendF(&output, "%s", GetProtoDebugStringWithIndent(
91 output
123 std::string output = local
154 std::string output = local
178 std::string output = local
246 std::string output = local
267 std::string output = local
305 std::string output = local
327 std::string output = local
387 std::string output = local
423 std::string output = local
453 std::string output = local
492 std::string output = local
537 std::string output = local
569 std::string output = local
598 std::string output = local
630 std::string output = local
659 std::string output = local
684 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,
130 std::string output; local
136 std::string output; local
142 std::string output; local
148 std::string output; local
157 std::string output; local
163 std::string output; local
170 std::string output; local
182 EncryptedIdentityCredential output; local
190 EncryptedIdentityCredential output; local
200 std::string output; local
207 std::string output; local
217 std::string output; local
227 std::string output; local
[all...]
/system/tpm/tpm_manager/common/
H A Dprint_tpm_manager_proto.cc130 std::string output = local
134 output += indent + " index: ";
135 base::StringAppendF(&output, "%u (0x%08X)", value.index(), value.index());
136 output += "\n";
139 output += indent + " policy: ";
141 &output, "%s",
143 output += "\n";
146 output += indent + " world_read_allowed: ";
147 base::StringAppendF(&output, "%s",
149 output
179 std::string output = local
236 std::string output = local
285 std::string output = local
306 std::string output = local
325 std::string output = local
346 std::string output = local
386 std::string output = local
407 std::string output = local
440 std::string output = local
468 std::string output = local
511 std::string output = local
532 std::string output = local
546 std::string output = local
576 std::string output = local
595 std::string output = local
650 std::string output = local
664 std::string output = local
730 std::string output = local
744 std::string output = local
766 std::string output = local
789 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.cpp28 bool Iso18033Kdf::GenerateKey(const uint8_t* info, size_t info_len, uint8_t* output, argument
30 if (!is_initialized_ || output == nullptr)
33 /* Check whether output length is too long as specified in ISO/IEC 18033-2. */
78 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...]
/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, sizeof(output) / sizeof(output[0]));
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[
[all...]
/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/bt/service/ipc/dbus/
H A Dbluetooth_adapter.cc90 std::string output; local
91 if (!base::ReadFileToString(base::FilePath(kBindingsPath), &output)) {
98 writer.AppendString(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/core/logcat/
H A Dlogcat_system.cpp106 int android_logcat_pclose(android_logcat_context* ctx, FILE* output) { argument
116 if (output) fclose(output);
/system/tpm/trunks/
H A Dbackground_command_transceiver_test.cc54 std::string* output) {
55 *output = transceiver->SendCommandAndWait("test");
83 std::string output = "not_assigned"; local
84 background_transceiver.SendCommand("test", base::Bind(Assign, &output));
88 } while (output == "not_assigned");
90 EXPECT_EQ(std::string(kTestThreadName), output); local
96 std::string output = "not_assigned"; local
100 &background_transceiver, &output));
104 EXPECT_EQ(std::string("test_thread"), output);
53 SendCommandAndWaitAndAssign(trunks::CommandTransceiver* transceiver, std::string* output) argument
/system/vold/
H A DKeymaster.h55 // concatenate the output. Return true on success.
57 bool updateCompletely(TI& input, TO* output) { argument
58 if (output) output->clear();
60 if (output) std::copy(b, b+n, std::back_inserter(*output));
64 // Finish and write the output to this string, unless pointer is null.
65 bool finish(std::string* output);
117 // Begin a new cryptographic operation, collecting output parameters if pointer is non-null
/system/bt/embdrv/sbc/encoder/srce/
H A Dsbc_encoder.c38 uint8_t* output) {
155 return EncPacking(pstrEncParams, output);
37 SBC_Encode(SBC_ENC_PARAMS* pstrEncParams, int16_t* input, uint8_t* output) argument
H A Dsbc_packing.c54 /* return number of bytes written to output */
55 uint32_t EncPacking(SBC_ENC_PARAMS* pstrEncParams, uint8_t* output) { argument
83 pu8PacketPtr = output; /*Initialize the ptr*/
210 uint32_t u16PacketLength = pu8PacketPtr - output + 1;
212 pu8PacketPtr = output + 1; /*Initialize the ptr*/
248 output[3] = u8CRC;
/system/sepolicy/tools/
H A Dversion_policy.c21 printf(" -o, --output=<file> write cil policy to <file>\n");
91 char *output = NULL; local
100 {"output", required_argument, 0, 'o'},
121 output = strdup(optarg);
179 rc = cil_write_ast(out_db, output);
188 free(output);
/system/tools/aidl/tests/
H A Daidl_test_client_primitives.cpp183 vector<sp<IBinder>> output; local
186 status = s->ReverseNamedCallbackList(input, &output, &reversed);
191 if (output.size() != 3) {
204 android::interface_cast<INamedCallback>(output[i]);
208 cerr << "Could not query INamedCallback from output" << endl;
225 cerr << "Could not query INamedCallback from reversed output" << endl;
230 cerr << "Reversed output had wrong INamedCallback" << endl;

Completed in 310 milliseconds

1234