Home
last modified time | relevance | path

Searched refs:appId (Results 1 – 25 of 49) sorted by relevance

12

/system/chre/core/
Dhost_comms_manager.cc29 void HostCommsManager::flushMessagesSentByNanoapp(uint64_t appId) { in flushMessagesSentByNanoapp() argument
30 mHostLink.flushMessagesSentByNanoapp(appId); in flushMessagesSentByNanoapp()
56 msgToHost->appId = nanoapp->getAppId(); in sendMessageToHostFromNanoapp()
90 uint64_t appId, uint16_t hostEndpoint, uint32_t messageType, in craftNanoappMessageFromHost() argument
104 msgFromHost->appId = appId; in craftNanoappMessageFromHost()
123 if (eventLoop.findNanoappInstanceIdByAppId(craftedMessage->appId, in deliverNanoappMessageFromHost()
136 void HostCommsManager::sendMessageToNanoappFromHost(uint64_t appId, in sendMessageToNanoappFromHost() argument
150 appId, hostEndpoint, messageType, messageData, in sendMessageToNanoappFromHost()
155 appId, messageSize); in sendMessageToNanoappFromHost()
159 appId); in sendMessageToNanoappFromHost()
[all …]
Devent_loop.cc53 info->appId = app->getAppId(); in populateNanoappInfo()
64 bool EventLoop::findNanoappInstanceIdByAppId(uint64_t appId, in findNanoappInstanceIdByAppId() argument
71 if (app->getAppId() == appId) { in findNanoappInstanceIdByAppId()
89 void EventLoop::invokeMessageFreeFunction(uint64_t appId, in invokeMessageFreeFunction() argument
92 Nanoapp *nanoapp = lookupAppByAppId(appId); in invokeMessageFreeFunction()
94 LOGE("Couldn't find app 0x%016" PRIx64 " for message free callback", appId); in invokeMessageFreeFunction()
313 uint64_t appId, struct chreNanoappInfo *info) const { in populateNanoappInfoForAppId() argument
315 Nanoapp *app = lookupAppByAppId(appId); in populateNanoappInfoForAppId()
442 Nanoapp *EventLoop::lookupAppByAppId(uint64_t appId) const { in lookupAppByAppId()
444 if (app->getAppId() == appId) { in lookupAppByAppId()
[all …]
/system/chre/host/common/include/chre_host/
Dfragmented_load_transaction.h35 uint64_t appId; member
46 uint64_t appId, uint32_t appVersion, in FragmentedLoadRequest()
51 appId(appId), in FragmentedLoadRequest()
76 FragmentedLoadTransaction(uint32_t transactionId, uint64_t appId,
Dhost_protocol_host.h142 uint64_t appId, bool allowSystemNanoappUnload);
199 uint64_t appId, uint32_t appVersion, uint32_t targetApiVersion,
212 uint64_t appId, uint32_t appVersion, uint32_t targetApiVersion,
/system/chre/apps/test/chqts/src/general_test/
Dnanoapp_info.cc27 uint64_t appId; member
41 .appId = nanoapp_testing::hostToLittleEndian(mAppId), in sendToHost()
49 bool NanoappInfo::validate(uint64_t appId, uint32_t instanceId) { in validate() argument
51 if (appId != mAppId) { in validate()
Drunning_info.cc37 } else if (mRunningInfo.appId != NANOAPP_ID) { in validate()
47 mPlatformInfo.validate(mRunningInfo.appId, mRunningInfo.instanceId); in validate()
/system/chre/core/include/chre/core/
Dhost_comms_manager.h69 uint64_t appId; member
90 void flushMessagesSentByNanoapp(uint64_t appId);
142 void sendMessageToNanoappFromHost(uint64_t appId, uint32_t messageType,
207 MessageFromHost *craftNanoappMessageFromHost(uint64_t appId,
Devent_loop.h76 bool findNanoappInstanceIdByAppId(uint64_t appId, uint32_t *instanceId) const;
106 void invokeMessageFreeFunction(uint64_t appId,
235 bool populateNanoappInfoForAppId(uint64_t appId,
405 Nanoapp *lookupAppByAppId(uint64_t appId) const;
/system/chre/platform/shared/nanoapp/
Dnanoapp_dso_util.cc37 } else if (appInfo->appId == 0) { in validateAppInfo()
39 } else if (expectedAppId != 0 && expectedAppId != appInfo->appId) { in validateAppInfo()
42 expectedAppId, appInfo->appId); in validateAppInfo()
/system/chre/platform/slpi/
Dhost_link.cc66 uint64_t appId; member
120 uint64_t appId; member
285 if (!eventLoop.findNanoappInstanceIdByAppId(cbData->appId, &instanceId)) { in handleUnloadNanoappCallback()
286 LOGE("Couldn't unload app ID 0x%016" PRIx64 ": not found", cbData->appId); in handleUnloadNanoappCallback()
309 builder, msgToHost->appId, msgToHost->toHostData.messageType, in generateMessageToHost()
487 uint32_t transactionId, uint64_t appId, in handleLoadNanoappFile() argument
493 appId, appVersion, targetApiVersion, transactionId, hostClientId); in handleLoadNanoappFile()
499 } else if (!nanoapp->setAppInfo(appId, appVersion, appFilename) || in handleLoadNanoappFile()
526 uint16_t hostClientId, uint32_t transactionId, uint64_t appId, in handleLoadNanoappData() argument
537 appId, appVersion, targetApiVersion, totalAppBinaryLen, transactionId, in handleLoadNanoappData()
[all …]
Dplatform_nanoapp.cc184 bool PlatformNanoappBase::setAppInfo(uint64_t appId, uint32_t appVersion, in setAppInfo() argument
187 mExpectedAppId = appId; in setAppInfo()
203 bool PlatformNanoappBase::reserveBuffer(uint64_t appId, uint32_t appVersion, in reserveBuffer() argument
215 appBinaryLen, appId); in reserveBuffer()
217 mExpectedAppId = appId; in reserveBuffer()
343 mAppInfo->name, mAppInfo->appId, mAppInfo->appVersion, in verifyNanoappInfo()
376 return (mAppInfo != nullptr) ? mAppInfo->appId : mExpectedAppId; in getAppId()
Dnanoapp_load_manager.cc22 uint32_t transactionId, uint64_t appId, in prepareForLoad() argument
39 success = mNanoapp->reserveBuffer(appId, appVersion, totalBinaryLen); in prepareForLoad()
/system/chre/host/common/test/power_test/
Dchre_power_test_client.cc276 uint64_t appId, uint32_t appVersion, in sendLoadNanoappRequest() argument
296 1 /* transactionId */, appId, appVersion, apiVersion, buffer, in sendLoadNanoappRequest()
313 const char *filename, uint64_t appId, uint32_t appVersion, in loadNanoapp() argument
315 if (!sendLoadNanoappRequest(client, filename, appId, appVersion, in loadNanoapp()
322 LOGI("Loaded the nanoapp with appId: %" PRIx64 " success: %d", appId, in loadNanoapp()
327 bool sendUnloadNanoappRequest(SocketClient &client, uint64_t appId) { in sendUnloadNanoappRequest() argument
331 builder, kTransactionId, appId, true /* allowSystemNanoappUnload */); in sendUnloadNanoappRequest()
334 appId, builder.GetSize()); in sendUnloadNanoappRequest()
343 uint64_t appId) { in unloadNanoapp() argument
344 if (!sendUnloadNanoappRequest(client, appId)) { in unloadNanoapp()
[all …]
/system/chre/host/common/
Dhost_protocol_host.cc105 builder, request.transactionId, request.appId, request.appVersion, in encodeFragmentedLoadNanoappRequest()
116 FlatBufferBuilder &builder, uint32_t transactionId, uint64_t appId, in encodeUnloadNanoappRequest() argument
118 auto request = fbs::CreateUnloadNanoappRequest(builder, transactionId, appId, in encodeUnloadNanoappRequest()
172 FlatBufferBuilder &builder, uint32_t transactionId, uint64_t appId, in encodeLoadNanoappRequestForBinary() argument
178 builder, transactionId, appId, appVersion, targetApiVersion, appBinary, in encodeLoadNanoappRequestForBinary()
185 uint64_t appId, uint32_t appVersion, uint32_t targetApiVersion, in encodeLoadNanoappRequestForFile() argument
191 builder, transactionId, appId, appVersion, targetApiVersion, appBinary, in encodeLoadNanoappRequestForFile()
Dfragmented_load_transaction.cc50 uint32_t transactionId, uint64_t appId, uint32_t appVersion, in FragmentedLoadTransaction() argument
62 fragmentId++, transactionId, appId, appVersion, targetApiVersion, in FragmentedLoadTransaction()
/system/chre/platform/shared/include/chre/platform/shared/
Dhost_protocol_chre.h49 static void handleNanoappMessage(uint64_t appId, uint32_t messageType,
59 uint16_t hostClientId, uint32_t transactionId, uint64_t appId,
65 uint32_t transactionId, uint64_t appId,
127 DynamicVector<NanoappListEntryOffset> &offsetVector, uint64_t appId,
/system/chre/apps/unload_tester/
Dunload_tester.cc66 CHRE_ASSERT(info.appId == chreGetAppId()); in nanoappStart()
67 CHRE_ASSERT(info.appId == kUnloadTesterAppId); in nanoappStart()
91 if (info->appId == kSpammerAppId) { in nanoappHandleEvent()
/system/chre/platform/slpi/include/chre/target_platform/
Dplatform_nanoapp_base.h43 bool setAppInfo(uint64_t appId, uint32_t appVersion, const char *appFilename);
55 bool reserveBuffer(uint64_t appId, uint32_t appVersion, size_t appBinarylen);
/system/chre/build/app_support/qcom_nanohub/
Dapp_support_uimg.cc40 uint64_t appId; member
54 static const struct AppInfo mAppInfo = {.appId = NANOAPP_ID,
/system/vold/
DKeyStorage.cpp109 const std::string& appId, std::string* key) { in generateKeymasterKey() argument
113 … .Authorization(km::TAG_APPLICATION_ID, km::support::blob2hidlVec(appId)); in generateKeymasterKey()
164 const KeyAuthentication& auth, const std::string& appId) { in beginParams() argument
167 … .Authorization(km::TAG_APPLICATION_ID, km::support::blob2hidlVec(appId)); in beginParams()
366 std::string* appId) { in generateAppId() argument
369 *appId = secdiscardable_hash + stretched; in generateAppId()
501 std::string appId; in storeKey() local
502 if (!generateAppId(auth, stretching, salt, secdiscardable_hash, &appId)) return false; in storeKey()
508 if (!generateKeymasterKey(keymaster, auth, appId, &kmKey)) return false; in storeKey()
512 std::tie(keyParams, authToken) = beginParams(auth, appId); in storeKey()
[all …]
/system/chre/platform/shared/
Dhost_protocol_common.cc30 FlatBufferBuilder &builder, uint64_t appId, uint32_t messageType, in encodeNanoappMessage() argument
36 builder, appId, messageType, hostEndpoint, messageDataOffset); in encodeNanoappMessage()
/system/chre/host/hal_generic/common/
Dgeneric_context_hub_base.h242 transactionId, appBinary.appId, appBinary.appVersion, in loadNanoApp()
255 appBinary.customBinary.size(), appBinary.appId, transactionId, result); in loadNanoApp()
260 Return<Result> unloadNanoApp(uint32_t hubId, uint64_t appId, in unloadNanoApp() argument
270 builder, transactionId, appId, false /* allowSystemNanoappUnload */); in unloadNanoApp()
280 appId, transactionId, result); in unloadNanoApp()
285 Return<Result> enableNanoApp(uint32_t /* hubId */, uint64_t appId, in enableNanoApp() argument
289 appId); in enableNanoApp()
293 Return<Result> disableNanoApp(uint32_t /* hubId */, uint64_t appId, in disableNanoApp() argument
297 appId); in disableNanoApp()
418 appInfo.appId = nanoapp->app_id; in handleNanoappListResponse()
/system/chre/host/common/test/
Dchre_test_client.cc170 uint64_t appId, uint32_t appVersion, in sendLoadNanoappRequest() argument
189 1 /* transactionId */, appId, appVersion, apiVersion, buffer, in sendLoadNanoappRequest()
203 void sendUnloadNanoappRequest(SocketClient &client, uint64_t appId) { in sendUnloadNanoappRequest() argument
207 builder, kTransactionId, appId, true /* allowSystemNanoappUnload */); in sendUnloadNanoappRequest()
210 appId, builder.GetSize()); in sendUnloadNanoappRequest()
/system/chre/chre_api/legacy/v1_1/chre/
Devent.h269 uint64_t appId; member
446 bool chreGetNanoappInfoByAppId(uint64_t appId, struct chreNanoappInfo *info);
/system/chre/chre_api/legacy/v1_3/chre/
Devent.h297 uint64_t appId; member
471 bool chreGetNanoappInfoByAppId(uint64_t appId, struct chreNanoappInfo *info);

12