/system/connectivity/wificond/tests/ |
H A D | shell_unittest.cpp | 28 string output; local 29 int result = RunShellCommand("echo hello world", &output); 31 EXPECT_EQ("hello world\n", output);
|
H A D | shell_utils.cpp | 59 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 D | print_common_proto.cc | 89 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 D | print_interface_proto.cc | 71 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 D | mock_crypto_utility.cc | 26 bool FakeRandom(size_t num_bytes, std::string* output) { argument 27 *output = std::string(num_bytes, 'A');
|
H A D | crypto_utility_impl_test.cc | 49 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 D | print_tpm_manager_proto.cc | 130 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 D | hkdf.cpp | 27 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 D | hkdf_test.cpp | 67 uint8_t output[output_len]; local 72 output, output_len)); 73 EXPECT_EQ(0, memcmp(output, expected.data(), output_len));
|
H A D | iso18033kdf.cpp | 28 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 D | kdf.cpp | 61 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 D | kdf1_test.cpp | 48 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 D | kdf2_test.cpp | 73 uint8_t output[output_len]; local 79 output, output_len)); 80 EXPECT_EQ(0, memcmp(output, expected_output.data(), output_len));
|
H A D | ecdsa_operation.cpp | 128 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 D | Unicode_test.cpp | 43 << "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 D | bzip_extent_writer_unittest.cc | 126 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 D | bluetooth_adapter.cc | 90 std::string output; local 91 if (!base::ReadFileToString(base::FilePath(kBindingsPath), &output)) { 98 writer.AppendString(output);
|
/system/core/libsparse/ |
H A D | append2simg.c | 46 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 D | logcat_system.cpp | 106 int android_logcat_pclose(android_logcat_context* ctx, FILE* output) { argument 116 if (output) fclose(output);
|
/system/tpm/trunks/ |
H A D | background_command_transceiver_test.cc | 54 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 D | Keymaster.h | 55 // 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 D | sbc_encoder.c | 38 uint8_t* output) { 155 return EncPacking(pstrEncParams, output); 37 SBC_Encode(SBC_ENC_PARAMS* pstrEncParams, int16_t* input, uint8_t* output) argument
|
H A D | sbc_packing.c | 54 /* 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 D | version_policy.c | 21 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 D | aidl_test_client_primitives.cpp | 183 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;
|