Home
last modified time | relevance | path

Searched refs:input (Results 1 – 25 of 245) sorted by relevance

12345678910

/system/core/liblog/tests/
Dlogprint_test.cpp28 auto input = "easy string, output same"; in TEST() local
29 auto output_size = convertPrintable(nullptr, input, strlen(input)); in TEST()
30 EXPECT_EQ(output_size, strlen(input)); in TEST()
34 output_size = convertPrintable(output, input, strlen(input)); in TEST()
35 EXPECT_EQ(output_size, strlen(input)); in TEST()
36 EXPECT_STREQ(input, output); in TEST()
41 auto input = "escape\a\b\t\v\f\r\\"; in TEST() local
43 auto output_size = convertPrintable(nullptr, input, strlen(input)); in TEST()
48 output_size = convertPrintable(output, input, strlen(input)); in TEST()
54 auto input = u8"¢ह€��"; in TEST() local
[all …]
/system/core/init/
Drlimit_parser_test.cpp26 void TestRlimitSuccess(std::vector<std::string> input, in TestRlimitSuccess() argument
28 input.emplace(input.begin(), ""); in TestRlimitSuccess()
29 ASSERT_EQ(4U, input.size()); in TestRlimitSuccess()
30 auto result = ParseRlimit(input); in TestRlimitSuccess()
32 ASSERT_TRUE(result.ok()) << "input: " << input[1]; in TestRlimitSuccess()
40 void TestRlimitFailure(std::vector<std::string> input, const std::string& expected_result) { in TestRlimitFailure() argument
41 input.emplace(input.begin(), ""); in TestRlimitFailure()
42 ASSERT_EQ(4U, input.size()); in TestRlimitFailure()
43 auto result = ParseRlimit(input); in TestRlimitFailure()
45 ASSERT_FALSE(result.ok()) << "input: " << input[1]; in TestRlimitFailure()
[all …]
/system/tools/aidl/tests/java_app/src/android/aidl/tests/
DTestServiceClient.java164 boolean[] input = {true, false, false, false}; in testBooleanArrayReversal()
165 boolean echoed[] = new boolean[input.length]; in testBooleanArrayReversal()
166 boolean[] reversed = service.ReverseBoolean(input, echoed); in testBooleanArrayReversal()
167 assertThat(echoed, is(input)); in testBooleanArrayReversal()
168 assertThat(reversed.length, is(input.length)); in testBooleanArrayReversal()
169 for (int i = 0; i < input.length; ++i) { in testBooleanArrayReversal()
171 assertThat(reversed[j], is(input[i])); in testBooleanArrayReversal()
177 byte[] input = {0, 1, 2}; in testByteArrayReversal()
178 byte echoed[] = new byte[input.length]; in testByteArrayReversal()
179 byte[] reversed = service.ReverseByte(input, echoed); in testByteArrayReversal()
[all …]
/system/tools/aidl/tests/
Daidl_test_client_utf8_strings.cpp47 for (const auto& input : utf8_inputs) { in TEST_F() local
49 auto status = service->RepeatUtf8CppString(input, &reply); in TEST_F()
51 ASSERT_THAT(reply, Eq(input)); in TEST_F()
59 for (const auto& input : utf8_inputs) { in TEST_F() local
61 auto status = service->RepeatNullableUtf8CppString(input, &reply); in TEST_F()
64 ASSERT_THAT(*reply, Eq(input)); in TEST_F()
69 std::vector<std::string> input = {"a", "", "\xc3\xb8"}; in TEST_F() local
70 decltype(input) repeated; in TEST_F()
71 decltype(input) reversed; in TEST_F()
73 auto status = service->ReverseUtf8CppString(input, &repeated, &reversed); in TEST_F()
[all …]
Daidl_test_service.cpp187 Status RepeatSimpleParcelable(const SimpleParcelable& input, in RepeatSimpleParcelable() argument
190 ALOGI("Repeated a SimpleParcelable %s", input.toString().c_str()); in RepeatSimpleParcelable()
191 *repeat = input; in RepeatSimpleParcelable()
192 *_aidl_return = input; in RepeatSimpleParcelable()
196 Status RepeatPersistableBundle(const PersistableBundle& input, in RepeatPersistableBundle() argument
199 *_aidl_return = input; in RepeatPersistableBundle()
204 Status ReverseArray(const vector<T>& input, vector<T>* repeated, in ReverseArray() argument
206 ALOGI("Reversing array of length %zu", input.size()); in ReverseArray()
207 *repeated = input; in ReverseArray()
208 *_aidl_return = input; in ReverseArray()
[all …]
Daidl_test_client_nullables.cpp46 std::optional<T> input) { in DoTest()
48 auto status = (*service.*func)(input, &output); in DoTest()
51 ASSERT_THAT(*output, Eq(*input)); in DoTest()
53 input.reset(); in DoTest()
54 status = (*service.*func)(input, &output); in DoTest()
84 std::vector<std::optional<String16>> input; in TEST_F() local
85 input.push_back(String16("Wat")); in TEST_F()
86 input.push_back(String16("Blooob")); in TEST_F()
87 input.push_back(String16("Wat")); in TEST_F()
88 input.push_back(std::nullopt); in TEST_F()
[all …]
/system/tools/aidl/tests/android/aidl/tests/
DITestService.aidl60 SimpleParcelable RepeatSimpleParcelable(in SimpleParcelable input, in RepeatSimpleParcelable() argument
62 PersistableBundle RepeatPersistableBundle(in PersistableBundle input); in RepeatPersistableBundle() argument
65 boolean[] ReverseBoolean (in boolean[] input, out boolean[] repeated); in ReverseBoolean() argument
66 byte[] ReverseByte (in byte[] input, out byte[] repeated); in ReverseByte() argument
67 char[] ReverseChar (in char[] input, out char[] repeated); in ReverseChar() argument
68 int[] ReverseInt (in int[] input, out int[] repeated); in ReverseInt() argument
69 long[] ReverseLong (in long[] input, out long[] repeated); in ReverseLong() argument
70 float[] ReverseFloat (in float[] input, out float[] repeated); in ReverseFloat() argument
71 double[] ReverseDouble (in double[] input, out double[] repeated); in ReverseDouble() argument
72 String[] ReverseString (in String[] input, out String[] repeated); in ReverseString() argument
[all …]
/system/extras/tools/
Dgraph_lockdep_chains48 input="cat -"
97 if [ "${input}" != "cat -" ]; then
102 input="adb -s ${2} shell su 0 cat /proc/lockdep_chains"
107 input="adb -s ${1#--serial=} shell su 0 cat /proc/lockdep_chains"
110 --input | -i)
111 if [ "${input}" != "cat -" ]; then
116 input="cat ${2}"
120 --input=*)
121 if [ "${input}" != "cat -" ]; then
126 input="cat ${1#--input=}"
[all …]
/system/bt/gd/common/
Dinit_flags_test.cc31 const char* input[] = {nullptr}; in TEST() local
32 InitFlags::Load(input); in TEST()
37 const char* input[] = {"some random non-existent flag", nullptr}; in TEST() local
38 InitFlags::Load(input); in TEST()
43 const char* input[] = {"INIT_gd_core", nullptr}; in TEST() local
44 InitFlags::Load(input); in TEST()
/system/keymaster/km_openssl/
Decdsa_operation.cpp94 keymaster_error_t EcdsaOperation::StoreData(const Buffer& input, size_t* input_consumed) { in StoreData() argument
98 if (!data_.write(input.peek_read(), min(data_.available_write(), input.available_read()))) in StoreData()
101 *input_consumed = input.available_read(); in StoreData()
126 const Buffer& input, in Update() argument
130 return StoreData(input, input_consumed); in Update()
132 if (EVP_DigestSignUpdate(&digest_ctx_, input.peek_read(), input.available_read()) != 1) in Update()
134 *input_consumed = input.available_read(); in Update()
139 const Buffer& input, const Buffer& /* signature */, in Finish() argument
145 keymaster_error_t error = UpdateForFinish(additional_params, input); in Finish()
195 const Buffer& input, in Update() argument
[all …]
Dblock_cipher_operation.cpp169 const Buffer& input, in Update() argument
173 if (block_mode_ == KM_MODE_GCM && !HandleAad(additional_params, input, &error)) return error; in Update()
174 if (!InternalUpdate(input.peek_read(), input.available_read(), output, &error)) return error; in Update()
175 *input_consumed = input.available_read(); in Update()
186 const Buffer& input, in Finish() argument
190 if (!UpdateForFinish(additional_params, input, output_params, output, &error)) return error; in Finish()
287 bool BlockCipherEvpOperation::HandleAad(const AuthorizationSet& input_params, const Buffer& input, in HandleAad() argument
316 if (input.available_read()) { in HandleAad()
359 bool BlockCipherEvpOperation::InternalUpdate(const uint8_t* input, size_t input_length, in InternalUpdate() argument
372 if (!EVP_CipherUpdate(&ctx_, output->peek_write(), &output_written, input, input_length)) { in InternalUpdate()
[all …]
Drsa_operation.cpp147 const Buffer& input, AuthorizationSet* /* output_params */, in Update() argument
157 return StoreData(input, input_consumed); in Update()
161 keymaster_error_t RsaOperation::StoreData(const Buffer& input, size_t* input_consumed) { in StoreData() argument
167 if (!data_.write(input.peek_read(), input.available_read())) { in StoreData()
169 input.available_read() + data_.available_read(), EVP_PKEY_size(rsa_key_)); in StoreData()
173 *input_consumed = input.available_read(); in StoreData()
283 const Buffer& input, AuthorizationSet* output_params, in Update() argument
287 return RsaOperation::Update(additional_params, input, output_params, output, in Update()
290 if (EVP_DigestSignUpdate(&digest_ctx_, input.peek_read(), input.available_read()) != 1) in Update()
292 *input_consumed = input.available_read(); in Update()
[all …]
Dblock_cipher_operation.h78 keymaster_error_t Update(const AuthorizationSet& additional_params, const Buffer& input,
81 keymaster_error_t Finish(const AuthorizationSet& additional_params, const Buffer& input,
92 bool HandleAad(const AuthorizationSet& input_params, const Buffer& input,
97 bool InternalUpdate(const uint8_t* input, size_t input_length, Buffer* output,
99 bool UpdateForFinish(const AuthorizationSet& additional_params, const Buffer& input,
128 keymaster_error_t Finish(const AuthorizationSet& additional_params, const Buffer& input,
149 keymaster_error_t Update(const AuthorizationSet& additional_params, const Buffer& input,
152 keymaster_error_t Finish(const AuthorizationSet& additional_params, const Buffer& input,
161 keymaster_error_t ProcessAllButTagLengthBytes(const Buffer& input, Buffer* output);
/system/update_engine/payload_consumer/
Dbzip_extent_writer.cc51 const uint8_t* input = reinterpret_cast<const uint8_t*>(bytes); in Write() local
52 const uint8_t* input_end = input + count; in Write()
54 input_buffer_.insert(input_buffer_.end(), input, input_end); in Write()
55 input = input_buffer_.data(); in Write()
56 input_end = input + input_buffer_.size(); in Write()
58 stream_.next_in = reinterpret_cast<char*>(const_cast<uint8_t*>(input)); in Write()
59 stream_.avail_in = input_end - input; in Write()
Dxz_extent_writer.cc72 const uint8_t* input = reinterpret_cast<const uint8_t*>(bytes); in Write() local
74 input_buffer_.insert(input_buffer_.end(), input, input + count); in Write()
75 input = input_buffer_.data(); in Write()
80 request.in = input; in Write()
/system/core/rootdir/
Dueventd.rc12 subsystem input
14 dirname /dev/input
52 /dev/input/* 0660 root input
53 /dev/v4l-touch* 0660 root input
65 /sys/devices/virtual/input/input* enable 0660 root input
66 /sys/devices/virtual/input/input* poll_delay 0660 root input
/system/core/libsparse/
Dappend2simg.cpp53 int input; in main() local
88 input = open(input_path, O_RDONLY | O_BINARY); in main()
89 if (input < 0) { in main()
94 input_len = lseek64(input, 0, SEEK_END); in main()
102 lseek64(input, 0, SEEK_SET); in main()
105 if (sparse_file_add_fd(sparse_output, input, 0, input_len, output_block) < 0) { in main()
126 close(input); in main()
/system/tools/xsdc/src/com/android/xsdc/java/
DUtils.java44 static String capitalize(String input) { in capitalize() argument
45 return input.substring(0, 1).toUpperCase() + input.substring(1); in capitalize()
48 private static String lowerize(String input) { in lowerize() argument
49 return input.substring(0, 1).toLowerCase() + input.substring(1); in lowerize()
/system/tools/xsdc/src/com/android/xsdc/cpp/
DUtils.java47 static String capitalize(String input) { in capitalize() argument
48 return input.substring(0, 1).toUpperCase() + input.substring(1); in capitalize()
51 static String lowerize(String input) { in lowerize() argument
52 return input.substring(0, 1).toLowerCase() + input.substring(1); in lowerize()
/system/core/adb/daemon/
Dshell_service_test.cpp236 std::string input = "foo\nbar"; in TEST_F() local
238 memcpy(protocol->data(), input.data(), input.length()); in TEST_F()
239 ASSERT_TRUE(protocol->Write(ShellProtocol::kIdStdin, input.length())); in TEST_F()
279 char input[10]; in TEST_F() local
280 EXPECT_TRUE(ReadFdExactly(in, input, 2)); in TEST_F()
281 input[2] = 0; in TEST_F()
282 EXPECT_STREQ("in", input); in TEST_F()
299 char input[10]; in TEST_F() local
300 EXPECT_TRUE(ReadFdExactly(in, input, 2)); in TEST_F()
301 input[2] = 0; in TEST_F()
[all …]
/system/bt/gd/os/linux_generic/
Dfiles.cc54 std::ifstream input(path, std::ios::binary | std::ios::ate); in FileExists() local
55 return input.good(); in FileExists()
67 std::ifstream input(path, std::ios::binary | std::ios::ate); in ReadSmallFile() local
68 if (!input) { in ReadSmallFile()
72 auto file_size = input.tellg(); in ReadSmallFile()
78 if (!input.seekg(0)) { in ReadSmallFile()
82 if (!input.read(result.data(), result.size())) { in ReadSmallFile()
86 input.close(); in ReadSmallFile()
/system/core/adb/fastdeploy/deploypatchgenerator/
Dpatch_utils_test.cpp38 bool FileMatchesContent(android::base::borrowed_fd input, const char* contents, in FileMatchesContent() argument
40 adb_lseek(input, 0, SEEK_SET); in FileMatchesContent()
46 ssize_t readAmount = adb_read(input, buffer, BUFFER_SIZE); in FileMatchesContent()
71 TemporaryFile input; in TEST() local
74 WriteFdExactly(input.fd, expected); in TEST()
75 adb_lseek(input.fd, 0, SEEK_SET); in TEST()
77 PatchUtils::Pipe(input.fd, output.fd, expected.size()); in TEST()
/system/keymaster/legacy_support/
Dkeymaster_passthrough_operation.cpp27 const Buffer& input, in Finish() argument
31 keymaster_blob_t in{ input.peek_read(), input.available_read() }; in Finish()
95 …ghOperation<keymaster2_device_t>::Finish(const AuthorizationSet& input_params, const Buffer& input, in Finish() argument
100 keymaster_blob_t in{ input.peek_read(), input.available_read() }; in Finish()
/system/core/trusty/confirmationui/
DREADME6 system for integrity and authenticity of input events. This implementation provides
10 ## Secure input (NotSoSecureInput)
13 The input method (NotSoSecureInput) runs a cryptographic protocols that is
15 secure input device. But since the endpoint is currently in the HAL
18 NOTE that a secure input device end point needs a good source of entropy
/system/extras/libfec/test/
Dtest_read.cpp40 fec::io input(argv[1]); in main() local
42 if (!input) { in main()
56 count = input.read(buffer.get(), bufsize); in main()

12345678910