Home
last modified time | relevance | path

Searched refs:reply (Results 1 – 25 of 34) sorted by relevance

12

/system/tools/aidl/tests/
Daidl_test_client_utf8_strings.cpp48 std::string reply; in TEST_F() local
49 auto status = service->RepeatUtf8CppString(input, &reply); in TEST_F()
51 ASSERT_THAT(reply, Eq(input)); in TEST_F()
54 std::optional<std::string> reply; in TEST_F() local
55 auto status = service->RepeatNullableUtf8CppString(std::nullopt, &reply); in TEST_F()
57 ASSERT_FALSE(reply.has_value()); in TEST_F()
60 std::optional<std::string> reply; in TEST_F() local
61 auto status = service->RepeatNullableUtf8CppString(input, &reply); in TEST_F()
63 ASSERT_TRUE(reply.has_value()); in TEST_F()
64 ASSERT_THAT(*reply, Eq(input)); in TEST_F()
/system/core/init/
Dsubcontext.cpp68 SubcontextReply* reply) const;
70 SubcontextReply* reply) const;
78 SubcontextReply* reply) const { in RunCommand()
94 reply->set_success(true); in RunCommand()
96 auto* failure = reply->mutable_failure(); in RunCommand()
103 SubcontextReply* reply) const { in ExpandArgs()
107 auto* failure = reply->mutable_failure(); in ExpandArgs()
112 auto* expand_args_reply = reply->mutable_expand_args_reply(); in ExpandArgs()
147 auto reply = SubcontextReply(); in MainLoop() local
150 RunCommand(subcontext_command.execute_command(), &reply); in MainLoop()
[all …]
Dsubcontext.proto36 oneof reply { oneof
/system/core/libnetutils/
Ddhcpclient.c351 static int is_valid_reply(dhcp_msg *msg, dhcp_msg *reply, int sz) in is_valid_reply() argument
357 if (reply->op != OP_BOOTREPLY) { in is_valid_reply()
358 if (verbose) ALOGD("Wrong Op %d != %d\n", reply->op, OP_BOOTREPLY); in is_valid_reply()
361 if (reply->xid != msg->xid) { in is_valid_reply()
362 if (verbose) ALOGD("Wrong Xid 0x%x != 0x%x\n", ntohl(reply->xid), in is_valid_reply()
366 if (reply->htype != msg->htype) { in is_valid_reply()
367 if (verbose) ALOGD("Wrong Htype %d != %d\n", reply->htype, msg->htype); in is_valid_reply()
370 if (reply->hlen != msg->hlen) { in is_valid_reply()
371 if (verbose) ALOGD("Wrong Hlen %d != %d\n", reply->hlen, msg->hlen); in is_valid_reply()
374 if (memcmp(msg->chaddr, reply->chaddr, msg->hlen)) { in is_valid_reply()
[all …]
/system/security/keystore-engine/
Dandroid_engine.cpp102 uint8_t* reply = nullptr; in rsa_private_transform() local
104 int32_t ret = g_keystore_backend->sign(key_id, in, len, &reply, &reply_len); in rsa_private_transform()
111 } else if (reply_len == 0 || reply == nullptr) { in rsa_private_transform()
122 memcpy(out, &reply[reply_len - len], len); in rsa_private_transform()
130 memcpy(out + len - reply_len, &reply[0], reply_len); in rsa_private_transform()
132 memcpy(out, &reply[0], len); in rsa_private_transform()
158 uint8_t* reply = nullptr; in ecdsa_sign() local
161 key_id, digest, digest_len, &reply, &reply_len); in ecdsa_sign()
165 } else if (reply_len == 0 || reply == nullptr) { in ecdsa_sign()
174 memcpy(sig, &reply[0], reply_len); in ecdsa_sign()
Dkeystore_backend_hidl.cpp34 const char *key_id, const uint8_t* in, size_t len, uint8_t** reply, in sign() argument
36 if (key_id == nullptr || in == nullptr || reply == nullptr || reply_len == nullptr) { in sign()
52 *reply = signedData.releaseData(); in sign()
Dkeystore_backend.h32 uint8_t** reply, size_t* reply_len) = 0;
Dkeystore_backend_binder.h33 uint8_t** reply, size_t* reply_len) override;
Dkeystore_backend_hidl.h33 uint8_t** reply, size_t* reply_len) override;
Dkeystore_backend_binder.cpp97 uint8_t** reply, size_t* reply_len) { in sign() argument
239 if (reply) { in sign()
240 *reply = reply_hidl.releaseData(); in sign()
/system/memory/libmemunreachable/tests/
DBinder_test.cpp44 virtual status_t onTransact(uint32_t /*code*/, const Parcel& data, Parcel* reply, in onTransact() argument
46 reply->writeStrongBinder(ref); in onTransact()
147 Parcel reply; in TEST_F() local
150 status_t rv = service->transact(0, send, &reply); in TEST_F()
/system/libhidl/transport/token/1.0/utils/include/hidl/
DHybridInterface.h204 const Parcel& data, Parcel* reply, uint32_t flags = 0);
423 uint32_t code, const Parcel& data, Parcel* reply, uint32_t flags) { in onTransact() argument
433 reply->writeBool(result); in onTransact()
440 reply->writeByteArray(token.size(), token.data()); in onTransact()
443 reply->writeUint32(static_cast<uint32_t>(sHalIndex)); in onTransact()
446 reply->writeBool(true); in onTransact()
450 return BNINTERFACE::onTransact(code, data, reply, flags); in onTransact()
502 Parcel data, reply; variable
505 data, &reply) == NO_ERROR) {
508 if (reply.readBool(&tokenCreated) != OK) {
[all …]
/system/extras/tests/binder/benchmarks/
DbinderAddInts.cpp73 const Parcel& data, Parcel* reply,
130 Parcel send, reply; in BM_addInts() local
145 send, &reply)) != 0) { in BM_addInts()
152 int result = reply.readInt32(); in BM_addInts()
172 Parcel* reply, uint32_t /* flags */) { in onTransact() argument
193 reply->writeInt32(val1 + val2); in onTransact()
/system/libhwbinder/
DIPCThreadState.cpp623 Parcel* reply, uint32_t flags) in transact() argument
640 if (reply) reply->setError(err); in transact()
662 if (reply) { in transact()
663 err = waitForResponse(reply); in transact()
679 if (reply) alog << indent << *reply << dedent << endl; in transact()
789 status_t IPCThreadState::sendReply(const Parcel& reply, uint32_t flags) in sendReply() argument
793 err = writeTransactionData(BC_REPLY_SG, flags, -1, 0, reply, &statusBuffer); in sendReply()
799 status_t IPCThreadState::waitForResponse(Parcel *reply, status_t *acquireResult) in waitForResponse() argument
819 if (!reply && !acquireResult) goto finish; in waitForResponse()
846 if (reply) { in waitForResponse()
[all …]
DBinder.cpp109 uint32_t code, const Parcel& data, Parcel* reply, uint32_t flags, TransactCallback callback) in transact() argument
116 err = onTransact(code, data, reply, flags, in transact()
DBpHwBinder.cpp103 uint32_t code, const Parcel& data, Parcel* reply, uint32_t flags, TransactCallback callback) in transact() argument
108 mHandle, code, data, reply, flags); in transact()
111 callback(*reply); in transact()
DProcessState.cpp139 Parcel data, reply; in getContextObject() local
143 status_t result = ipc->transact(0 /*magic*/, 0, data, &reply, 0); in getContextObject()
145 object = reply.readStrongBinder(); in getContextObject()
/system/core/libsysutils/src/
DSocketListener_test.cpp107 std::string reply = android::base::Join(args, ','); in runCommand() local
108 cli->sendMsg(42, reply.c_str(), /*addErrno=*/false, /*useCmdNum=*/false); in runCommand()
143 std::string reply = recvReply(client_fd.get()); in testCommand() local
144 EXPECT_EQ(std::string(expected) + '\0', reply); in testCommand()
/system/libhwbinder/include/hwbinder/
DIPCThreadState.h75 Parcel* reply, uint32_t flags);
115 status_t sendReply(const Parcel& reply, uint32_t flags);
116 status_t waitForResponse(Parcel *reply,
DBinder.h35 Parcel* reply,
67 Parcel* reply,
DIBinder.h84 Parcel* reply,
DBpHwBinder.h37 Parcel* reply,
/system/tools/hidl/test/hidl_test/
Dhidl_test_client.cpp1877 Parcel request, reply; in TEST_F() local
1879 EXPECT_EQ(::android::UNKNOWN_TRANSACTION, binder->transact(1234, request, &reply)); in TEST_F()
1891 Parcel request, reply; in TEST_F() local
1892 EXPECT_EQ(::android::BAD_TYPE, binder->transact(2 /*someBoolMethod*/, request, &reply)); in TEST_F()
1904 Parcel request, reply; in TEST_F() local
1907 EXPECT_EQ(::android::BAD_TYPE, binder->transact(2 /*someBoolMethod*/, request, &reply)); in TEST_F()
1919 Parcel request, reply; in TEST_F() local
1923 EXPECT_EQ(::android::OK, binder->transact(18 /*doThatAndReturnSomething*/, request, &reply, in TEST_F()
1927 ::android::status_t readFromParcelStatus = ::android::hardware::readFromParcel(&status, reply); in TEST_F()
1932 EXPECT_EQ(666, reply.readInt32()); in TEST_F()
[all …]
/system/core/fastboot/
DREADME.md125 will reply with "DATA%08x" if it has enough
130 command, e.g. an oem command. The client will reply
133 the client must reply with "FAIL". After the client
329 send a packet with fastboot data, and the device will reply with an
331 and the device will reply with fastboot data. The device may not give
/system/tools/hidl/test/java_test/
Dhidl_test_java_native.cpp770 Parcel request, reply; in TEST_F() local
774 EXPECT_EQ(::android::OK, binder->transact(18 /*doThatAndReturnSomething*/, request, &reply, in TEST_F()
778 EXPECT_EQ(::android::NOT_ENOUGH_DATA, ::android::hardware::readFromParcel(&status, reply)); in TEST_F()
790 Parcel request, reply; in TEST_F() local
799 binder->transact(17 /*doThis*/, request, &reply, 0 /* Not FLAG_ONEWAY */)); in TEST_F()

12