/system/tools/aidl/tests/java_app/src/android/aidl/tests/ |
D | TestServiceClient.java | 232 boolean[] input = {true, false, false, false}; in checkArrayReversal() 233 boolean echoed[] = new boolean[input.length]; in checkArrayReversal() 234 boolean[] reversed = service.ReverseBoolean(input, echoed); in checkArrayReversal() 235 if (!Arrays.equals(input, echoed)) { in checkArrayReversal() 238 if (input.length != reversed.length) { in checkArrayReversal() 241 for (int i = 0; i < input.length; ++i) { in checkArrayReversal() 243 if (input[i] != reversed[j]) { in checkArrayReversal() 245 "input[" + i + "] = " + input[i] + in checkArrayReversal() 251 byte[] input = {0, 1, 2}; in checkArrayReversal() 252 byte echoed[] = new byte[input.length]; in checkArrayReversal() [all …]
|
/system/tools/aidl/tests/ |
D | aidl_test_client_utf8_strings.cpp | 58 for (const auto& input : utf8_inputs) { in ConfirmUtf8InCppStringRepeat() local 60 Status status = s->RepeatUtf8CppString(input, &reply); in ConfirmUtf8InCppStringRepeat() 61 if (!status.isOk() || input != reply) { in ConfirmUtf8InCppStringRepeat() 63 << input in ConfirmUtf8InCppStringRepeat() 77 for (const auto& input : utf8_inputs) { in ConfirmUtf8InCppStringRepeat() local 80 unique_ptr<string>(new string(input)), &reply); in ConfirmUtf8InCppStringRepeat() 83 "nullable utf8 string " << input; in ConfirmUtf8InCppStringRepeat() 88 << input; in ConfirmUtf8InCppStringRepeat() 91 if (input != *reply) { in ConfirmUtf8InCppStringRepeat() 93 << input in ConfirmUtf8InCppStringRepeat() [all …]
|
D | aidl_test_service.cpp | 158 Status RepeatSimpleParcelable(const SimpleParcelable& input, in RepeatSimpleParcelable() argument 161 ALOGI("Repeated a SimpleParcelable %s", input.toString().c_str()); in RepeatSimpleParcelable() 162 *repeat = input; in RepeatSimpleParcelable() 163 *_aidl_return = input; in RepeatSimpleParcelable() 167 Status RepeatPersistableBundle(const PersistableBundle& input, in RepeatPersistableBundle() argument 170 *_aidl_return = input; in RepeatPersistableBundle() 175 Status ReverseArray(const vector<T>& input, vector<T>* repeated, in ReverseArray() argument 177 ALOGI("Reversing array of length %zu", input.size()); in ReverseArray() 178 *repeated = input; in ReverseArray() 179 *_aidl_return = input; in ReverseArray() [all …]
|
D | test_helpers.h | 35 U input) { in RepeatPrimitive() argument 37 android::binder::Status status = (*service.*func)(input, &reply); in RepeatPrimitive() 38 if (!status.isOk() || input != reply) { in RepeatPrimitive() 51 std::vector<T> input) { in ReverseArray() argument 55 input, &actual_repeated, &actual_reversed); in ReverseArray() 61 if (input != actual_repeated) { in ReverseArray() 63 LOG(ERROR) << "input.size()=" << input.size() in ReverseArray() 67 std::reverse(input.begin(), input.end()); in ReverseArray() 68 if (input != actual_reversed) { in ReverseArray()
|
D | aidl_test_client_primitives.cpp | 90 for (const auto& input : inputs) { in ConfirmPrimitiveRepeat() local 92 Status status = s->RepeatString(input, &reply); in ConfirmPrimitiveRepeat() 93 if (!status.isOk() || input != reply) { in ConfirmPrimitiveRepeat() 95 << String8(input).string() in ConfirmPrimitiveRepeat() 149 vector<sp<IBinder>> input; in ConfirmReverseBinderLists() local 160 input.push_back(INamedCallback::asBinder(got)); in ConfirmReverseBinderLists() 166 status = s->ReverseNamedCallbackList(input, &output, &reversed); in ConfirmReverseBinderLists()
|
/system/tools/aidl/tests/android/aidl/tests/ |
D | ITestService.aidl | 44 SimpleParcelable RepeatSimpleParcelable(in SimpleParcelable input, in RepeatSimpleParcelable() argument 46 PersistableBundle RepeatPersistableBundle(in PersistableBundle input); in RepeatPersistableBundle() argument 49 boolean[] ReverseBoolean(in boolean[] input, out boolean[] repeated); in ReverseBoolean() argument 50 byte[] ReverseByte (in byte[] input, out byte[] repeated); in ReverseByte() argument 51 char[] ReverseChar (in char[] input, out char[] repeated); in ReverseChar() argument 52 int[] ReverseInt (in int[] input, out int[] repeated); in ReverseInt() argument 53 long[] ReverseLong (in long[] input, out long[] repeated); in ReverseLong() argument 54 float[] ReverseFloat (in float[] input, out float[] repeated); in ReverseFloat() argument 55 double[] ReverseDouble (in double[] input, out double[] repeated); in ReverseDouble() argument 56 String[] ReverseString (in String[] input, out String[] repeated); in ReverseString() argument [all …]
|
/system/tpm/attestation/client/ |
D | main.cc | 167 std::string input; in ScheduleCommand() local 169 if (!base::ReadFileToString(filename, &input)) { in ScheduleCommand() 175 input); in ScheduleCommand() 181 std::string input; in ScheduleCommand() local 183 if (!base::ReadFileToString(filename, &input)) { in ScheduleCommand() 189 input); in ScheduleCommand() 195 std::string input; in ScheduleCommand() local 197 if (!base::ReadFileToString(filename, &input)) { in ScheduleCommand() 205 input); in ScheduleCommand() 210 std::string input; in ScheduleCommand() local [all …]
|
/system/keymaster/ |
D | ecdsa_operation.cpp | 98 keymaster_error_t EcdsaOperation::StoreData(const Buffer& input, size_t* input_consumed) { in StoreData() argument 102 if (!data_.write(input.peek_read(), min(data_.available_write(), input.available_read()))) in StoreData() 105 *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() 191 const Buffer& input, in Update() argument [all …]
|
D | aes_operation.cpp | 194 const Buffer& input, in Update() argument 199 if (!HandleAad(additional_params, input, &error)) in Update() 202 if (!InternalUpdate(input.peek_read(), input.available_read(), output, &error)) in Update() 204 *input_consumed = input.available_read(); in Update() 215 const Buffer& input, const Buffer& /* signature */, in Finish() argument 218 if (!UpdateForFinish(additional_params, input, output_params, output, &error)) in Finish() 377 bool AesEvpOperation::HandleAad(const AuthorizationSet& input_params, const Buffer& input, in HandleAad() argument 405 if (input.available_read()) { in HandleAad() 447 bool AesEvpOperation::InternalUpdate(const uint8_t* input, size_t input_length, Buffer* output, in InternalUpdate() argument 461 if (!EVP_CipherUpdate(&ctx_, output->peek_write(), &output_written, input, input_length)) { in InternalUpdate() [all …]
|
D | rsa_operation.cpp | 145 const Buffer& input, AuthorizationSet* /* output_params */, in Update() argument 155 return StoreData(input, input_consumed); in Update() 159 keymaster_error_t RsaOperation::StoreData(const Buffer& input, size_t* input_consumed) { in StoreData() argument 165 if (!data_.write(input.peek_read(), input.available_read())) { in StoreData() 167 input.available_read() + data_.available_read(), EVP_PKEY_size(rsa_key_)); in StoreData() 171 *input_consumed = input.available_read(); in StoreData() 279 const Buffer& input, AuthorizationSet* output_params, in Update() argument 283 return RsaOperation::Update(additional_params, input, output_params, output, in Update() 286 if (EVP_DigestSignUpdate(&digest_ctx_, input.peek_read(), input.available_read()) != 1) in Update() 288 *input_consumed = input.available_read(); in Update() [all …]
|
D | aes_operation.h | 68 keymaster_error_t Update(const AuthorizationSet& additional_params, const Buffer& input, 71 keymaster_error_t Finish(const AuthorizationSet& additional_params, const Buffer& input, 82 bool HandleAad(const AuthorizationSet& input_params, const Buffer& input, 87 bool InternalUpdate(const uint8_t* input, size_t input_length, Buffer* output, 89 bool UpdateForFinish(const AuthorizationSet& additional_params, const Buffer& input, 117 keymaster_error_t Finish(const AuthorizationSet& additional_params, const Buffer& input, 136 keymaster_error_t Update(const AuthorizationSet& additional_params, const Buffer& input, 139 keymaster_error_t Finish(const AuthorizationSet& additional_params, const Buffer& input, 148 keymaster_error_t ProcessAllButTagLengthBytes(const Buffer& input, Buffer* output);
|
D | hmac_operation.cpp | 151 const Buffer& input, AuthorizationSet* /* output_params */, in Update() argument 153 if (!HMAC_Update(&ctx_, input.peek_read(), input.available_read())) in Update() 155 *input_consumed = input.available_read(); in Update() 164 const Buffer& input, const Buffer& signature, in Finish() argument 166 keymaster_error_t error = UpdateForFinish(additional_params, input); in Finish()
|
D | ecdsa_operation.h | 40 keymaster_error_t StoreData(const Buffer& input, size_t* input_consumed); 56 keymaster_error_t Update(const AuthorizationSet& additional_params, const Buffer& input, 59 keymaster_error_t Finish(const AuthorizationSet& additional_params, const Buffer& input, 70 keymaster_error_t Update(const AuthorizationSet& additional_params, const Buffer& input, 73 keymaster_error_t Finish(const AuthorizationSet& additional_params, const Buffer& input,
|
D | rsa_operation.h | 44 keymaster_error_t Update(const AuthorizationSet& additional_params, const Buffer& input, 56 keymaster_error_t StoreData(const Buffer& input, size_t* input_consumed); 95 keymaster_error_t Update(const AuthorizationSet& additional_params, const Buffer& input, 98 keymaster_error_t Finish(const AuthorizationSet& additional_params, const Buffer& input, 117 keymaster_error_t Update(const AuthorizationSet& additional_params, const Buffer& input, 120 keymaster_error_t Finish(const AuthorizationSet& additional_params, const Buffer& input, 153 keymaster_error_t Finish(const AuthorizationSet& additional_params, const Buffer& input, 165 keymaster_error_t Finish(const AuthorizationSet& additional_params, const Buffer& input,
|
/system/connectivity/shill/ |
D | socket_info_reader.cc | 86 bool SocketInfoReader::ParseSocketInfo(const string& input, in ParseSocketInfo() argument 88 vector<string> tokens = base::SplitString(input, base::kWhitespaceASCII, in ParseSocketInfo() 135 const string& input, IPAddress* ip_address, uint16_t* port) { in ParseIPAddressAndPort() argument 137 input, ":", base::TRIM_WHITESPACE, base::SPLIT_WANT_ALL); in ParseIPAddressAndPort() 147 bool SocketInfoReader::ParseIPAddress(const string& input, in ParseIPAddress() argument 149 ByteString byte_string = ByteString::CreateFromHexString(input); in ParseIPAddress() 172 bool SocketInfoReader::ParsePort(const string& input, uint16_t* port) { in ParsePort() argument 175 if (input.size() != 4 || !base::HexStringToInt(input, &result) || in ParsePort() 185 const string& input, in ParseTransimitAndReceiveQueueValues() argument 190 input, ":", base::TRIM_WHITESPACE, base::SPLIT_WANT_ALL); in ParseTransimitAndReceiveQueueValues() [all …]
|
D | connection_info_reader.cc | 83 bool ConnectionInfoReader::ParseConnectionInfo(const string& input, in ParseConnectionInfo() argument 85 vector<string> tokens = base::SplitString(input, base::kWhitespaceASCII, in ParseConnectionInfo() 159 bool ConnectionInfoReader::ParseProtocol(const string& input, int* protocol) { in ParseProtocol() argument 160 if (!base::StringToInt(input, protocol) || in ParseProtocol() 168 const string& input, int64_t* time_to_expire_seconds) { in ParseTimeToExpireSeconds() argument 169 if (!base::StringToInt64(input, time_to_expire_seconds) || in ParseTimeToExpireSeconds() 177 const string& input, IPAddress* ip_address, bool* is_source) { in ParseIPAddress() argument 180 if (base::StartsWith(input, kSourceIPAddressTag, in ParseIPAddress() 183 ip_address_string = input.substr(strlen(kSourceIPAddressTag)); in ParseIPAddress() 184 } else if (base::StartsWith(input, kDestinationIPAddressTag, in ParseIPAddress() [all …]
|
D | socket_info_reader.h | 63 bool ParseSocketInfo(const std::string& input, SocketInfo* socket_info); 65 const std::string& input, IPAddress* ip_address, uint16_t* port); 66 bool ParseIPAddress(const std::string& input, IPAddress* ip_address); 67 bool ParsePort(const std::string& input, uint16_t* port); 69 const std::string& input, 71 bool ParseConnectionState(const std::string& input, 73 bool ParseTimerState(const std::string& input,
|
D | connection_info_reader.h | 54 bool ParseConnectionInfo(const std::string& input, ConnectionInfo* info); 55 bool ParseProtocol(const std::string& input, int* protocol); 56 bool ParseTimeToExpireSeconds(const std::string& input, 58 bool ParseIsUnreplied(const std::string& input, bool* is_unreplied); 59 bool ParseIPAddress(const std::string& input, 61 bool ParsePort(const std::string& input, uint16_t* port, bool* is_source);
|
/system/update_engine/payload_consumer/ |
D | bzip_extent_writer.cc | 46 const uint8_t* input = reinterpret_cast<const uint8_t*>(bytes); in Write() local 47 const uint8_t* input_end = input + count; in Write() 49 input_buffer_.insert(input_buffer_.end(), input, input_end); in Write() 50 input = input_buffer_.data(); in Write() 51 input_end = input + input_buffer_.size(); in Write() 53 stream_.next_in = reinterpret_cast<char*>(const_cast<uint8_t*>(input)); in Write() 54 stream_.avail_in = input_end - input; in Write()
|
D | xz_extent_writer.cc | 69 const uint8_t* input = reinterpret_cast<const uint8_t*>(bytes); in Write() local 71 input_buffer_.insert(input_buffer_.end(), input, input + count); in Write() 72 input = input_buffer_.data(); in Write() 77 request.in = input; in Write()
|
/system/core/libsparse/ |
D | append2simg.c | 56 int input; in main() local 91 input = open(input_path, O_RDONLY | O_BINARY); in main() 92 if (input < 0) { in main() 97 input_len = lseek64(input, 0, SEEK_END); in main() 105 lseek64(input, 0, SEEK_SET); in main() 108 if (sparse_file_add_fd(sparse_output, input, 0, input_len, output_block) < 0) { in main() 129 close(input); in main()
|
/system/connectivity/shill/net/ |
D | netlink_attribute.cc | 296 bool NetlinkAttribute::InitFromValue(const ByteString& input) { in InitFromValue() argument 297 data_ = input; in InitFromValue() 448 bool NetlinkU8Attribute::InitFromValue(const ByteString& input) { in InitFromValue() argument 450 if (!input.CopyData(sizeof(data), &data)) { in InitFromValue() 453 << " bytes but only had " << input.GetLength() << "."; in InitFromValue() 457 return NetlinkAttribute::InitFromValue(input); in InitFromValue() 501 bool NetlinkU16Attribute::InitFromValue(const ByteString& input) { in InitFromValue() argument 503 if (!input.CopyData(sizeof(data), &data)) { in InitFromValue() 506 << " bytes but only had " << input.GetLength() << "."; in InitFromValue() 511 return NetlinkAttribute::InitFromValue(input); in InitFromValue() [all …]
|
/system/extras/libfec/test/ |
D | test_read.cpp | 40 fec::io input(argv[1]); in main() local 42 if (!input) { in main() 56 count = input.read(buffer.get(), bufsize); in main()
|
/system/core/rootdir/ |
D | ueventd.rc | 50 /dev/input/* 0660 root input 100 /sys/devices/virtual/input/input* enable 0660 root input 101 /sys/devices/virtual/input/input* poll_delay 0660 root input
|
/system/core/libpixelflinger/tests/gglmul/ |
D | gglmul_test.cpp | 38 GGLfixed input; member 61 test->input, test->output); in gglClampx_test() 62 if(gglClampx(test->input) == test->output) in gglClampx_test() 72 GGLfixed input; member 91 printf("Test input=0x%08x output=%2d :", test->input, test->output); in gglClz_test() 92 if(gglClz(test->input) == test->output) in gglClz_test()
|