Home
last modified time | relevance | path

Searched refs:clientId (Results 1 – 25 of 30) sorted by relevance

12

/system/chre/host/common/
Dsocket_server.cc74 pair.second.clientId, strerror(errno)); in run()
89 uint16_t clientId = pair.second.clientId; in sendToAllClients() local
90 if (sendToClientSocket(data, length, clientSocket, clientId)) { in sendToAllClients()
105 uint16_t clientId) { in sendToClientById() argument
110 uint16_t thisClientId = pair.second.clientId; in sendToClientById()
111 if (thisClientId == clientId) { in sendToClientById()
130 clientData.clientId = mNextClientId++; in acceptClientConnection()
136 if (clientData.clientId == 0) { in acceptClientConnection()
162 mClients.size(), clientData.clientId); in acceptClientConnection()
169 uint16_t clientId = clientData.clientId; in handleClientData() local
[all …]
Dpreloaded_nanoapp_loader.cc218 const ::chre::fbs::LoadNanoappResponseT &response, HalClientId clientId) { in onLoadNanoappResponse() argument
220 if (clientId != kHalId || !mFragmentedLoadPromise.has_value()) { in onLoadNanoappResponse()
224 response.success ? "success" : "failure", clientId, in onLoadNanoappResponse()
Dfbs_daemon_base.cc94 bool FbsDaemonBase::sendMessageToChre(uint16_t clientId, void *data, in sendMessageToChre() argument
97 if (!HostProtocolHost::mutateHostClientId(data, length, clientId)) { in sendMessageToChre()
/system/chre/host/hal_generic/common/
Dhal_client_manager.cc61 client.clientId << HalClientManager::kNumOfBitsForEndpointId | in mutateVendorEndpointId()
96 Client *HalClientManager::getClientByClientId(HalClientId clientId) { in getClientByClientId() argument
97 return getClientByField([&clientId](const Client &client) { in getClientByClientId()
98 return client.clientId == clientId; in getClientByClientId()
115 usedClientIds.insert(client.clientId); in updateNextClientId()
155 return client->clientId; in getClientId()
159 HalClientId clientId) { in getCallback() argument
161 const Client *client = getClientByClientId(clientId); in getCallback()
163 LOGE("Failed to find the callback for the client id %" PRIu16, clientId); in getCallback()
229 mPendingLoadTransaction->clientId == client->clientId) { in handleClientDeath()
[all …]
Dhal_client_manager.h95 const HalClientId clientId) in Client()
96 : Client(uuid, name, clientId, /* pid= */ kPidUnset, in Client()
101 const HalClientId clientId, pid_t pid, in Client()
106 clientId{clientId},
123 const HalClientId clientId; member
181 std::shared_ptr<IContextHubCallback> getCallback(HalClientId clientId);
216 getNanoappInfoFromPendingLoadTransaction(HalClientId clientId,
270 std::optional<int64_t> resetPendingUnloadTransaction(HalClientId clientId,
354 PendingTransaction(HalClientId clientId, uint32_t transactionId, in PendingTransaction()
356 this->clientId = clientId; in PendingTransaction()
[all …]
Dmulti_client_context_hub_base.cc219 HalClientId clientId = mHalClientManager->getClientId(pid); in loadNanoapp() local
226 if (sendFragmentedLoadRequest(clientId, request.value())) { in loadNanoapp()
242 HalClientId clientId, FragmentedLoadRequest &request) { in sendFragmentedLoadRequest() argument
247 builder.GetSize(), clientId); in sendFragmentedLoadRequest()
264 HalClientId clientId = mHalClientManager->getClientId(pid); in unloadNanoapp() local
269 builder.GetSize(), clientId); in unloadNanoapp()
273 mHalClientManager->resetPendingUnloadTransaction(clientId, transactionId); in unloadNanoapp()
608 HalClientId clientId = container->host_addr->client_id(); in handleMessageFromChre() local
616 onNanoappListResponse(*message.AsNanoappListResponse(), clientId); in handleMessageFromChre()
620 onNanoappLoadResponse(*message.AsLoadNanoappResponse(), clientId); in handleMessageFromChre()
[all …]
Dmulti_client_context_hub_base.h115 bool sendFragmentedLoadRequest(HalClientId clientId,
123 HalClientId clientId);
126 HalClientId clientId);
/system/chre/host/common/include/chre_host/
Dsocket_server.h46 typedef std::function<void(uint16_t clientId, void *data, size_t len)>
81 bool sendToClientById(const void *data, size_t length, uint16_t clientId);
111 uint16_t clientId; member
134 uint16_t clientId);
Dfbs_daemon_base.h44 bool sendMessageToChre(uint16_t clientId, void *data,
/system/chre/platform/android/
Dinit.cc32 void onMessageReceivedFromClient(uint16_t clientId, void *data, size_t length) { in onMessageReceivedFromClient() argument
33 if (!HostProtocolHost::mutateHostClientId(data, length, clientId)) { in onMessageReceivedFromClient()
/system/keymaster/ng/include/
DKeyMintUtils.h122 inline void addClientAndAppData(const vector<uint8_t>& clientId, const vector<uint8_t>& appData, in addClientAndAppData() argument
125 if (clientId.size()) { in addClientAndAppData()
126 params->push_back(::keymaster::TAG_APPLICATION_ID, clientId.data(), clientId.size()); in addClientAndAppData()
DAndroidKeymaster41Device.h103 const hidl_vec<uint8_t>& clientId, in getKeyCharacteristics() argument
106 return super::getKeyCharacteristics(keyBlob, clientId, appData, _hidl_cb); in getKeyCharacteristics()
126 const hidl_vec<uint8_t>& clientId, const hidl_vec<uint8_t>& appData, in exportKey() argument
128 return super::exportKey(exportFormat, keyBlob, clientId, appData, _hidl_cb); in exportKey()
DAndroidKeymaster3Device.h66 const hidl_vec<uint8_t>& clientId,
72 const hidl_vec<uint8_t>& clientId, const hidl_vec<uint8_t>& appData,
DAndroidKeymaster4Device.h69 const hidl_vec<uint8_t>& clientId,
81 const hidl_vec<uint8_t>& clientId, const hidl_vec<uint8_t>& appData,
/system/core/trusty/keymaster/3.0/
DTrustyKeymaster3Device.cpp199 void addClientAndAppData(const hidl_vec<uint8_t>& clientId, const hidl_vec<uint8_t>& appData, in addClientAndAppData() argument
202 if (clientId.size()) { in addClientAndAppData()
203 params->push_back(::keymaster::TAG_APPLICATION_ID, clientId.data(), clientId.size()); in addClientAndAppData()
254 const hidl_vec<uint8_t>& clientId, in getKeyCharacteristics() argument
259 addClientAndAppData(clientId, appData, &request.additional_params); in getKeyCharacteristics()
298 const hidl_vec<uint8_t>& clientId, in exportKey() argument
304 addClientAndAppData(clientId, appData, &request.additional_params); in exportKey()
/system/keymaster/ng/
DAndroidKeymaster3Device.cpp209 void addClientAndAppData(const hidl_vec<uint8_t>& clientId, const hidl_vec<uint8_t>& appData, in addClientAndAppData() argument
212 if (clientId.size()) { in addClientAndAppData()
213 params->push_back(::keymaster::TAG_APPLICATION_ID, clientId.data(), clientId.size()); in addClientAndAppData()
304 const hidl_vec<uint8_t>& clientId, in getKeyCharacteristics() argument
309 addClientAndAppData(clientId, appData, &request.additional_params); in getKeyCharacteristics()
348 const hidl_vec<uint8_t>& clientId, in exportKey() argument
354 addClientAndAppData(clientId, appData, &request.additional_params); in exportKey()
DAndroidKeymaster4Device.cpp162 void addClientAndAppData(const hidl_vec<uint8_t>& clientId, const hidl_vec<uint8_t>& appData, in addClientAndAppData() argument
165 if (clientId.size()) { in addClientAndAppData()
166 params->push_back(::keymaster::TAG_APPLICATION_ID, clientId.data(), clientId.size()); in addClientAndAppData()
343 const hidl_vec<uint8_t>& clientId, in getKeyCharacteristics() argument
348 addClientAndAppData(clientId, appData, &request.additional_params); in getKeyCharacteristics()
414 const hidl_vec<uint8_t>& clientId, in exportKey() argument
420 addClientAndAppData(clientId, appData, &request.additional_params); in exportKey()
/system/core/trusty/keymaster/keymint/
DTrustyKeyMintDevice.cpp84 void addClientAndAppData(const vector<uint8_t>& clientId, const vector<uint8_t>& appData, in addClientAndAppData() argument
87 if (clientId.size()) params->push_back(TAG_APPLICATION_ID, clientId.data(), clientId.size()); in addClientAndAppData()
145 const vector<uint8_t>& clientId, // in getKeyCharacteristics() argument
150 addClientAndAppData(clientId, appData, &request.additional_params); in getKeyCharacteristics()
/system/core/trusty/keymaster/include/trusty_keymaster/
DTrustyKeymaster3Device.h52 const hidl_vec<uint8_t>& clientId,
58 const hidl_vec<uint8_t>& clientId, const hidl_vec<uint8_t>& appData,
DTrustyKeymaster4Device.h63 const hidl_vec<uint8_t>& clientId,
75 const hidl_vec<uint8_t>& clientId, const hidl_vec<uint8_t>& appData,
/system/chre/host/msm/daemon/
Dfastrpc_daemon.cc109 auto serverCb = [&](uint16_t clientId, void *data, size_t len) { in run() argument
113 sendMessageToChre(clientId, data, len); in run()
/system/keymaster/contexts/
Dkeymaster2_passthrough_context.cpp77 keymaster_blob_t clientId; in ParseKeyBlob() local
79 keymaster_blob_t* clientIdPtr = &clientId; in ParseKeyBlob()
/system/chre/host/test/hal_generic/common/
Dhal_client_manager_test.cc224 EXPECT_EQ(client.clientId, systemClientId); in TEST_F()
246 EXPECT_NE(client.clientId, ::chre::kHostClientIdUnspecified); in TEST_F()
344 EXPECT_EQ(reservedClientIds.find(client.clientId), reservedClientIds.end()); in TEST_F()
443 HalClientId clientId = halClientManager->getClientId(kVendorPid); in TEST_F() local
444 EXPECT_EQ(mutatedEndpointId, 0x8000 | clientId << 6 | originalEndpointId); in TEST_F()
520 EXPECT_NE(client.clientId, ::chre::kHostClientIdUnspecified); in TEST_F()
/system/core/trusty/keymaster/4.0/
DTrustyKeymaster4Device.cpp251 void addClientAndAppData(const hidl_vec<uint8_t>& clientId, const hidl_vec<uint8_t>& appData, in addClientAndAppData() argument
254 if (clientId.size()) { in addClientAndAppData()
255 params->push_back(::keymaster::TAG_APPLICATION_ID, clientId.data(), clientId.size()); in addClientAndAppData()
369 const hidl_vec<uint8_t>& clientId, in getKeyCharacteristics() argument
374 addClientAndAppData(clientId, appData, &request.additional_params); in getKeyCharacteristics()
439 const hidl_vec<uint8_t>& clientId, in exportKey() argument
445 addClientAndAppData(clientId, appData, &request.additional_params); in exportKey()
/system/chre/test/simulation/
Drpc_test.cc343 uint64_t clientId = loadNanoapp(MakeUnique<ClientApp>()); in TEST_F() local
347 sendEventToNanoapp(clientId, INCREMENT_REQUEST, kNumber); in TEST_F()
352 unloadNanoapp(clientId); in TEST_F()

12