Home
last modified time | relevance | path

Searched refs:listener (Results 1 – 25 of 56) sorted by relevance

123

/system/netd/server/
DOemNetdListener.cpp28 static ::android::sp<OemNetdListener> listener = ::android::sp<OemNetdListener>::make(); in getListener()
29 static ::android::sp<::android::IBinder> sIBinder = ::android::IInterface::asBinder(listener); in getListener()
39 const ::android::sp<IOemNetdUnsolicitedEventListener>& listener) { in registerOemUnsolicitedEventListener()
40 registerOemUnsolicitedEventListenerInternal(listener); in registerOemUnsolicitedEventListener()
41 listener->onRegistered(); in registerOemUnsolicitedEventListener()
46 const ::android::sp<IOemNetdUnsolicitedEventListener>& listener) { in registerOemUnsolicitedEventListenerInternal()
53 ::android::sp<IOemNetdUnsolicitedEventListener> listener) in registerOemUnsolicitedEventListenerInternal() argument
54 : mOemNetdListener(oemNetdListener), mListener(std::move(listener)) {} in registerOemUnsolicitedEventListenerInternal()
65 new DeathRecipient(this, listener); in registerOemUnsolicitedEventListenerInternal()
67 ::android::IInterface::asBinder(listener)->linkToDeath(deathRecipient); in registerOemUnsolicitedEventListenerInternal()
[all …]
DEventReporter.cpp47 const android::sp<INetdUnsolicitedEventListener>& listener) { in registerUnsolEventListener() argument
54 android::sp<INetdUnsolicitedEventListener> listener) in registerUnsolEventListener() argument
55 : mEventReporter(eventReporter), mListener(std::move(listener)) {} in registerUnsolEventListener()
66 new DeathRecipient(this, listener); in registerUnsolEventListener()
68 android::IInterface::asBinder(listener)->linkToDeath(deathRecipient); in registerUnsolEventListener()
71 mUnsolListenerMap.insert({listener, deathRecipient}); in registerUnsolEventListener()
75 const android::sp<INetdUnsolicitedEventListener>& listener) { in unregisterUnsolEventListener() argument
77 mUnsolListenerMap.erase(listener); in unregisterUnsolEventListener()
DOemNetdListener.h43 const ::android::sp<IOemNetdUnsolicitedEventListener>& listener) override;
51 const ::android::sp<IOemNetdUnsolicitedEventListener>& listener)
54 const ::android::sp<IOemNetdUnsolicitedEventListener>& listener)
DEventReporter.h46 const android::sp<android::net::INetdUnsolicitedEventListener>& listener)
49 const android::sp<android::net::INetdUnsolicitedEventListener>& listener)
DNFLogListener.cpp146 NFLogListener::NFLogListener(std::shared_ptr<NetlinkListenerInterface> listener) in NFLogListener() argument
147 : mListener(std::move(listener)) { in NFLogListener()
218 std::shared_ptr<NetlinkListenerInterface> listener = in makeNFLogListener() local
220 const auto sendFn = [&listener](const Slice msg) { return listener->send(msg); }; in makeNFLogListener()
222 return std::unique_ptr<NFLogListener>(new NFLogListener(std::move(listener))); in makeNFLogListener()
DMDnsService.h39 const android::sp<android::net::mdns::aidl::IMDnsEventListener>& listener) override;
41 const android::sp<android::net::mdns::aidl::IMDnsEventListener>& listener) override;
/system/vold/
DMoveStorage.cpp52 const android::sp<android::os::IVoldTaskListener>& listener) { in notifyProgress() argument
53 if (listener) { in notifyProgress()
55 listener->onStatus(progress, extras); in notifyProgress()
81 const android::sp<android::os::IVoldTaskListener>& listener) { in execRm() argument
82 notifyProgress(startProgress, listener); in execRm()
119 listener); in execRm()
126 const android::sp<android::os::IVoldTaskListener>& listener) { in execCp() argument
127 notifyProgress(startProgress, listener); in execCp()
173 listener); in execCp()
194 const android::sp<android::os::IVoldTaskListener>& listener) { in moveStorageInternal() argument
[all …]
DBenchmark.cpp90 const android::sp<android::os::IVoldTaskListener>& listener, in benchmarkInternal() argument
128 if (listener) { in benchmarkInternal()
129 listener->onStatus(progress, *extras); in benchmarkInternal()
155 if (listener) { in benchmarkInternal()
156 listener->onStatus(progress, *extras); in benchmarkInternal()
182 const android::sp<android::os::IVoldTaskListener>& listener) { in Benchmark() argument
192 status_t res = benchmarkInternal(path, listener, &extras); in Benchmark()
193 if (listener) { in Benchmark()
194 listener->onFinished(res, extras); in Benchmark()
DIdleMaint.h25 void Trim(const android::sp<android::os::IVoldTaskListener>& listener);
26 int RunIdleMaint(bool needGC, const android::sp<android::os::IVoldTaskListener>& listener);
27 int AbortIdleMaint(const android::sp<android::os::IVoldTaskListener>& listener);
DIdleMaint.cpp166 void Trim(const android::sp<android::os::IVoldTaskListener>& listener) { in Trim() argument
186 if (listener) { in Trim()
187 listener->onStatus(-1, extras); in Trim()
199 if (listener) { in Trim()
200 listener->onStatus(-1, extras); in Trim()
208 if (listener) { in Trim()
209 listener->onStatus(0, extras); in Trim()
215 if (listener) { in Trim()
217 listener->onFinished(0, extras); in Trim()
396 int RunIdleMaint(bool needGC, const android::sp<android::os::IVoldTaskListener>& listener) { in RunIdleMaint() argument
[all …]
DVoldNativeService.h34 binder::Status setListener(const android::sp<android::os::IVoldListener>& listener);
61 const android::sp<android::os::IVoldTaskListener>& listener);
64 const android::sp<android::os::IVoldTaskListener>& listener);
87 const android::sp<android::os::IVoldTaskListener>& listener);
89 const android::sp<android::os::IVoldTaskListener>& listener);
90 binder::Status abortIdleMaint(const android::sp<android::os::IVoldTaskListener>& listener);
/system/vold/model/
DVolumeBase.cpp50 auto listener = getListener(); in setState() local
51 if (listener) { in setState()
52 listener->onVolumeStateChanged(getId(), static_cast<int32_t>(mState), in setState()
125 auto listener = getListener(); in setPath() local
126 if (listener) listener->onVolumePathChanged(getId(), mPath); in setPath()
139 auto listener = getListener(); in setInternalPath() local
140 if (listener) { in setInternalPath()
141 listener->onVolumeInternalPathChanged(getId(), mInternalPath); in setInternalPath()
188 auto listener = getListener(); in create() local
189 if (listener) { in create()
[all …]
DDisk.cpp150 auto listener = VolumeManager::Instance()->getListener(); in create() local
151 if (listener) listener->onDiskCreated(getId(), mFlags); in create()
167 auto listener = VolumeManager::Instance()->getListener(); in destroy() local
168 if (listener) listener->onDiskDestroyed(getId()); in destroy()
223 auto listener = VolumeManager::Instance()->getListener(); in createStubVolume() local
224 if (listener) listener->onDiskMetadataChanged(getId(), mSize, mLabel, mSysPath); in createStubVolume()
225 if (listener) listener->onDiskScanned(getId()); in createStubVolume()
317 auto listener = VolumeManager::Instance()->getListener(); in readMetadata() local
318 if (listener) listener->onDiskMetadataChanged(getId(), mSize, mLabel, mSysPath); in readMetadata()
343 auto listener = VolumeManager::Instance()->getListener(); in readPartitions() local
[all …]
DStubVolume.cpp52 auto listener = getListener(); in doMount() local
53 if (listener) listener->onVolumeMetadataChanged(getId(), mFsType, mFsUuid, mFsLabel); in doMount()
/system/security/prng_seeder/src/
Dmain.rs79 let listener = match cli.socket { in setup() localVariable
87 Ok((cb, listener)) in setup()
90 async fn listen_loop(cb: ConditionerBuilder, listener: UnixListener) -> Result<Infallible> { in listen_loop()
92 listener.set_nonblocking(true).context("In listen_loop, on set_nonblocking")?; in listen_loop()
93 let listener = TokioUnixListener::from_std(listener).context("In listen_loop, on from_std")?; in listen_loop() localVariable
96 match listener.accept().await { in listen_loop()
113 let (cb, listener) = match setup() { in run()
131 .block_on(async { listen_loop(cb, listener).await }) in run()
/system/chre/java/test/utils/src/com/google/android/utils/chre/
DSettingsUtil.java121 LocationUpdateListener listener = new LocationUpdateListener(); in setLocationMode() local
124 listener.mLocationSettingReceiver, in setLocationMode()
128 boolean success = listener.mLocationLatch.await(timeoutSeconds, TimeUnit.SECONDS); in setLocationMode()
136 mContext.unregisterReceiver(listener.mLocationSettingReceiver); in setLocationMode()
192 AirplaneModeListener listener = new AirplaneModeListener(); in setAirplaneMode() local
194 listener.mAirplaneModeReceiver, in setAirplaneMode()
201 boolean success = listener.mAirplaneModeLatch.await(10, TimeUnit.SECONDS); in setAirplaneMode()
206 mContext.unregisterReceiver(listener.mAirplaneModeReceiver); in setAirplaneMode()
/system/libbase/
Dresult_test.cpp753 Listener listener; member in android::base::testing::ResultMatchers
757 EXPECT_TRUE(ExplainMatchResult(Ok(), result, &listener)); in TEST_F()
758 EXPECT_THAT(listener.message(), Eq("result is OK")); in TEST_F()
762 EXPECT_FALSE(ExplainMatchResult(Ok(), error, &listener)); in TEST_F()
763 EXPECT_THAT(listener.message(), StartsWith("error is")); in TEST_F()
764 EXPECT_THAT(listener.message(), HasSubstr(error.error().message())); in TEST_F()
765 EXPECT_THAT(listener.message(), HasSubstr(strerror(error.error().code()))); in TEST_F()
769 EXPECT_FALSE(ExplainMatchResult(Not(Ok()), result, &listener)); in TEST_F()
770 EXPECT_THAT(listener.message(), Eq("result is OK")); in TEST_F()
774 EXPECT_TRUE(ExplainMatchResult(Not(Ok()), error, &listener)); in TEST_F()
[all …]
/system/security/keystore/tests/
Dconfirmationui_invocation_test.cpp58 auto listener = ndk::SharedRefBase::make<ConfirmationListener>(); in TEST() local
60 auto future = listener->get_future(); in TEST()
62 auto rc = apcService->presentPrompt(listener, promptText, extraData, locale, 0); in TEST()
69 rc = apcService->cancelPrompt(listener); in TEST()
/system/incremental_delivery/libdataloader/
DDataLoaderConnector.cpp82 jclass listener; member
98 listener = (jclass)env->NewGlobalRef( in JniIds()
100 listenerOnStatusChanged = GetMethodIDOrDie(env, listener, "onStatusChanged", "(II)V"); in JniIds()
103 GetStaticIntFieldValueOrDie(env, listener, "DATA_LOADER_CREATED"); in JniIds()
105 GetStaticIntFieldValueOrDie(env, listener, "DATA_LOADER_DESTROYED"); in JniIds()
107 GetStaticIntFieldValueOrDie(env, listener, "DATA_LOADER_STARTED"); in JniIds()
109 GetStaticIntFieldValueOrDie(env, listener, "DATA_LOADER_STOPPED"); in JniIds()
111 GetStaticIntFieldValueOrDie(env, listener, "DATA_LOADER_IMAGE_READY"); in JniIds()
113 GetStaticIntFieldValueOrDie(env, listener, "DATA_LOADER_IMAGE_NOT_READY"); in JniIds()
116 GetStaticIntFieldValueOrDie(env, listener, "DATA_LOADER_UNAVAILABLE"); in JniIds()
[all …]
/system/security/keystore2/src/
Dapc.rs233 if let Ok(listener) = callback.into_interface::<dyn IConfirmationCallback>() { in result()
234 if let Err(e) = listener.onCompleted(rc, data_confirmed) { in result()
244 listener: &binder::Strong<dyn IConfirmationCallback>, in present_prompt()
293 cb: listener.as_binder(), in present_prompt()
301 fn cancel_prompt(&self, listener: &binder::Strong<dyn IConfirmationCallback>) -> Result<()> { in cancel_prompt()
309 if session.cb != listener.as_binder() { in cancel_prompt()
331 listener: &binder::Strong<dyn IConfirmationCallback>, in presentPrompt()
339 self.present_prompt(listener, prompt_text, extra_data, locale, ui_option_flags) in presentPrompt()
344 listener: &binder::Strong<dyn IConfirmationCallback>, in cancelPrompt()
347 self.cancel_prompt(listener).map_err(into_logged_binder) in cancelPrompt()
/system/update_engine/aosp/
Ddynamic_partition_test_utils.h207 MatchResultListener* listener) const override { in MatchAndExplain() argument
214 *listener << "; "; in MatchAndExplain()
215 *listener << "No partition " << partition_name; in MatchAndExplain()
226 *listener << "Can't find partition update " << partition_name; in MatchAndExplain()
233 *listener << "; "; in MatchAndExplain()
234 *listener << "Partition " << partition_name << " has size " in MatchAndExplain()
240 *listener << "; "; in MatchAndExplain()
241 *listener << "Partition " << partition_name << " has group " in MatchAndExplain()
/system/security/keystore2/aidl/android/security/apc/
DIProtectedConfirmation.aidl53 void presentPrompt(in IConfirmationCallback listener, in String promptText, in presentPrompt() argument
65 void cancelPrompt(IConfirmationCallback listener); in cancelPrompt() argument
/system/vold/binder/android/os/
DIVold.aidl27 void setListener(IVoldListener listener); in setListener() argument
51 void benchmark(@utf8InCpp String volId, IVoldTaskListener listener); in benchmark() argument
54 IVoldTaskListener listener); in moveStorage() argument
67 void fstrim(int fstrimFlags, IVoldTaskListener listener); in fstrim() argument
68 void runIdleMaint(boolean needGC, IVoldTaskListener listener); in runIdleMaint() argument
69 void abortIdleMaint(IVoldTaskListener listener); in abortIdleMaint() argument
/system/hwservicemanager/
DHidlService.cpp70 void HidlService::addListener(const sp<IServiceNotification> &listener) { in addListener() argument
72 auto ret = listener->onRegistration( in addListener()
81 mListeners.push_back(listener); in addListener()
84 bool HidlService::removeListener(const wp<IBase>& listener) { in removeListener() argument
88 if (interfacesEqual(*it, listener.promote())) { in removeListener()
/system/memory/libmeminfo/libmemevents/
Dmemevents_test.cpp84 std::unique_ptr<MemEventListener> listener = in TEST_F() local
86 ASSERT_TRUE(listener) << "Failed to initialize listener on older kernel"; in TEST_F()
216 EXPECT_DEATH(MemEventListener listener(MemEventClient::NR_CLIENTS), ""); in TEST_F()
217 EXPECT_DEATH(MemEventListener listener(static_cast<MemEventClient>(-1)), ""); in TEST_F()
227 EXPECT_DEATH(MemEventListener listener(valid_client, true), "") in TEST_F()
237 std::unique_ptr<MemEventListener> listener; in TEST_F() local
240 listener = std::make_unique<MemEventListener>(client); in TEST_F()
241 ASSERT_TRUE(listener) << "MemEventListener failed to initialize with valid client value: " in TEST_F()
243 ASSERT_TRUE(listener->ok()) << "MemEventListener failed to initialize with bpf rb manager"; in TEST_F()

123