Searched defs:input (Results 1 - 25 of 53) sorted by relevance

123

/system/core/metricsd/uploader/
H A Dmetrics_hashes_unittest.cc29 std::string input; member in struct:metrics::__anon1708
38 uint64_t hash = HashMetricName(cases[i].input);
/system/core/adb/
H A Dadb_io_test.cpp69 const char input[] = "Foobar"; local
73 ASSERT_TRUE(android::base::WriteStringToFd(input, tf.fd)) << strerror(errno);
77 char buf[sizeof(input) - 1] = {};
80 std::string expected(input);
H A Dshell_service_test.cpp225 // Use variable substitution so echoed input is different from output.
242 // it should at least contain echoed input and the expected output.
255 std::string input = "foo\nbar"; local
257 memcpy(protocol->data(), input.data(), input.length());
258 ASSERT_TRUE(protocol->Write(ShellProtocol::kIdStdin, input.length()));
/system/tools/aidl/tests/
H A Dtest_helpers.h35 U input) {
37 android::binder::Status status = (*service.*func)(input, &reply);
38 if (!status.isOk() || input != reply) {
51 std::vector<T> input) {
55 input, &actual_repeated, &actual_reversed);
61 if (input != actual_repeated) {
63 LOG(ERROR) << "input.size()=" << input.size()
67 std::reverse(input.begin(), input
32 RepeatPrimitive( const android::sp<android::aidl::tests::ITestService>& service, android::binder::Status(android::aidl::tests::ITestService::*func)(T, T*), U input) argument
47 ReverseArray( const android::sp<android::aidl::tests::ITestService>& service, android::binder::Status(android::aidl::tests::ITestService::*func)( const std::vector<T>&, std::vector<T>*, std::vector<T>*), std::vector<T> input) argument
[all...]
H A Daidl_test_client_primitives.cpp90 for (const auto& input : inputs) {
92 Status status = s->RepeatString(input, &reply);
93 if (!status.isOk() || input != reply) {
95 << String8(input).string()
149 vector<sp<IBinder>> input; local
160 input.push_back(INamedCallback::asBinder(got));
166 status = s->ReverseNamedCallbackList(input, &output, &reversed);
H A Daidl_test_client_utf8_strings.cpp58 for (const auto& input : utf8_inputs) {
60 Status status = s->RepeatUtf8CppString(input, &reply);
61 if (!status.isOk() || input != reply) {
63 << input
77 for (const auto& input : utf8_inputs) {
80 unique_ptr<string>(new string(input)), &reply);
83 "nullable utf8 string " << input;
88 << input;
91 if (input != *reply) {
93 << input
115 unique_ptr<vector<unique_ptr<string>>> input, reversed, repeated; local
[all...]
H A Daidl_test_service.cpp158 Status RepeatSimpleParcelable(const SimpleParcelable& input,
161 ALOGI("Repeated a SimpleParcelable %s", input.toString().c_str());
162 *repeat = input;
163 *_aidl_return = input;
167 Status RepeatPersistableBundle(const PersistableBundle& input,
170 *_aidl_return = input;
175 Status ReverseArray(const vector<T>& input, vector<T>* repeated, argument
177 ALOGI("Reversing array of length %zu", input.size());
178 *repeated = input;
179 *_aidl_return = input;
185 RepeatNullable(const unique_ptr<T>& input, unique_ptr<T>* _aidl_return) argument
308 RepeatNullableIntArray(const unique_ptr<vector<int32_t>>& input, unique_ptr<vector<int32_t>>* _aidl_return) argument
313 RepeatNullableStringList( const unique_ptr<vector<unique_ptr<String16>>>& input, unique_ptr<vector<unique_ptr<String16>>>* _aidl_return) argument
335 RepeatNullableString(const unique_ptr<String16>& input, unique_ptr<String16>* _aidl_return) argument
340 RepeatNullableParcelable(const unique_ptr<SimpleParcelable>& input, unique_ptr<SimpleParcelable>* _aidl_return) argument
365 ReverseUtf8CppString(const vector<string>& input, vector<string>* repeated, vector<string>* _aidl_return) argument
371 ReverseUtf8CppStringList( const unique_ptr<vector<unique_ptr<::string>>>& input, unique_ptr<vector<unique_ptr<string>>>* repeated, unique_ptr<vector<unique_ptr<string>>>* _aidl_return) argument
[all...]
/system/tpm/attestation/common/
H A Dmock_tpm_utility.cc79 const std::string& input) {
80 return input + "_fake_transform_" + method;
78 Transform(const std::string& method, const std::string& input) argument
H A Dcrypto_utility_impl_test.cc151 std::string input; local
152 proto.SerializeToString(&input);
153 EXPECT_FALSE(crypto_utility_->DecryptData(input, key, &output));
206 EXPECT_TRUE(crypto_utility_->EncryptForUnbind(public_key_info, "input",
213 EXPECT_FALSE(crypto_utility_->EncryptForUnbind("bad_key", "input", &output));
221 std::string input(1000, 'A');
223 EXPECT_FALSE(crypto_utility_->EncryptForUnbind(public_key_info, input,
233 EXPECT_FALSE(crypto_utility_->VerifySignature(public_key_info, "input",
238 EXPECT_FALSE(crypto_utility_->VerifySignature("bad_key", "input", ""));
/system/update_engine/payload_consumer/
H A Dbzip_extent_writer.cc43 // Copy the input data into |input_buffer_| only if |input_buffer_| already
46 const uint8_t* input = reinterpret_cast<const uint8_t*>(bytes); local
47 const uint8_t* input_end = input + count;
49 input_buffer_.insert(input_buffer_.end(), input, input_end);
50 input = input_buffer_.data();
51 input_end = input + input_buffer_.size();
53 stream_.next_in = reinterpret_cast<char*>(const_cast<uint8_t*>(input));
54 stream_.avail_in = input_end - input;
73 break; // no more input to process
H A Dxz_extent_writer.cc66 // Copy the input data into |input_buffer_| only if |input_buffer_| already
69 const uint8_t* input = reinterpret_cast<const uint8_t*>(bytes); local
71 input_buffer_.insert(input_buffer_.end(), input, input + count);
72 input = input_buffer_.data();
77 request.in = input;
101 break; // No more input to process.
105 // Store unconsumed data (if any) in |input_buffer_|. Since |input| can point
/system/core/libsparse/
H A Dappend2simg.c46 fprintf(stderr, "Usage: append2simg <output> <input>\n");
56 int input; local
91 input = open(input_path, O_RDONLY | O_BINARY);
92 if (input < 0) {
93 fprintf(stderr, "Couldn't open input file (%s)\n", strerror(errno));
97 input_len = lseek64(input, 0, SEEK_END);
99 fprintf(stderr, "Couldn't get input file length (%s)\n", strerror(errno));
105 lseek64(input, 0, SEEK_SET);
108 if (sparse_file_add_fd(sparse_output, input, 0, input_len, output_block) < 0) {
109 fprintf(stderr, "Couldn't add input fil
[all...]
/system/connectivity/shill/
H A Dmock_crypto_util_proxy.cc73 const std::string& input,
75 return CryptoUtilProxy::StartShimForCommand(command, input,
71 RealStartShimForCommand( const std::string& command, const std::string& input, const StringCallback& result_handler) argument
H A Dconnection_info_reader.cc83 bool ConnectionInfoReader::ParseConnectionInfo(const string& input, argument
85 vector<string> tokens = base::SplitString(input, base::kWhitespaceASCII,
159 bool ConnectionInfoReader::ParseProtocol(const string& input, int* protocol) { argument
160 if (!base::StringToInt(input, protocol) ||
168 const string& input, int64_t* time_to_expire_seconds) {
169 if (!base::StringToInt64(input, time_to_expire_seconds) ||
177 const string& input, IPAddress* ip_address, bool* is_source) {
180 if (base::StartsWith(input, kSourceIPAddressTag,
183 ip_address_string = input.substr(strlen(kSourceIPAddressTag));
184 } else if (base::StartsWith(input, kDestinationIPAddressTa
167 ParseTimeToExpireSeconds( const string& input, int64_t* time_to_expire_seconds) argument
176 ParseIPAddress( const string& input, IPAddress* ip_address, bool* is_source) argument
207 ParsePort( const string& input, uint16_t* port, bool* is_source) argument
[all...]
/system/core/logwrapper/include/logwrap/
H A Dlogwrap.h84 const uint8_t* input; member in struct:AndroidForkExecvpOption::__anon1698::__anon1699
/system/extras/slideshow/
H A Dslideshow.cpp21 #include <linux/input.h>
86 int input = false; local
117 * timeout or user input */
129 input = true;
137 /* if there was user input while showing the images, display the last
141 if (input) {
/system/extras/verity/
H A DKeystoreSigner.java124 public void parse(byte[] input) throws Exception { argument
125 ASN1InputStream stream = new ASN1InputStream(input);
H A DUtils.java259 static boolean verify(PublicKey key, byte[] input, byte[] signature, argument
269 verifier.update(input);
274 static byte[] sign(PrivateKey privateKey, byte[] input) throws Exception { argument
277 signer.update(input);
/system/keymaster/
H A Decdsa_operation.cpp98 keymaster_error_t EcdsaOperation::StoreData(const Buffer& input, size_t* input_consumed) { argument
102 if (!data_.write(input.peek_read(), min(data_.available_write(), input.available_read())))
105 *input_consumed = input.available_read();
126 const Buffer& input,
130 return StoreData(input, input_consumed);
132 if (EVP_DigestSignUpdate(&digest_ctx_, input.peek_read(), input.available_read()) != 1)
134 *input_consumed = input.available_read();
139 const Buffer& input, cons
125 Update(const AuthorizationSet& , const Buffer& input, AuthorizationSet* , Buffer* , size_t* input_consumed) argument
138 Finish(const AuthorizationSet& additional_params, const Buffer& input, const Buffer& , AuthorizationSet* , Buffer* output) argument
190 Update(const AuthorizationSet& , const Buffer& input, AuthorizationSet* , Buffer* , size_t* input_consumed) argument
203 Finish(const AuthorizationSet& additional_params, const Buffer& input, const Buffer& signature, AuthorizationSet* , Buffer* ) argument
[all...]
H A Doperation.cpp138 const Buffer& input) {
139 if (!input_params.empty() || input.available_read()) {
144 Update(input_params, input, &output_params, &output, &input_consumed);
147 assert(input_consumed == input.available_read());
137 UpdateForFinish(const AuthorizationSet& input_params, const Buffer& input) argument
H A Dhmac_operation.cpp151 const Buffer& input, AuthorizationSet* /* output_params */,
153 if (!HMAC_Update(&ctx_, input.peek_read(), input.available_read()))
155 *input_consumed = input.available_read();
164 const Buffer& input, const Buffer& signature,
166 keymaster_error_t error = UpdateForFinish(additional_params, input);
150 Update(const AuthorizationSet& , const Buffer& input, AuthorizationSet* , Buffer* , size_t* input_consumed) argument
163 Finish(const AuthorizationSet& additional_params, const Buffer& input, const Buffer& signature, AuthorizationSet* , Buffer* output) argument
/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
99 /* input[0] is LSB */
102 next_overflow = (input[i] & 0x80) ? 1:0;
103 output[i] = (input[i] << 1) | overflow;
283 ** input - text to be signed in little endian byte order.
284 ** length - length of the input in byte.
291 BOOLEAN aes_cipher_msg_auth_code(BT_OCTET16 key, UINT8 *input, UINT16 length, argument
309 if (input != NULL && length > 0) {
310 memcpy(&cmac_cb.text[diff] , input, (in
[all...]
/system/core/libpixelflinger/tests/gglmul/
H A Dgglmul_test.cpp38 GGLfixed input; member in struct:gglClampx_test_t
60 printf("Test input=0x%08x output=0x%08x :",
61 test->input, test->output);
62 if(gglClampx(test->input) == test->output)
72 GGLfixed input; member in struct:gglClz_test_t
91 printf("Test input=0x%08x output=%2d :", test->input, test->output);
92 if(gglClz(test->input) == test->output)
/system/tools/aidl/
H A Daidl_unittest.cpp102 "interface IFoo { void f(in IBar[] input); }";
272 const string input = "package p; import p.Bar; interface IFoo { }"; local
275 auto cpp_parse_result = Parse(input_path, input, &cpp_types_);
286 auto java_parse_result = Parse(input_path, input, &java_types_);
H A Doptions_unittest.cpp140 const char* input; member in struct:android::aidl::test_case_t
152 string mutated = test_case.input;

Completed in 382 milliseconds

123