Home
last modified time | relevance | path

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

1234567

/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 …]
/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/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/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/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/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/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.cpp114 uint16_t cookie = observer.first; in ReportSessionStatus() local
118 << android::base::StringPrintf("%04x", cookie); in ReportSessionStatus()
119 cb->session_changed_cb_(cookie); in ReportSessionStatus()
135 uint16_t cookie = observer.first; in ReportControlStatus() local
140 << android::base::StringPrintf("%04x", cookie) in ReportControlStatus()
142 cb->control_result_cb_(cookie, start_resp, status); in ReportControlStatus()
201 uint16_t cookie = ObserversCookieGetInitValue(session_type_); in RegisterStatusCback() local
204 while (cookie < cookie_upper_bound) { in RegisterStatusCback()
205 if (observers_.find(cookie) == observers_.end()) { in RegisterStatusCback()
208 ++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.hal94 * @param cookie The cookie passed by the framework when recognition was
97 recognitionCallback(RecognitionEvent event, CallbackCookie cookie);
104 * @param cookie The cookie passed by the framework when recognition was
108 CallbackCookie cookie);
113 * @param cookie The cookie passed by the framework when loading was
116 soundModelCallback(ModelEvent event, CallbackCookie cookie);
/hardware/qcom/sm8150/display/gpu_tonemapper/
DEGLImageWrapper.cpp37 static void free_ion_cookie(int ion_fd, int cookie) in free_ion_cookie() argument
40 if (ion_fd && !ioctl(ion_fd, ION_IOC_FREE, &cookie)) { in free_ion_cookie()
42 ALOGE("ION_IOC_FREE failed: ion_fd = %d, cookie = %d", ion_fd, cookie); in free_ion_cookie()
50 int cookie = fd; in get_ion_cookie() local
57 cookie = fdData.handle; in get_ion_cookie()
62 return cookie; in get_ion_cookie()
/hardware/interfaces/usb/1.1/vts/functional/
DVtsHalUsbV1_1TargetTest.cpp78 int cookie; member in UsbCallback
81 UsbCallback(int cookie) : cookie(cookie){}; in UsbCallback() argument
103 arg.last_usb_cookie = cookie; in notifyPortStatusChange_1_1()
/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.0/vts/functional/
DVtsHalUsbV1_0TargetTest.cpp60 int cookie; member in UsbHidlTest::UsbCallback
63 UsbCallback(UsbHidlTest& parent, int cookie) in UsbCallback() argument
64 : parent_(parent), cookie(cookie){}; in UsbCallback()
81 parent_.usb_last_cookie = cookie; in notifyPortStatusChange()
91 parent_.usb_last_cookie = cookie; in notifyRoleSwitchStatus()
/hardware/qcom/sm8150/gps/android/1.1/
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/sm8150/gps/android/2.0/
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/sm8150/gps/android/1.0/
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()

1234567