Home
last modified time | relevance | path

Searched refs:cookie (Results 1 – 25 of 131) sorted by relevance

123456

/hardware/interfaces/automotive/vehicle/2.0/default/impl/vhal_v2_0/
DGeneratorHub.cpp34 void GeneratorHub::registerGenerator(int32_t cookie, FakeValueGeneratorPtr generator) { in registerGenerator() argument
40 if (mGenerators.find(cookie) == mGenerators.end()) { in registerGenerator()
41 ALOGI("%s: Registering new generator, cookie: %d", __func__, cookie); in registerGenerator()
42 mEventQueue.push({cookie, generator->nextEvent()}); in registerGenerator()
44 mGenerators[cookie] = std::move(generator); in registerGenerator()
45 ALOGI("%s: Registered generator, cookie: %d", __func__, cookie); in registerGenerator()
51 void GeneratorHub::unregisterGenerator(int32_t cookie) { in unregisterGenerator() argument
54 mGenerators.erase(cookie); in unregisterGenerator()
57 ALOGI("%s: Unregistered generator, cookie: %d", __func__, cookie); in unregisterGenerator()
65 && mGenerators.find(mEventQueue.top().cookie) == mGenerators.end()) { in run()
[all …]
DGeneratorHub.h47 int32_t cookie; // Cookie is used to find the associated generator. member
67 void registerGenerator(int32_t cookie, FakeValueGeneratorPtr generator);
69 void unregisterGenerator(int32_t cookie);
77 bool hasNext(int32_t cookie);
/hardware/interfaces/soundtrigger/2.1/default/
DSoundTriggerHw.h45 int32_t cookie,
49 const sp<V2_1::ISoundTriggerHwCallback>& callback, int32_t cookie,
64 int32_t cookie, loadSoundModel_cb _hidl_cb) override { in loadSoundModel()
65 return mImpl->loadSoundModel(soundModel, callback, cookie, _hidl_cb); in loadSoundModel()
69 int32_t cookie, in loadPhraseSoundModel()
71 return mImpl->loadPhraseSoundModel(soundModel, callback, cookie, _hidl_cb); in loadPhraseSoundModel()
90 int32_t cookie, loadSoundModel_2_1_cb _hidl_cb) override { in loadSoundModel_2_1()
91 return mImpl->loadSoundModel_2_1(soundModel, callback, cookie, _hidl_cb); in loadSoundModel_2_1()
95 const sp<V2_1::ISoundTriggerHwCallback>& callback, int32_t cookie, in loadPhraseSoundModel_2_1()
97 return mImpl->loadPhraseSoundModel_2_1(soundModel, callback, cookie, _hidl_cb); in loadPhraseSoundModel_2_1()
[all …]
/hardware/interfaces/soundtrigger/2.2/default/
DSoundTriggerHw.h58 const sp<V2_0::ISoundTriggerHwCallback>& callback, int32_t cookie,
62 int32_t cookie, loadPhraseSoundModel_cb _hidl_cb) override;
67 int32_t cookie) override;
74 int32_t cookie, loadSoundModel_2_1_cb _hidl_cb) override;
77 int32_t cookie,
82 int32_t cookie) override;
92 SoundModelClient(uint32_t id, V2_0::ISoundTriggerHwCallback::CallbackCookie cookie) in SoundModelClient()
93 : mId(id), mCookie(cookie) {} in SoundModelClient()
131 SoundModelClient_2_0(uint32_t id, V2_0::ISoundTriggerHwCallback::CallbackCookie cookie, in SoundModelClient_2_0()
133 : SoundModelClient(id, cookie), mCallback(callback) {} in SoundModelClient_2_0()
[all …]
DSoundTriggerHw.cpp48 void soundModelCallback_(struct sound_trigger_model_event* halEvent, void* cookie) { in soundModelCallback_() argument
54 wp<SoundTriggerHw::SoundModelClient>(static_cast<SoundTriggerHw::SoundModelClient*>(cookie)) in soundModelCallback_()
70 void recognitionCallback_(struct sound_trigger_recognition_event* halEvent, void* cookie) { in recognitionCallback_() argument
76 wp<SoundTriggerHw::SoundModelClient>(static_cast<SoundTriggerHw::SoundModelClient*>(cookie)) in recognitionCallback_()
149 V2_0::ISoundTriggerHwCallback::CallbackCookie cookie, in loadSoundModel() argument
152 new SoundModelClient_2_0(nextUniqueModelId(), cookie, callback); in loadSoundModel()
160 V2_0::ISoundTriggerHwCallback::CallbackCookie cookie, in loadPhraseSoundModel() argument
163 new SoundModelClient_2_0(nextUniqueModelId(), cookie, callback); in loadPhraseSoundModel()
605 const sp<V2_1::ISoundTriggerHwCallback>& callback, int32_t cookie, in loadSoundModel_2_1() argument
612 new SoundModelClient_2_1(nextUniqueModelId(), cookie, callback); in loadSoundModel_2_1()
[all …]
/hardware/interfaces/soundtrigger/2.0/default/
DSoundTriggerHalImpl.h46 SoundModelClient(uint32_t id, ISoundTriggerHwCallback::CallbackCookie cookie) in SoundModelClient() argument
47 : mId(id), mCookie(cookie) {} in SoundModelClient()
77 ISoundTriggerHwCallback::CallbackCookie cookie,
81 ISoundTriggerHwCallback::CallbackCookie cookie,
106 ISoundTriggerHwCallback::CallbackCookie cookie, in loadSoundModel()
108 return mImpl->loadSoundModel(soundModel, callback, cookie, _hidl_cb); in loadSoundModel()
112 ISoundTriggerHwCallback::CallbackCookie cookie, in loadPhraseSoundModel()
114 return mImpl->loadPhraseSoundModel(soundModel, callback, cookie, _hidl_cb); in loadPhraseSoundModel()
136 SoundModelClient_2_0(uint32_t id, ISoundTriggerHwCallback::CallbackCookie cookie, in SoundModelClient_2_0() argument
138 : SoundModelClient(id, cookie), mCallback(callback) {} in SoundModelClient_2_0()
[all …]
/hardware/qcom/camera/msm8998/QCamera2/stack/mm-jpeg-interface/inc/
Dmm_jpeg_dbg.h48 #define KPI_ATRACE_ASYNC_BEGIN(name, cookie) ({\ argument
50 ATRACE_ASYNC_BEGIN(name, cookie); \
54 #define KPI_ATRACE_ASYNC_END(name, cookie) ({\ argument
56 ATRACE_ASYNC_END(name, cookie); \
/hardware/interfaces/automotive/vehicle/2.0/default/common/include/vhal_v2_0/
DRecurrentTimer.h56 void registerRecurrentEvent(std::chrono::nanoseconds interval, int32_t cookie) { in registerRecurrentEvent() argument
64 mCookieToEventsMap[cookie] = { interval, cookie, absoluteTime }; in registerRecurrentEvent()
69 void unregisterRecurrentEvent(int32_t cookie) { in unregisterRecurrentEvent() argument
72 mCookieToEventsMap.erase(cookie); in unregisterRecurrentEvent()
82 int32_t cookie; member
111 cookies.push_back(event.cookie); in loop()
/hardware/interfaces/wifi/1.3/default/
Dhidl_callback_util.h39 uint64_t cookie, in serviceDied() argument
42 cb_function_(cookie); in serviceDied()
73 uint64_t cookie = reinterpret_cast<uint64_t>(cb.get()); in addCallback() local
78 if (!cb->linkToDeath(death_handler_, cookie)) { in addCallback()
91 void onObjectDeath(uint64_t cookie) { in onObjectDeath() argument
92 CallbackType* cb = reinterpret_cast<CallbackType*>(cookie); in onObjectDeath()
/hardware/qcom/display/msm8998/gpu_tonemapper/
DEGLImageWrapper.cpp28 void free_ion_cookie(int ion_fd, int cookie) in free_ion_cookie() argument
31 if (ion_fd && !ioctl(ion_fd, ION_IOC_FREE, &cookie)) { in free_ion_cookie()
33 ALOGE("ION_IOC_FREE failed: ion_fd = %d, cookie = %d", ion_fd, cookie); in free_ion_cookie()
41 int cookie = fd; in get_ion_cookie() local
48 cookie = fdData.handle; in get_ion_cookie()
53 return cookie; in get_ion_cookie()
/hardware/qcom/display/msm8909w_3100/gpu_tonemapper/
DEGLImageWrapper.cpp28 void free_ion_cookie(int ion_fd, int cookie) in free_ion_cookie() argument
31 if (ion_fd && !ioctl(ion_fd, ION_IOC_FREE, &cookie)) { in free_ion_cookie()
33 ALOGE("ION_IOC_FREE failed: ion_fd = %d, cookie = %d", ion_fd, cookie); in free_ion_cookie()
41 int cookie = fd; in get_ion_cookie() local
48 cookie = fdData.handle; in get_ion_cookie()
53 return cookie; in get_ion_cookie()
/hardware/qcom/display/msm8909/gpu_tonemapper/
DEGLImageWrapper.cpp28 void free_ion_cookie(int ion_fd, int cookie) in free_ion_cookie() argument
31 if (ion_fd && !ioctl(ion_fd, ION_IOC_FREE, &cookie)) { in free_ion_cookie()
33 ALOGE("ION_IOC_FREE failed: ion_fd = %d, cookie = %d", ion_fd, cookie); in free_ion_cookie()
41 int cookie = fd; in get_ion_cookie() local
48 cookie = fdData.handle; in get_ion_cookie()
53 return cookie; in get_ion_cookie()
/hardware/qcom/sdm845/display/gpu_tonemapper/
DEGLImageWrapper.cpp28 void free_ion_cookie(int ion_fd, int cookie) in free_ion_cookie() argument
31 if (ion_fd && !ioctl(ion_fd, ION_IOC_FREE, &cookie)) { in free_ion_cookie()
33 ALOGE("ION_IOC_FREE failed: ion_fd = %d, cookie = %d", ion_fd, cookie); in free_ion_cookie()
41 int cookie = fd; in get_ion_cookie() local
48 cookie = fdData.handle; in get_ion_cookie()
53 return cookie; in get_ion_cookie()
/hardware/interfaces/soundtrigger/2.1/
DISoundTriggerHwCallback.hal65 * @param cookie The cookie passed by the framework when recognition was
68 recognitionCallback_2_1(RecognitionEvent event, CallbackCookie cookie);
76 * @param cookie The cookie passed by the framework when recognition was
80 CallbackCookie cookie);
87 * @param cookie The cookie passed by the framework when loading was
90 soundModelCallback_2_1(ModelEvent event, CallbackCookie cookie);
DISoundTriggerHw.hal83 * @param cookie The value of the cookie argument passed to the completion
98 CallbackCookie cookie)
117 * @param cookie The value of the cookie argument passed to the completion
132 CallbackCookie cookie)
149 * @param cookie The value of the cookie argument passed to the recognition
162 CallbackCookie cookie)
/hardware/interfaces/bluetooth/audio/2.0/default/session/
DBluetoothAudioSession.cpp112 uint16_t cookie = observer.first; in ReportSessionStatus() local
116 << android::base::StringPrintf("%04x", cookie); in ReportSessionStatus()
117 cb->session_changed_cb_(cookie); in ReportSessionStatus()
133 uint16_t cookie = observer.first; in ReportControlStatus() local
138 << android::base::StringPrintf("%04x", cookie) in ReportControlStatus()
140 cb->control_result_cb_(cookie, start_resp, status); in ReportControlStatus()
199 uint16_t cookie = ObserversCookieGetInitValue(session_type_); in RegisterStatusCback() local
202 while (cookie < cookie_upper_bound) { in RegisterStatusCback()
203 if (observers_.find(cookie) == observers_.end()) { in RegisterStatusCback()
206 ++cookie; in RegisterStatusCback()
[all …]
DBluetoothAudioSession.h51 inline SessionType ObserversCookieGetSessionType(uint16_t cookie) { in ObserversCookieGetSessionType() argument
52 return static_cast<SessionType>(cookie >> 8 & 0x00ff); in ObserversCookieGetSessionType()
71 std::function<void(uint16_t cookie, bool start_resp,
78 std::function<void(uint16_t cookie)> session_changed_cb_;
138 void UnregisterStatusCback(uint16_t cookie);
/hardware/libhardware/include/hardware/
Dsound_trigger.h65 typedef void (*recognition_callback_t)(struct sound_trigger_recognition_event *event, void *cookie);
66 typedef void (*sound_model_callback_t)(struct sound_trigger_model_event *event, void *cookie);
87 void *cookie,
105 void *cookie);
/hardware/interfaces/soundtrigger/2.0/
DISoundTriggerHwCallback.hal95 * @param cookie The cookie passed by the framework when recognition was
98 recognitionCallback(RecognitionEvent event, CallbackCookie cookie);
105 * @param cookie The cookie passed by the framework when recognition was
109 CallbackCookie cookie);
114 * @param cookie The cookie passed by the framework when loading was
117 soundModelCallback(ModelEvent event, CallbackCookie cookie);
/hardware/interfaces/automotive/vehicle/2.0/default/tests/
DRecurrentTimer_test.cpp54 for (int32_t cookie : cookies) { in TEST() local
55 if (cookie == 0xdead) { in TEST()
57 } else if (cookie == 0xbeef) { in TEST()
/hardware/interfaces/usb/1.1/vts/functional/
DVtsHalUsbV1_1TargetTest.cpp77 int cookie; member in UsbCallback
80 UsbCallback(int cookie) : cookie(cookie){}; in UsbCallback() argument
102 arg.last_usb_cookie = cookie; in notifyPortStatusChange_1_1()
/hardware/qcom/gps/msm8909w_3100/android/
DGnssNi.cpp33 void GnssNi::GnssNiDeathRecipient::serviceDied(uint64_t cookie, const wp<IBase>& who) { in serviceDied() argument
35 __FUNCTION__, static_cast<unsigned long long>(cookie), &who); in serviceDied()
/hardware/qcom/gps/msm8998/android/
DGnssNi.cpp33 void GnssNi::GnssNiDeathRecipient::serviceDied(uint64_t cookie, const wp<IBase>& who) { in serviceDied() argument
35 __FUNCTION__, static_cast<unsigned long long>(cookie), &who); in serviceDied()
/hardware/qcom/sdm845/gps/sdm845/android/
DGnssNi.cpp33 void GnssNi::GnssNiDeathRecipient::serviceDied(uint64_t cookie, const wp<IBase>& who) { in serviceDied() argument
35 __FUNCTION__, static_cast<unsigned long long>(cookie), &who); in serviceDied()
/hardware/qcom/sdm845/gps/msm8998/android/
DGnssNi.cpp33 void GnssNi::GnssNiDeathRecipient::serviceDied(uint64_t cookie, const wp<IBase>& who) { in serviceDied() argument
35 __FUNCTION__, static_cast<unsigned long long>(cookie), &who); in serviceDied()

123456