Home
last modified time | relevance | path

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

12345

/system/chre/test/simulation/
Dmemory_test.cc66 uint64_t appId = loadNanoapp(MakeUnique<App>()); in TEST_F() local
70 Nanoapp *nanoapp = getNanoappByAppId(appId); in TEST_F()
78 sendEventToNanoapp(appId, ALLOCATE, 100); in TEST_F()
86 sendEventToNanoapp(appId, ALLOCATE, 200); in TEST_F()
93 sendEventToNanoapp(appId, FREE, ptr1); in TEST_F()
99 sendEventToNanoapp(appId, FREE, ptr2); in TEST_F()
129 uint64_t appId = loadNanoapp(MakeUnique<App>()); in TEST_F() local
133 Nanoapp *nanoapp = getNanoappByAppId(appId); in TEST_F()
141 sendEventToNanoapp(appId, ALLOCATE, 100); in TEST_F()
149 sendEventToNanoapp(appId, ALLOCATE, 200); in TEST_F()
[all …]
Dtest_util.cc48 TestNanoapp *queryNanoapp(uint64_t appId) { in queryNanoapp() argument
49 return nanoapps.count(appId) == 0 ? nullptr : nanoapps[appId].get(); in queryNanoapp()
117 void unregisterNanoapp(uint64_t appId) { in unregisterNanoapp() argument
118 if (nanoapps.erase(appId) == 0) { in unregisterNanoapp()
130 const char *name, uint64_t appId, uint32_t appVersion, uint32_t appPerms, in createStaticNanoapp() argument
135 appId, appVersion, appPerms, startFunc, in createStaticNanoapp()
140 uint8_t infoStructVersion, const char *name, uint64_t appId, in createStaticNanoapp() argument
155 appInfo->appId = appId; in createStaticNanoapp()
182 void loadNanoapp(const char *name, uint64_t appId, uint32_t appVersion, in loadNanoapp() argument
187 name, appId, appVersion, appPerms, startFunc, handleEventFunc, endFunc); in loadNanoapp()
[all …]
Dble_test.cc75 uint64_t appId = loadNanoapp(MakeUnique<App>()); in TEST_F() local
78 sendEventToNanoapp(appId, GET_CAPABILITIES); in TEST_F()
84 sendEventToNanoapp(appId, GET_FILTER_CAPABILITIES); in TEST_F()
163 uint64_t appId = loadNanoapp(MakeUnique<App>()); in TEST_F() local
166 sendEventToNanoapp(appId, START_SCAN); in TEST_F()
173 sendEventToNanoapp(appId, STOP_SCAN); in TEST_F()
214 uint64_t appId = loadNanoapp(MakeUnique<App>()); in TEST_F() local
217 sendEventToNanoapp(appId, START_SCAN); in TEST_F()
223 unloadNanoapp(appId); in TEST_F()
280 uint64_t appId = loadNanoapp(MakeUnique<App>()); in TEST_F() local
[all …]
Drpc_test.cc67 uint64_t appId = loadNanoapp(MakeUnique<App>()); in TEST_F() local
68 Nanoapp *napp = getNanoappByAppId(appId); in TEST_F()
101 uint64_t appId = loadNanoapp(MakeUnique<App>()); in TEST_F() local
102 Nanoapp *napp = getNanoappByAppId(appId); in TEST_F()
171 uint64_t appId = loadNanoapp(MakeUnique<App>()); in TEST_F() local
174 sendEventToNanoapp(appId, PUBLISH_SERVICES); in TEST_F()
178 Nanoapp *napp = getNanoappByAppId(appId); in TEST_F()
211 uint64_t appId = loadNanoapp(MakeUnique<App>()); in TEST_F() local
212 unloadNanoapp(appId); in TEST_F()
252 uint64_t appId = loadNanoapp(MakeUnique<App>()); in TEST_F() local
[all …]
Dtimer_test.cc90 uint64_t appId = loadNanoapp(MakeUnique<App>()); in TEST_F() local
98 .findNanoappInstanceIdByAppId(appId, &instanceId)); in TEST_F()
101 sendEventToNanoapp(appId, START_TIMER); in TEST_F()
111 sendEventToNanoapp(appId, STOP_TIMER, handle); in TEST_F()
117 sendEventToNanoapp(appId, STOP_TIMER, handle); in TEST_F()
159 uint64_t appId = loadNanoapp(MakeUnique<App>()); in TEST_F() local
167 .findNanoappInstanceIdByAppId(appId, &instanceId)); in TEST_F()
170 sendEventToNanoapp(appId, START_TIMER); in TEST_F()
177 unloadNanoapp(appId); in TEST_F()
Dwifi_test.cc83 uint64_t appId = loadNanoapp(MakeUnique<App>()); in TEST_F() local
88 sendEventToNanoapp(appId, MONITORING_REQUEST, request); in TEST_F()
95 sendEventToNanoapp(appId, MONITORING_REQUEST, request); in TEST_F()
151 uint64_t appId = loadNanoapp(MakeUnique<App>()); in TEST_F() local
156 sendEventToNanoapp(appId, MONITORING_REQUEST, request); in TEST_F()
165 unloadNanoapp(appId); in TEST_F()
216 uint64_t appId = loadNanoapp(MakeUnique<App>()); in TEST_F() local
221 sendEventToNanoapp(appId, MONITORING_REQUEST, request); in TEST_F()
230 unloadNanoapp(appId); in TEST_F()
233 appId = loadNanoapp(MakeUnique<App>()); in TEST_F()
[all …]
Dgnss_test.cc127 uint64_t appId = loadNanoapp(MakeUnique<App>()); in TEST_F() local
134 sendEventToNanoapp(appId, LOCATION_REQUEST, request); in TEST_F()
162 sendEventToNanoapp(appId, LOCATION_REQUEST, request); in TEST_F()
226 uint64_t appId = loadNanoapp(MakeUnique<App>()); in TEST_F() local
232 sendEventToNanoapp(appId, LOCATION_REQUEST, request); in TEST_F()
241 sendEventToNanoapp(appId, LOCATION_REQUEST, request); in TEST_F()
300 uint64_t appId = loadNanoapp(MakeUnique<App>()); in TEST_F() local
305 sendEventToNanoapp(appId, LOCATION_REQUEST, request); in TEST_F()
314 unloadNanoapp(appId); in TEST_F()
374 uint64_t appId = loadNanoapp(MakeUnique<App>()); in TEST_F() local
[all …]
Dwifi_nan_test.cc108 uint64_t appId = loadNanoapp(MakeUnique<App>()); in TEST_F() local
117 sendEventToNanoapp(appId, NAN_SUBSCRIBE, config); in TEST_F()
170 uint64_t appId = loadNanoapp(MakeUnique<App>()); in TEST_F() local
176 sendEventToNanoapp(appId, NAN_SUBSCRIBE, config); in TEST_F()
228 uint64_t appId = loadNanoapp(MakeUnique<App>()); in TEST_F() local
234 sendEventToNanoapp(appId, NAN_SUBSCRIBE, config); in TEST_F()
243 unloadNanoapp(appId); in TEST_F()
289 uint64_t appId = loadNanoapp(MakeUnique<App>()); in TEST_F() local
297 sendEventToNanoapp(appId, NAN_SUBSCRIBE, config); in TEST_F()
361 uint64_t appId = loadNanoapp(MakeUnique<App>()); in TEST_F() local
[all …]
Daudio_test.cc102 uint64_t appId = loadNanoapp(MakeUnique<App>()); in TEST_F() local
107 sendEventToNanoapp(appId, CONFIGURE, enable); in TEST_F()
116 sendEventToNanoapp(appId, CONFIGURE, enable); in TEST_F()
156 uint64_t appId = loadNanoapp(MakeUnique<App>()); in TEST_F() local
161 sendEventToNanoapp(appId, CONFIGURE, enable); in TEST_F()
167 unloadNanoapp(appId); in TEST_F()
Dwifi_timeout_test.cc117 uint64_t appId = loadNanoapp(MakeUnique<ScanTestNanoapp>()); in TEST_F() local
122 sendEventToNanoapp(appId, SCAN_REQUEST, timeOutCookie); in TEST_F()
134 sendEventToNanoapp(appId, SCAN_REQUEST, successCookie); in TEST_F()
139 unloadNanoapp(appId); in TEST_F()
327 uint64_t appId = loadNanoapp(MakeUnique<App>()); in TEST_F() local
331 sendEventToNanoapp(appId, SCAN_MONITOR_REQUEST, timeoutRequest); in TEST_F()
342 sendEventToNanoapp(appId, SCAN_MONITOR_REQUEST, enableRequest); in TEST_F()
352 sendEventToNanoapp(appId, SCAN_MONITOR_REQUEST, disableRequest); in TEST_F()
360 unloadNanoapp(appId); in TEST_F()
443 uint64_t appId = loadNanoapp(MakeUnique<App>()); in TEST_F() local
[all …]
Dsensor_test.cc78 uint64_t appId = loadNanoapp(MakeUnique<App>()); in TEST_F() local
87 sendEventToNanoapp(appId, CONFIGURE, config); in TEST_F()
100 sendEventToNanoapp(appId, CONFIGURE, config); in TEST_F()
145 uint64_t appId = loadNanoapp(MakeUnique<App>()); in TEST_F() local
152 sendEventToNanoapp(appId, CONFIGURE, config); in TEST_F()
163 unloadNanoapp(appId); in TEST_F()
/system/extras/ioblame/
DuidProcessMapper.py45 appId = int(self.uid % USER_ID_OFFSET)
48 elif self.packageName is None and appId < AID_APP_START:
50 int(self.uid / USER_ID_OFFSET), appId)
53 int(self.uid / USER_ID_OFFSET), appId)
93 appId = int(match.group(2))
94 if appId in self.packageNameByAppId:
95 self.packageNameByAppId[appId].add(packageName)
97 self.packageNameByAppId[appId] = {packageName}
121 appId = uid % USER_ID_OFFSET
122 if appId in self.packageNameByAppId:
[all …]
/system/chre/host/common/include/chre_host/
Dfragmented_load_transaction.h45 uint64_t appId; member
53 uint64_t appId, const std::vector<uint8_t> &binary) in FragmentedLoadRequest()
54 : FragmentedLoadRequest(fragmentId, transactionId, appId, 0, 0, 0, 0, in FragmentedLoadRequest()
58 uint64_t appId, uint32_t appVersion, uint32_t appFlags, in FragmentedLoadRequest()
63 appId(appId), in FragmentedLoadRequest()
90 FragmentedLoadTransaction(uint32_t transactionId, uint64_t appId,
119 return mFragmentRequests[0].appId; in getNanoappId()
Dnanoapp_load_listener.h33 uint64_t appId,
42 virtual void onNanoappLoadFailed(uint64_t appId) = 0;
49 virtual void onNanoappUnloaded(uint64_t appId) = 0;
Dlog_message_parser.h87 void addNanoappDetokenizer(uint64_t appId, uint16_t instanceId,
97 void removeNanoappDetokenizerAndBinary(uint64_t appId);
106 uint64_t appId,
109 void onNanoappLoadFailed(uint64_t appId) override;
111 void onNanoappUnloaded(uint64_t appId) override;
175 uint64_t appId; member
/system/chre/host/common/
Dlog_message_parser.cc306 void LogMessageParser::addNanoappDetokenizer(uint64_t appId, in addNanoappDetokenizer() argument
310 auto appBinaryIter = mNanoappAppIdToBinary.find(appId); in addNanoappDetokenizer()
315 appId); in addNanoappDetokenizer()
318 mNanoappAppIdToBinary.erase(appId); in addNanoappDetokenizer()
325 appId, databaseOffset, databaseSize, appBinaryIter->second->size()); in addNanoappDetokenizer()
337 removeNanoappDetokenizerAndBinary(appId); in addNanoappDetokenizer()
341 detokenizer.appId = appId; in addNanoappDetokenizer()
347 appId); in addNanoappDetokenizer()
352 void LogMessageParser::removeNanoappDetokenizerAndBinary(uint64_t appId) { in removeNanoappDetokenizerAndBinary() argument
354 if (item.second.appId == appId) { in removeNanoappDetokenizerAndBinary()
[all …]
Dpreloaded_nanoapp_loader.cc77 out_preloadedNanoappIds.emplace_back(header->appId); in getPreloadedNanoappIds()
108 if (shouldSkipNanoapp(skippedNanoappIds, header->appId)) { in loadPreloadedNanoapps()
117 header->appId); in loadPreloadedNanoapps()
119 mNanoappLoadListener->onNanoappLoadFailed(header->appId); in loadPreloadedNanoapps()
137 mNanoappLoadListener->onNanoappLoadStarted(appHeader->appId, nanoappBuffer); in loadNanoapp()
143 appHeader->appId, appHeader->appVersion, appHeader->flags, in loadNanoapp()
146 mEventLogger.logNanoappLoad(appHeader->appId, nanoappBuffer->size(), in loadNanoapp()
152 uint64_t appId, uint32_t appVersion, uint32_t appFlags, in sendFragmentedLoadAndWaitForEachResponse() argument
158 FragmentedLoadTransaction transaction(transactionId, appId, appVersion, in sendFragmentedLoadAndWaitForEachResponse()
194 request.appId, ChreHalNanoappLoadFailed::Type::TYPE_PRELOADED, in waitAndVerifyFuture()
/system/chre/test/simulation/inc/
Dtest_util.h109 const char *name, uint64_t appId, uint32_t appVersion, uint32_t appPerms,
121 uint8_t infoStructVersion, const char *name, uint64_t appId,
148 void loadNanoapp(const char *name, uint64_t appId, uint32_t appVersion,
169 void unloadNanoapp(uint64_t appId);
205 void sendEventToNanoapp(uint64_t appId, uint16_t eventType);
222 void sendEventToNanoapp(uint64_t appId, uint16_t eventType, in sendEventToNanoapp() argument
228 .findNanoappInstanceIdByAppId(appId, &instanceId)) { in sendEventToNanoapp()
240 LOGE("No instance found for nanoapp id = 0x%016" PRIx64, appId); in sendEventToNanoapp()
/system/chre/core/
Dhost_comms_manager.cc99 void HostCommsManager::flushNanoappMessagesAndTransactions(uint64_t appId) { in flushNanoappMessagesAndTransactions() argument
104 .findNanoappInstanceIdByAppId(appId, &nanoappInstanceId); in flushNanoappMessagesAndTransactions()
109 appId); in flushNanoappMessagesAndTransactions()
112 HostLink::flushMessagesSentByNanoapp(appId); in flushNanoappMessagesAndTransactions()
137 craftedMessage->appId); in sendDeferredMessageToNanoappFromHost()
145 craftedMessage->appId); in sendDeferredMessageToNanoappFromHost()
166 msgToHost->appId = nanoapp->getAppId(); in sendMessageToHostFromNanoapp()
201 uint64_t appId, uint32_t messageType, uint16_t hostEndpoint, in sendMessageToNanoappFromHost() argument
213 appId, hostEndpoint, messageType, messageData, in sendMessageToNanoappFromHost()
218 appId, messageSize); in sendMessageToNanoappFromHost()
[all …]
/system/chre/platform/exynos/
Dhost_link.cc38 uint64_t appId; member
98 builder, message->appId, message->toHostData.messageType, in sendMessage()
128 uint64_t appId, uint32_t messageType, uint16_t hostEndpoint, in handleNanoappMessage() argument
134 appId, hostEndpoint, messageType, messageDataLen); in handleNanoappMessage()
170 uint16_t hostClientId, uint32_t transactionId, uint64_t appId, in handleLoadNanoappRequest() argument
176 loadNanoappData(hostClientId, transactionId, appId, appVersion, appFlags, in handleLoadNanoappRequest()
182 uint16_t hostClientId, uint32_t transactionId, uint64_t appId, in handleUnloadNanoappRequest() argument
186 hostClientId, transactionId, appId, allowSystemNanoappUnload); in handleUnloadNanoappRequest()
/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()
/system/chre/platform/shared/
Dhost_link.cc60 uint16_t hostClientId, uint32_t transactionId, uint64_t appId, in loadNanoappData() argument
71 appId, appVersion, appFlags, targetApiVersion, totalAppBinaryLen, in loadNanoappData()
82 hostClientId, transactionId, appId, appVersion, appFlags, in loadNanoappData()
102 cbData->appId = appId; in loadNanoappData()
108 cbData->nanoapp->getInstanceId(), appId); in loadNanoappData()
/system/chre/platform/shared/include/chre/platform/shared/
Dhost_protocol_chre.h56 uint64_t appId; member
64 static void handleNanoappMessage(uint64_t appId, uint32_t messageType,
83 uint16_t hostClientId, uint32_t transactionId, uint64_t appId,
89 uint32_t transactionId, uint64_t appId,
130 uint64_t appId, uint32_t appVersion,
189 DynamicVector<NanoappListEntryOffset> &offsetVector, uint64_t appId,
236 uint64_t appId,
/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/
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()

12345