/system/chre/test/simulation/ |
D | wifi_test.cc | 41 uint32_t cookie; in TEST_F() member 49 static uint32_t cookie; in TEST_F() local 57 *(static_cast<const uint32_t *>(event->cookie))); in TEST_F() 68 cookie = request->cookie; in TEST_F() 70 request->enable, &cookie); in TEST_F() 82 MonitoringRequest request{.enable = true, .cookie = 0x123}; in TEST_F() 84 uint32_t cookie; in TEST_F() local 85 waitForEvent(CHRE_EVENT_WIFI_ASYNC_RESULT, &cookie); in TEST_F() 86 EXPECT_EQ(cookie, request.cookie); in TEST_F() 89 request = {.enable = false, .cookie = 0x456}; in TEST_F() [all …]
|
D | gnss_test.cc | 61 uint32_t cookie; in TEST_F() member 75 static uint32_t cookie; in TEST_F() local 82 *(static_cast<const uint32_t *>(event->cookie))); in TEST_F() 101 cookie = request->cookie; in TEST_F() 104 &cookie); in TEST_F() 106 cookie = request->cookie; in TEST_F() 107 success = chreGnssLocationSessionStopAsync(&cookie); in TEST_F() 129 LocationRequest request{.enable = true, .cookie = 0x123}; in TEST_F() 134 uint32_t cookie; in TEST_F() local 135 waitForEvent(CHRE_EVENT_GNSS_ASYNC_RESULT, &cookie); in TEST_F() [all …]
|
D | wifi_timeout_test.cc | 52 static uint32_t cookie; in TEST_F() local 60 *(static_cast<const uint32_t *>(event->cookie))); in TEST_F() 75 cookie = *static_cast<uint32_t *>(event->data); in TEST_F() 76 bool success = chreWifiRequestScanAsyncDefault(&cookie); in TEST_F() 115 uint32_t cookie; in TEST_F() member 123 static uint32_t cookie; in TEST_F() local 131 *(static_cast<const uint32_t *>(event->cookie))); in TEST_F() 142 cookie = request->cookie; in TEST_F() 144 request->enable, &cookie); in TEST_F() 155 MonitoringRequest timeoutRequest{.enable = true, .cookie = 0xdead}; in TEST_F() [all …]
|
D | timer_test.cc | 52 static const uint32_t cookie = 123; in TEST_F() local 58 if (*data == cookie) { in TEST_F() 72 &cookie, false /*oneShot*/); in TEST_F() 126 static const uint32_t cookie = 123; in TEST_F() local 132 if (*data == cookie) { in TEST_F() 146 &cookie, false /*oneShot*/); in TEST_F()
|
D | wifi_scan_test.cc | 39 const uint32_t *cookie; member 74 .cookie = static_cast<const uint32_t *>(event->cookie), in __anonc888a3120202() 121 EXPECT_EQ(*wifiAsyncData.cookie, firstCookie); in TEST_F() 134 EXPECT_EQ(*wifiAsyncData.cookie, secondCookie); in TEST_F() 165 EXPECT_EQ(*wifiAsyncData.cookie, firstRequestCookie); in TEST_F() 170 EXPECT_EQ(*wifiAsyncData.cookie, secondRequestCookie); in TEST_F() 195 EXPECT_EQ(*wifiAsyncData.cookie, firstRequestCookie); in TEST_F() 235 *static_cast<const uint32_t *>(event->cookie); in TEST_F()
|
/system/core/libcutils/include/cutils/ |
D | trace.h | 187 #define ATRACE_ASYNC_BEGIN(name, cookie) \ argument 188 atrace_async_begin(ATRACE_TAG, name, cookie) 190 int32_t cookie) in atrace_async_begin() argument 194 atrace_async_begin_body(name, cookie); in atrace_async_begin() 202 #define ATRACE_ASYNC_END(name, cookie) atrace_async_end(ATRACE_TAG, name, cookie) argument 203 static inline void atrace_async_end(uint64_t tag, const char* name, int32_t cookie) in atrace_async_end() argument 207 atrace_async_end_body(name, cookie); in atrace_async_end() 219 #define ATRACE_ASYNC_FOR_TRACK_BEGIN(track_name, name, cookie) \ argument 220 atrace_async_for_track_begin(ATRACE_TAG, track_name, name, cookie) 222 const char* name, int32_t cookie) { in atrace_async_for_track_begin() argument [all …]
|
/system/core/libcutils/include_outside_system/cutils/ |
D | trace.h | 187 #define ATRACE_ASYNC_BEGIN(name, cookie) \ argument 188 atrace_async_begin(ATRACE_TAG, name, cookie) 190 int32_t cookie) in atrace_async_begin() argument 194 atrace_async_begin_body(name, cookie); in atrace_async_begin() 202 #define ATRACE_ASYNC_END(name, cookie) atrace_async_end(ATRACE_TAG, name, cookie) argument 203 static inline void atrace_async_end(uint64_t tag, const char* name, int32_t cookie) in atrace_async_end() argument 207 atrace_async_end_body(name, cookie); in atrace_async_end() 219 #define ATRACE_ASYNC_FOR_TRACK_BEGIN(track_name, name, cookie) \ argument 220 atrace_async_for_track_begin(ATRACE_TAG, track_name, name, cookie) 222 const char* name, int32_t cookie) { in atrace_async_for_track_begin() argument [all …]
|
/system/chre/platform/shared/ |
D | chre_api_wifi.cc | 38 const void *cookie) { in chreWifiConfigureScanMonitorAsync() argument 44 .configureScanMonitor(nanoapp, enable, cookie); in chreWifiConfigureScanMonitorAsync() 51 const struct chreWifiScanParams *params, const void *cookie) { in chreWifiRequestScanAsync() argument 56 nanoapp, params, cookie); in chreWifiRequestScanAsync() 63 const struct chreWifiRangingParams *params, const void *cookie) { in chreWifiRequestRangingAsync() argument 70 nanoapp, params, cookie); in chreWifiRequestRangingAsync() 77 const void *cookie) { in chreWifiNanSubscribe() argument 82 nanoapp, config, cookie); in chreWifiNanSubscribe() 101 const struct chreWifiNanRangingParams *params, const void *cookie) { in chreWifiNanRequestRangingAsync() argument 108 nanoapp, params, cookie); in chreWifiNanRequestRangingAsync()
|
D | chre_api_gnss.cc | 41 const void *cookie) { in chreGnssLocationSessionStartAsync() argument 49 Milliseconds(minTimeToNextFixMs), cookie); in chreGnssLocationSessionStartAsync() 55 DLL_EXPORT bool chreGnssLocationSessionStopAsync(const void *cookie) { in chreGnssLocationSessionStopAsync() argument 62 .removeRequest(nanoapp, cookie); in chreGnssLocationSessionStopAsync() 69 const void *cookie) { in chreGnssMeasurementSessionStartAsync() argument 77 Milliseconds(0) /* minTimeToNext */, cookie); in chreGnssMeasurementSessionStartAsync() 83 DLL_EXPORT bool chreGnssMeasurementSessionStopAsync(const void *cookie) { in chreGnssMeasurementSessionStopAsync() argument 90 .removeRequest(nanoapp, cookie); in chreGnssMeasurementSessionStopAsync()
|
/system/core/libcutils/ |
D | trace-dev.cpp | 82 void atrace_async_begin_body(const char* name, int32_t cookie) in atrace_async_begin_body() argument 84 WRITE_MSG("S|%d|", "|%" PRId32, "", name, cookie); in atrace_async_begin_body() 87 void atrace_async_end_body(const char* name, int32_t cookie) in atrace_async_end_body() argument 89 WRITE_MSG("F|%d|", "|%" PRId32, "", name, cookie); in atrace_async_end_body() 92 void atrace_async_for_track_begin_body(const char* track_name, const char* name, int32_t cookie) { in atrace_async_for_track_begin_body() argument 93 WRITE_MSG("G|%d|", "|%" PRId32, track_name, name, cookie); in atrace_async_for_track_begin_body() 96 void atrace_async_for_track_end_body(const char* track_name, int32_t cookie) { in atrace_async_for_track_end_body() argument 97 WRITE_MSG("H|%d|", "|%" PRId32, "", track_name, cookie); in atrace_async_for_track_end_body()
|
D | trace-container.cpp | 208 void atrace_async_begin_body(const char* name, int32_t cookie) in atrace_async_begin_body() argument 211 WRITE_MSG_IN_CONTAINER("S", "|", "|%d", "", name, cookie); in atrace_async_begin_body() 217 WRITE_MSG("S|%d|", "|%" PRId32, "", name, cookie); in atrace_async_begin_body() 220 void atrace_async_end_body(const char* name, int32_t cookie) in atrace_async_end_body() argument 223 WRITE_MSG_IN_CONTAINER("F", "|", "|%d", "", name, cookie); in atrace_async_end_body() 229 WRITE_MSG("F|%d|", "|%" PRId32, "", name, cookie); in atrace_async_end_body() 232 void atrace_async_for_track_begin_body(const char* track_name, const char* name, int32_t cookie) { in atrace_async_for_track_begin_body() argument 234 WRITE_MSG_IN_CONTAINER("G", "|", "|%d", track_name, name, cookie); in atrace_async_for_track_begin_body() 240 WRITE_MSG("G|%d|", "|%" PRId32, track_name, name, cookie); in atrace_async_for_track_begin_body() 243 void atrace_async_for_track_end_body(const char* track_name, int32_t cookie) { in atrace_async_for_track_end_body() argument [all …]
|
D | properties.cpp | 100 void (*callback)(const char* name, const char* value, void* cookie); 101 void* cookie; member 106 data->callback(name, value, data->cookie); in trampoline() 113 int property_list(void (*fn)(const char* name, const char* value, void* cookie), void* cookie) { in property_list() argument 114 callback_data data = {fn, cookie}; in property_list()
|
/system/libhwbinder/ |
D | Debug.cpp | 151 void printTypeCode(uint32_t typeCode, debugPrintFunc func, void* cookie) in printTypeCode() argument 156 func ? (*func)(cookie, buffer) : defaultPrintFunc(cookie, buffer); in printTypeCode() 162 debugPrintFunc func, void* cookie) in printHexData() argument 176 if (singleLineBytesCutoff < 0) func(cookie, "\n"); in printHexData() 177 func(cookie, "(NULL)"); in printHexData() 182 if (singleLineBytesCutoff < 0) func(cookie, "\n"); in printHexData() 183 func(cookie, "(empty)"); in printHexData() 188 if (singleLineBytesCutoff < 0) func(cookie, "\n"); in printHexData() 191 func(cookie, buf); in printHexData() 204 func(cookie, "{\n"); in printHexData() [all …]
|
/system/libziparchive/ |
D | libziparchive_fuzzer.cpp | 15 void* cookie; in LLVMFuzzerTestOneInput() local 16 if (StartIteration(handle, &cookie) == 0) { in LLVMFuzzerTestOneInput() 20 while ((result = Next(cookie, &ze, &name)) == 0) { in LLVMFuzzerTestOneInput() 22 EndIteration(cookie); in LLVMFuzzerTestOneInput()
|
/system/chre/core/include/chre/core/ |
D | wifi_request_manager.h | 88 bool configureScanMonitor(Nanoapp *nanoapp, bool enable, const void *cookie); 105 const void *params, const void *cookie); 124 const void *cookie); 139 const void *cookie); 297 const void *cookie; //!< User data supplied by the nanoapp member 301 : nanoappInstanceId(nanoappInstanceId_), cookie(cookie_) {} in PendingRequestBase() 507 const void *cookie); 535 const void *cookie); 547 const void *cookie); 562 uint8_t errorCode, const void *cookie); [all …]
|
D | gnss_manager.h | 54 Milliseconds minTimeToNext, const void *cookie); 66 bool removeRequest(Nanoapp *nanoapp, const void *cookie); 173 const void *cookie; member 256 Milliseconds minTimeToNext, const void *cookie); 282 Milliseconds minInterval, const void *cookie); 331 const void *cookie); 342 const void *cookie);
|
D | timer_pool.h | 65 const void *cookie, bool isOneShot) { in setNanoappTimer() argument 67 return setTimer(nanoapp->getInstanceId(), duration, cookie, in setNanoappTimer() 136 const void *cookie; member 208 const void *cookie,
|
/system/chre/platform/shared/nanoapp/ |
D | nanoapp_support_lib_dso.cc | 272 bool chreBleFlushAsync(const void *cookie) { in chreBleFlushAsync() argument 274 return (fptr != nullptr) ? fptr(cookie) : false; in chreBleFlushAsync() 313 bool chreBleReadRssiAsync(uint16_t connectionHandle, const void *cookie) { in chreBleReadRssiAsync() argument 315 return (fptr != nullptr) ? fptr(connectionHandle, cookie) : false; in chreBleReadRssiAsync() 354 const void *cookie) { in chreWifiRequestScanAsync() argument 363 return fptr(&legacyParams, cookie); in chreWifiRequestScanAsync() 365 return fptr(params, cookie); in chreWifiRequestScanAsync() 371 const void *cookie) { in chreWifiRequestRangingAsync() argument 373 return (fptr != nullptr) ? fptr(params, cookie) : false; in chreWifiRequestRangingAsync() 378 const struct chreWifiNanRangingParams *params, const void *cookie) { in chreWifiNanRequestRangingAsync() argument [all …]
|
/system/chre/core/ |
D | wifi_request_manager.cc | 91 stateTransition.enable, CHRE_ERROR_NONE, stateTransition.cookie); in dispatchQueuedConfigureScanMonitorRequests() 97 stateTransition.enable, CHRE_ERROR, stateTransition.cookie); in dispatchQueuedConfigureScanMonitorRequests() 134 const void *cookie) { in configureScanMonitor() argument 141 success = addScanMonitorRequestToQueue(nanoapp, enable, cookie); in configureScanMonitor() 146 enable, CHRE_ERROR_NONE, cookie); in configureScanMonitor() 149 success = addScanMonitorRequestToQueue(nanoapp, enable, cookie); in configureScanMonitor() 273 const void *cookie) { in requestRanging() argument 283 req.cookie = cookie; in requestRanging() 347 const void *cookie) { in requestScan() argument 365 } else if (!mPendingScanRequests.emplace(nanoappInstanceId, cookie, params)) { in requestScan() [all …]
|
D | gnss_manager.cc | 261 Milliseconds minTimeToNext, const void *cookie) { in addRequest() argument 264 cookie); in addRequest() 267 bool GnssSession::removeRequest(Nanoapp *nanoapp, const void *cookie) { in removeRequest() argument 270 Milliseconds(UINT64_MAX), cookie); in removeRequest() 408 Milliseconds minTimeToNext, const void *cookie) { in configure() argument 415 success = addRequestToQueue(instanceId, enable, minInterval, cookie); in configure() 424 cookie); in configure() 425 } else if (addRequestToQueue(instanceId, enable, minInterval, cookie)) { in configure() 436 minInterval, CHRE_ERROR_NONE, cookie); in configure() 469 const void *cookie) { in addRequestToQueue() argument [all …]
|
/system/chre/platform/slpi/ |
D | host_link.cc | 119 void *cookie); 181 MessageBuilderFunction *msgBuilder, void *cookie) { in buildAndEnqueueMessage() argument 189 msgBuilder(*builder, cookie); in buildAndEnqueueMessage() 208 void buildNanoappListResponse(ChreFlatBufferBuilder &builder, void *cookie) { in buildNanoappListResponse() argument 218 auto *cbData = static_cast<NanoappListData *>(cookie); in buildNanoappListResponse() 228 auto msgBuilder = [](ChreFlatBufferBuilder &builder, void *cookie) { in handleUnloadNanoappCallback() argument 229 auto *cbData = static_cast<UnloadNanoappCallbackData *>(cookie); in handleUnloadNanoappCallback() 328 auto msgBuilder = [](ChreFlatBufferBuilder &builder, void *cookie) { in sendDebugDumpData() argument 329 const auto *data = static_cast<const DebugDumpMessageData *>(cookie); in sendDebugDumpData() 351 auto msgBuilder = [](ChreFlatBufferBuilder &builder, void *cookie) { in sendDebugDumpResponse() argument [all …]
|
/system/libhwbinder/include/hwbinder/ |
D | Debug.h | 36 typedef void (*debugPrintFunc)(void* cookie, const char* txt); 39 debugPrintFunc func = nullptr, void* cookie = nullptr); 44 debugPrintFunc func = nullptr, void* cookie = nullptr);
|
/system/libziparchive/include/ziparchive/ |
D | zip_archive.h | 250 int32_t Next(void* cookie, ZipEntry64* data, std::string_view* name); 251 int32_t Next(void* cookie, ZipEntry64* data, std::string* name); 257 void EndIteration(void* cookie); 295 int32_t Next(void* cookie, ZipEntry* data, std::string* name); 296 int32_t Next(void* cookie, ZipEntry* data, std::string_view* name); 308 typedef bool (*ProcessZipEntryFunction)(const uint8_t* buf, size_t buf_size, void* cookie); 315 ProcessZipEntryFunction func, void* cookie); 317 ProcessZipEntryFunction func, void* cookie);
|
/system/chre/apps/test/chqts/src/general_test/ |
D | test.cc | 73 if (result->cookie != request.cookie) { in validateChreAsyncResult() 74 LOGE("Request cookie is %p, got %p", request.cookie, result->cookie); in validateChreAsyncResult()
|
/system/chre/chre_api/legacy/v1_1/chre/ |
D | wifi.h | 476 bool chreWifiConfigureScanMonitorAsync(bool enable, const void *cookie); 511 const void *cookie); 524 inline bool chreWifiRequestScanAsyncDefault(const void *cookie) { in chreWifiRequestScanAsyncDefault() argument 530 return chreWifiRequestScanAsync(¶ms, cookie); in chreWifiRequestScanAsyncDefault()
|