Home
last modified time | relevance | path

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

123

/system/chre/core/
Dhost_comms_manager.cc50 msgToHost->appId = nanoapp->getAppId(); in sendMessageToHostFromNanoapp()
82 uint64_t appId, uint16_t hostEndpoint, uint32_t messageType, in craftNanoappMessageFromHost() argument
96 msgFromHost->appId = appId; in craftNanoappMessageFromHost()
115 if (eventLoop.findNanoappInstanceIdByAppId(craftedMessage->appId, in deliverNanoappMessageFromHost()
126 void HostCommsManager::sendMessageToNanoappFromHost(uint64_t appId, in sendMessageToNanoappFromHost() argument
140 appId, hostEndpoint, messageType, messageData, in sendMessageToNanoappFromHost()
145 appId, messageSize); in sendMessageToNanoappFromHost()
149 appId); in sendMessageToNanoappFromHost()
172 craftedMessage->appId); in sendDeferredMessageToNanoappFromHost()
176 craftedMessage->appId); in sendDeferredMessageToNanoappFromHost()
[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()
334 uint64_t appId, struct chreNanoappInfo *info) const { in populateNanoappInfoForAppId() argument
336 Nanoapp *app = lookupAppByAppId(appId); in populateNanoappInfoForAppId()
463 Nanoapp *EventLoop::lookupAppByAppId(uint64_t appId) const { in lookupAppByAppId()
465 if (app->getAppId() == appId) { in lookupAppByAppId()
[all …]
/system/chre/host/common/include/chre_host/
Dfragmented_load_transaction.h41 uint64_t appId; member
54 uint64_t appId, uint32_t appVersion, uint32_t appFlags, in FragmentedLoadRequest()
59 appId(appId), in FragmentedLoadRequest()
86 FragmentedLoadTransaction(uint32_t transactionId, uint64_t appId,
Dhost_protocol_host.h147 uint64_t appId, bool allowSystemNanoappUnload);
204 uint64_t appId, uint32_t appVersion, uint32_t appFlags,
217 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/platform/shared/nanoapp/
Dnanoapp_dso_util.cc38 } else if (appInfo->appId == 0) { in validateAppInfo()
40 } else if (expectedAppId != 0 && expectedAppId != appInfo->appId) { in validateAppInfo()
43 expectedAppId, appInfo->appId); in validateAppInfo()
/system/chre/platform/slpi/
Dhost_link.cc61 uint64_t appId; member
116 uint64_t appId; member
260 if (!eventLoop.findNanoappInstanceIdByAppId(cbData->appId, &instanceId)) { in handleUnloadNanoappCallback()
261 LOGE("Couldn't unload app ID 0x%016" PRIx64 ": not found", cbData->appId); in handleUnloadNanoappCallback()
283 builder, msgToHost->appId, msgToHost->toHostData.messageType, in generateMessageToHost()
492 uint32_t transactionId, uint64_t appId, in handleLoadNanoappFile() argument
498 appId, appVersion, targetApiVersion, transactionId, hostClientId); in handleLoadNanoappFile()
504 } else if (!nanoapp->setAppInfo(appId, appVersion, appFilename, in handleLoadNanoappFile()
533 uint32_t transactionId, uint64_t appId, in handleLoadNanoappData() argument
547 appId, appVersion, appFlags, targetApiVersion, totalAppBinaryLen, in handleLoadNanoappData()
[all …]
Dplatform_nanoapp.cc72 bool PlatformNanoappBase::setAppInfo(uint64_t appId, uint32_t appVersion, in setAppInfo() argument
76 mExpectedAppId = appId; in setAppInfo()
93 bool PlatformNanoappBase::reserveBuffer(uint64_t appId, uint32_t appVersion, in reserveBuffer() argument
107 appBinaryLen, appId); in reserveBuffer()
109 mExpectedAppId = appId; in reserveBuffer()
237 mAppInfo->name, mAppInfo->appId, mAppInfo->appVersion, in verifyNanoappInfo()
274 return (mAppInfo != nullptr) ? mAppInfo->appId : mExpectedAppId; in getAppId()
/system/chre/java/test/chqts/src/com/google/android/chre/test/chqts/
DContextHubEventBetweenAppsTestExecutor.java49 public long appId; field in ContextHubEventBetweenAppsTestExecutor.AppInfo
83 mAppInfo[index].appId = buffer.getLong(); in handleMessageFromNanoApp()
102 mAppInfo[0].appId); in handleMessageFromNanoApp()
105 mAppInfo[1].appId); in handleMessageFromNanoApp()
/system/chre/core/include/chre/core/
Dhost_comms_manager.h77 uint64_t appId; member
141 void sendMessageToNanoappFromHost(uint64_t appId, uint32_t messageType,
203 MessageFromHost *craftNanoappMessageFromHost(uint64_t appId,
Devent_loop.h76 bool findNanoappInstanceIdByAppId(uint64_t appId, uint32_t *instanceId) const;
106 void invokeMessageFreeFunction(uint64_t appId,
278 bool populateNanoappInfoForAppId(uint64_t appId,
449 Nanoapp *lookupAppByAppId(uint64_t appId) const;
/system/chre/host/common/
Dhost_protocol_host.cc109 builder, request.transactionId, request.appId, request.appVersion, in encodeFragmentedLoadNanoappRequest()
120 FlatBufferBuilder &builder, uint32_t transactionId, uint64_t appId, in encodeUnloadNanoappRequest() argument
122 auto request = fbs::CreateUnloadNanoappRequest(builder, transactionId, appId, in encodeUnloadNanoappRequest()
176 FlatBufferBuilder &builder, uint32_t transactionId, uint64_t appId, in encodeLoadNanoappRequestForBinary() argument
182 builder, transactionId, appId, appVersion, targetApiVersion, appBinary, in encodeLoadNanoappRequestForBinary()
190 uint64_t appId, uint32_t appVersion, uint32_t targetApiVersion, in encodeLoadNanoappRequestForFile() argument
196 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, appFlags, in FragmentedLoadTransaction()
/system/chre/apps/unload_tester/
Dunload_tester.cc69 CHRE_ASSERT(info.appId == chreGetAppId()); in nanoappStart()
70 CHRE_ASSERT(info.appId == kUnloadTesterAppId); in nanoappStart()
94 if (info->appId == kSpammerAppId) { in nanoappHandleEvent()
/system/chre/platform/shared/include/chre/platform/shared/
Dhost_protocol_chre.h52 static void handleNanoappMessage(uint64_t appId, uint32_t messageType,
62 uint16_t hostClientId, uint32_t transactionId, uint64_t appId,
68 uint32_t transactionId, uint64_t appId,
132 DynamicVector<NanoappListEntryOffset> &offsetVector, uint64_t appId,
/system/chre/host/common/test/power_test/
Dchre_power_test_client.cc347 uint64_t appId, uint32_t appVersion, in sendLoadNanoappRequest() argument
373 1 /* transactionId */, appId, appVersion, appFlags, apiVersion, buffer, in sendLoadNanoappRequest()
390 const char *filename, uint64_t appId, uint32_t appVersion, in loadNanoapp() argument
392 if (!sendLoadNanoappRequest(client, filename, appId, appVersion, apiVersion, in loadNanoapp()
399 LOGI("Loaded the nanoapp with appId: %" PRIx64 " success: %d", appId, in loadNanoapp()
404 bool sendUnloadNanoappRequest(SocketClient &client, uint64_t appId) { in sendUnloadNanoappRequest() argument
408 builder, kTransactionId, appId, true /* allowSystemNanoappUnload */); in sendUnloadNanoappRequest()
411 appId, builder.GetSize()); in sendUnloadNanoappRequest()
420 uint64_t appId) { in unloadNanoapp() argument
421 if (!sendUnloadNanoappRequest(client, appId)) { in unloadNanoapp()
[all …]
/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/chre/platform/slpi/include/chre/target_platform/
Dplatform_nanoapp_base.h44 bool setAppInfo(uint64_t appId, uint32_t appVersion, const char *appFilename,
58 bool reserveBuffer(uint64_t appId, uint32_t appVersion, uint32_t appFlags,
/system/vold/
DKeyStorage.cpp142 static bool generateKeyStorageKey(Keymaster& keymaster, const std::string& appId, in generateKeyStorageKey() argument
147 .Authorization(km::TAG_APPLICATION_ID, appId) in generateKeyStorageKey()
176 static km::AuthorizationSet beginParams(const std::string& appId) { in beginParams() argument
179 .Authorization(km::TAG_APPLICATION_ID, appId); in beginParams()
448 const std::string& secdiscardable_hash, std::string* appId) { in generateAppId() argument
451 *appId = secdiscardable_hash + stretched; in generateAppId()
459 appId->append(storage_binding_info.seed.begin(), storage_binding_info.seed.end()); in generateAppId()
585 std::string appId; in storeKey() local
586 if (!generateAppId(auth, stretching, secdiscardable_hash, &appId)) return false; in storeKey()
592 if (!generateKeyStorageKey(keymaster, appId, &kmKey)) return false; in storeKey()
[all …]
/system/chre/platform/freertos/include/chre/target_platform/
Dplatform_nanoapp_base.h59 bool setAppInfo(uint64_t appId, uint32_t appVersion, const char *appFilename,
74 bool reserveBuffer(uint64_t appId, uint32_t appVersion, uint32_t appFlags,
/system/chre/host/common/test/
Dchre_test_client.cc206 void sendNanoappLoad(SocketClient &client, uint64_t appId, uint32_t appVersion, in sendNanoappLoad() argument
212 1 /* transactionId */, appId, appVersion, appFlags, apiVersion, binary, in sendNanoappLoad()
243 sendNanoappLoad(client, appHeader->appId, appHeader->appVersion, in sendLoadNanoappRequest()
250 uint64_t appId, uint32_t appVersion, in sendLoadNanoappRequest() argument
260 sendNanoappLoad(client, appId, appVersion, apiVersion, appFlags, buffer); in sendLoadNanoappRequest()
264 void sendUnloadNanoappRequest(SocketClient &client, uint64_t appId) { in sendUnloadNanoappRequest() argument
268 builder, kTransactionId, appId, true /* allowSystemNanoappUnload */); in sendUnloadNanoappRequest()
271 appId, builder.GetSize()); in sendUnloadNanoappRequest()
/system/chre/platform/shared/
Dhost_protocol_common.cc30 FlatBufferBuilder &builder, uint64_t appId, uint32_t messageType, in encodeNanoappMessage() argument
37 builder, appId, messageType, hostEndpoint, messageDataOffset, in encodeNanoappMessage()
Dnanoapp_load_manager.cc22 uint32_t transactionId, uint64_t appId, in prepareForLoad() argument
41 success = mNanoapp->reserveBuffer(appId, appVersion, appFlags, in prepareForLoad()
/system/chre/platform/freertos/
Dplatform_nanoapp.cc81 return (mAppInfo != nullptr) ? mAppInfo->appId : mExpectedAppId; in getAppId()
172 bool PlatformNanoappBase::reserveBuffer(uint64_t appId, uint32_t appVersion, in reserveBuffer() argument
189 mExpectedAppId = appId; in reserveBuffer()
249 mAppInfo->name, mAppInfo->appId, mAppInfo->appVersion, in verifyNanoappInfo()

123