Home
last modified time | relevance | path

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

12345678910>>...12

/hardware/interfaces/automotive/vehicle/2.0/default/impl/vhal_v2_0/
DGeneratorHub.cpp42 void GeneratorHub::registerGenerator(int32_t cookie, FakeValueGeneratorPtr generator) { in registerGenerator() argument
48 if (mGenerators.find(cookie) == mGenerators.end()) { in registerGenerator()
49 ALOGI("%s: Registering new generator, cookie: %d", __func__, cookie); in registerGenerator()
50 mEventQueue.push({cookie, generator->nextEvent()}); in registerGenerator()
52 mGenerators[cookie] = std::move(generator); in registerGenerator()
53 ALOGI("%s: Registered generator, cookie: %d", __func__, cookie); in registerGenerator()
59 void GeneratorHub::unregisterGenerator(int32_t cookie) { in unregisterGenerator() argument
62 mGenerators.erase(cookie); in unregisterGenerator()
65 ALOGI("%s: Unregistered generator, cookie: %d", __func__, cookie); in unregisterGenerator()
73 && 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);
DVehicleHalServer.cpp155 int32_t cookie = v.int32Values[1]; in handleGenerateFakeDataRequest() local
156 getGenerator()->registerGenerator(cookie, in handleGenerateFakeDataRequest()
166 int32_t cookie = std::hash<std::string>()(v.stringValue); in handleGenerateFakeDataRequest() local
167 getGenerator()->registerGenerator(cookie, in handleGenerateFakeDataRequest()
177 int32_t cookie = v.int32Values[1]; in handleGenerateFakeDataRequest() local
178 getGenerator()->unregisterGenerator(cookie); in handleGenerateFakeDataRequest()
187 int32_t cookie = std::hash<std::string>()(v.stringValue); in handleGenerateFakeDataRequest() local
188 getGenerator()->unregisterGenerator(cookie); in handleGenerateFakeDataRequest()
/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/soundtrigger/2.3/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;
109 SoundModelClient(uint32_t id, V2_0::ISoundTriggerHwCallback::CallbackCookie cookie) in SoundModelClient()
110 : mId(id), mCookie(cookie) {} in SoundModelClient()
147 SoundModelClient_2_0(uint32_t id, V2_0::ISoundTriggerHwCallback::CallbackCookie cookie, in SoundModelClient_2_0()
149 : SoundModelClient(id, cookie), mCallback(callback) {} in SoundModelClient_2_0()
[all …]
/hardware/interfaces/wifi/1.5/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/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/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/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/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/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/soundtrigger/2.1/
DISoundTriggerHwCallback.hal64 * @param cookie The cookie passed by the framework when recognition was
67 recognitionCallback_2_1(RecognitionEvent event, CallbackCookie cookie);
75 * @param cookie The cookie passed by the framework when recognition was
79 CallbackCookie cookie);
86 * @param cookie The cookie passed by the framework when loading was
89 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/libhardware/include/hardware/
Dsound_trigger.h66 typedef void (*recognition_callback_t)(struct sound_trigger_recognition_event *event, void *cookie);
67 typedef void (*sound_model_callback_t)(struct sound_trigger_model_event *event, void *cookie);
88 void *cookie,
106 void *cookie);
180 void *cookie);
/hardware/interfaces/bluetooth/audio/utils/session/
DBluetoothAudioSession.cpp117 uint16_t cookie = observer.first; in ReportSessionStatus() local
121 << android::base::StringPrintf("%04x", cookie); in ReportSessionStatus()
122 cb->session_changed_cb_(cookie); in ReportSessionStatus()
138 uint16_t cookie = observer.first; in ReportControlStatus() local
143 << android::base::StringPrintf("%04x", cookie) in ReportControlStatus()
145 cb->control_result_cb_(cookie, start_resp, status); in ReportControlStatus()
204 uint16_t cookie = ObserversCookieGetInitValue(session_type_); in RegisterStatusCback() local
207 while (cookie < cookie_upper_bound) { in RegisterStatusCback()
208 if (observers_.find(cookie) == observers_.end()) { in RegisterStatusCback()
211 ++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_;
140 void UnregisterStatusCback(uint16_t 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/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/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.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/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/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()

12345678910>>...12