Home
last modified time | relevance | path

Searched refs:cb (Results 1 – 25 of 223) sorted by relevance

123456789

/system/hwservicemanager/
Dtest_lazy.cpp83 sp<RecordingClientCallback> cb = new RecordingClientCallback; in TEST_F() local
86 service->addClientCallback(cb, 1 /*knownClients*/); in TEST_F()
94 ASSERT_THAT(cb->stream, ElementsAre()); in TEST_F()
98 sp<RecordingClientCallback> cb = new RecordingClientCallback; in TEST_F() local
101 service->addClientCallback(cb, 2 /*knownClients*/); in TEST_F()
109 ASSERT_THAT(cb->stream, ElementsAre()); in TEST_F()
113 sp<RecordingClientCallback> cb = new RecordingClientCallback; in TEST_F() local
116 service->addClientCallback(cb, 1 /*knownClients*/); in TEST_F()
122 ASSERT_THAT(cb->stream, ElementsAre(true)); in TEST_F()
128 ASSERT_THAT(cb->stream, ElementsAre(true)); in TEST_F()
[all …]
Dservice.cpp70 sp<HwBinderCallback> cb = new HwBinderCallback; in setupTo() local
82 cb, in setupTo()
86 return cb; in setupTo()
99 sp<ClientCallbackCallback> cb = new ClientCallbackCallback(manager); in setupTo() local
121 cb, in setupTo()
125 return cb; in setupTo()
/system/security/keystore2/rkpd_client/src/
Dlib.rs150 let cb = GetRegistrationCallback::new_native_binder(tx); in get_rkpd_registration() localVariable
153 .getRegistration(rpc_name, &cb) in get_rkpd_registration()
208 let cb = GetKeyCallback::new_native_binder(tx); in get_rkpd_attestation_key_from_registration_async() localVariable
211 .getKey(caller_uid.try_into().unwrap(), &cb) in get_rkpd_attestation_key_from_registration_async()
217 if let Err(e) = registration.cancelGetKey(&cb) { in get_rkpd_attestation_key_from_registration_async()
274 let cb = StoreUpgradedKeyCallback::new_native_binder(tx); in store_rkpd_attestation_key_with_registration_async() localVariable
277 .storeUpgradedKeyAsync(key_blob, upgraded_blob, &cb) in store_rkpd_attestation_key_with_registration_async()
360 fn getKey(&self, _: i32, cb: &Strong<dyn IGetKeyCallback>) -> binder::Result<()> { in getKey()
367 let get_key_cb = cb.clone(); in getKey()
388 cb: &Strong<dyn IStoreUpgradedKeyCallback>, in storeUpgradedKeyAsync()
[all …]
/system/tools/aidl/tests/
Daidl_test_client_ndk_trunk_stable.cpp190 std::shared_ptr<MyCallback> cb = ndk::SharedRefBase::make<MyCallback>(); in TEST_F() local
192 auto status = service->callMyCallback(cb); in TEST_F()
195 EXPECT_TRUE(cb->repeatParcelableCalled); in TEST_F()
196 EXPECT_TRUE(cb->repeatEnumCalled); in TEST_F()
197 EXPECT_TRUE(cb->repeatUnionCalled); in TEST_F()
198 EXPECT_TRUE(cb->repeatOtherParcelableCalled); in TEST_F()
200 EXPECT_TRUE(cb->repeatParcelableCalled); in TEST_F()
201 EXPECT_TRUE(cb->repeatEnumCalled); in TEST_F()
202 EXPECT_TRUE(cb->repeatUnionCalled); in TEST_F()
203 EXPECT_FALSE(cb->repeatOtherParcelableCalled); in TEST_F()
Daidl_test_client_trunk_stable.cpp215 sp<MyCallback> cb = sp<MyCallback>::make(); in TEST_F() local
217 auto status = service->callMyCallback(cb); in TEST_F()
220 EXPECT_TRUE(cb->repeatParcelableCalled); in TEST_F()
221 EXPECT_TRUE(cb->repeatEnumCalled); in TEST_F()
222 EXPECT_TRUE(cb->repeatUnionCalled); in TEST_F()
224 EXPECT_TRUE(cb->repeatOtherParcelableCalled); in TEST_F()
227 EXPECT_TRUE(cb->repeatParcelableCalled); in TEST_F()
228 EXPECT_TRUE(cb->repeatEnumCalled); in TEST_F()
229 EXPECT_TRUE(cb->repeatUnionCalled); in TEST_F()
231 EXPECT_FALSE(cb->repeatOtherParcelableCalled); in TEST_F()
Daidl_test_client_nested.cpp60 sp<Callback> cb = new Callback; in TEST_F() local
61 EXPECT_TRUE(nestedService->flipStatusWithCallback(r.status, cb).isOk()); in TEST_F()
62 EXPECT_THAT(cb->result, Optional(NestedStatus::OK)); in TEST_F()
Daidl_test_client_ndk_nested.cpp70 auto cb = ndk::SharedRefBase::make<Callback>(); in TEST_F() local
71 status = nestedService->flipStatusWithCallback(r.status, cb); in TEST_F()
73 EXPECT_THAT(cb->result, Optional(NestedStatus::OK)); in TEST_F()
/system/update_engine/payload_generator/
Derofs_iterate.h41 int erofs_iterate_root_dir(struct erofs_sb_info* sbi, Callable cb) { in erofs_iterate_root_dir() argument
54 .ctx.cb = [](struct erofs_dir_context* arg) -> int { in erofs_iterate_root_dir()
64 auto cb = static_cast<Callable*>(ctx->arg); in erofs_iterate_root_dir() member
65 const auto err = (*cb)(ctx); in erofs_iterate_root_dir()
87 .arg = &cb, in erofs_iterate_root_dir()
/system/security/prng_seeder/src/
Dmain.rs86 let cb = ConditionerBuilder::new(hwrng)?; in setup() localVariable
87 Ok((cb, listener)) in setup()
90 async fn listen_loop(cb: ConditionerBuilder, listener: UnixListener) -> Result<Infallible> { in listen_loop()
91 let mut conditioner = cb.build(); in listen_loop()
113 let (cb, listener) = match setup() { in run()
131 .block_on(async { listen_loop(cb, listener).await }) in run()
/system/tools/aidl/tests/java/src/android/aidl/tests/
DTrunkStableTests.java172 MyCallback cb = new MyCallback(); in testCallMyCallback() local
173 service.callMyCallback(cb); in testCallMyCallback()
174 assertTrue(cb.repeatParcelableCalled); in testCallMyCallback()
175 assertTrue(cb.repeatEnumCalled); in testCallMyCallback()
176 assertTrue(cb.repeatUnionCalled); in testCallMyCallback()
178 assertTrue(!cb.repeatOtherParcelableCalled); in testCallMyCallback()
180 assertTrue(cb.repeatOtherParcelableCalled); in testCallMyCallback()
DNestedTypesTests.java56 Callback cb = new Callback(); in testUseNestedTypes() local
57 nestedService.flipStatusWithCallback(p.status, cb); in testUseNestedTypes()
58 assertThat(cb.received, is(ParcelableWithNested.Status.OK)); in testUseNestedTypes()
/system/tools/aidl/tests/trunk_stable_test/
Dtrunk_ndk_unittest.cpp99 auto cb = ndk::SharedRefBase::make<MyCallback>(); in TEST_F() local
100 auto status = mService->callMyCallback(cb); in TEST_F()
102 EXPECT_TRUE(cb->repeatParcelableCalled); in TEST_F()
103 EXPECT_TRUE(cb->repeatEnumCalled); in TEST_F()
104 EXPECT_TRUE(cb->repeatUnionCalled); in TEST_F()
106 EXPECT_TRUE(cb->repeatOtherParcelableCalled); in TEST_F()
/system/security/keystore2/apc_compat/
Dapc_compat.rs158 cb: F, in prompt_user_confirmation()
163 let cb_data_ptr = Box::into_raw(Box::new(Box::new(cb) as Box<Callback>)); in prompt_user_confirmation()
164 let cb = ApcCompatCallback { in prompt_user_confirmation() localVariable
182 cb, in prompt_user_confirmation()
/system/chre/platform/shared/
Dnanoapp_loader.cc69 int atexitInternal(struct AtExitCallback &cb) { in atexitInternal() argument
76 gCurrentlyLoadingNanoapp->registerAtexitFunction(cb); in atexitInternal()
84 struct AtExitCallback cb(func, arg); in cxaAtexitOverride() local
85 atexitInternal(cb); in cxaAtexitOverride()
92 struct AtExitCallback cb(func); in atexitOverride() local
93 atexitInternal(cb); in atexitOverride()
386 void NanoappLoader::registerAtexitFunction(struct AtExitCallback &cb) { in registerAtexitFunction() argument
387 if (!mAtexitFunctions.push_back(cb)) { in registerAtexitFunction()
767 struct AtExitCallback cb = mAtexitFunctions.back(); in callAtexitFunctions() local
768 if (cb.arg.has_value()) { in callAtexitFunctions()
[all …]
/system/extras/profcollectd/libprofcollectd/
Dservice.rs96 cb: &binder::Strong<(dyn IProviderStatusCallback)>, in registerProviderStatusCallback()
99 if let Err(e) = cb.onProviderReady() { in registerProviderStatusCallback()
105 let cb_binder: SpIBinder = cb.as_binder(); in registerProviderStatusCallback()
107 if let Ok(cb) = cb_binder.into_interface::<dyn IProviderStatusCallback>() { in registerProviderStatusCallback()
108 if let Err(e) = cb.onProviderReady() { in registerProviderStatusCallback()
/system/core/libstats/pull_rust/
Dstats_pull.rs123 let cb = map.get(&atom_tag); in callback_wrapper() localVariable
124 match cb { in callback_wrapper()
126 Some(cb) => { in callback_wrapper()
127 let stats = cb(); in callback_wrapper()
/system/chre/host/hal_generic/V1_2/
Dgeneric_context_hub_v1_2.cc71 uint32_t hubId, const sp<IContexthubCallback> &cb) { in registerCallback_1_2() argument
73 if (cb != nullptr) { in registerCallback_1_2()
74 wrappedCallback = new IContextHubCallbackWrapperV1_2(cb); in registerCallback_1_2()
/system/tools/aidl/tests/golden_output/aidl-test-interface-cpp-source/gen/include/android/aidl/tests/nested/
DBnNestedService.h34 …tus, const ::android::sp<::android::aidl::tests::nested::INestedService::ICallback>& cb) override { in flipStatusWithCallback() argument
36 if (cb) { in flipStatusWithCallback()
37 …ndroid::sp<::android::aidl::tests::nested::INestedService::ICallbackDelegator>::cast(delegate(cb)); in flipStatusWithCallback()
/system/tools/aidl/tests/golden_output/frozen/aidl-test-interface-cpp-source/gen/include/android/aidl/tests/nested/
DBnNestedService.h34 …tus, const ::android::sp<::android::aidl::tests::nested::INestedService::ICallback>& cb) override { in flipStatusWithCallback() argument
36 if (cb) { in flipStatusWithCallback()
37 …ndroid::sp<::android::aidl::tests::nested::INestedService::ICallbackDelegator>::cast(delegate(cb)); in flipStatusWithCallback()
/system/nfc/src/rust/nci/
Dapi.rs119 if let Some(cb) = self.callback.take() { in nfc_disable()
120 cb(1, &[]); in nfc_disable()
223 if let Some(cb) = self.callback { in nfc_set_config()
224 cb(2, &raw[3..]); in nfc_set_config()
262 if let Some(cb) = self.callback { in nfc_get_config()
263 cb(3, &raw[3..]); in nfc_get_config()
361 if let Some(cb) = conn.close(conn_id).await { in nfc_conn_close()
369 cb(conn_id, 1, &conn_close_evt[..]); in nfc_conn_close()
Dnci.rs160 cb: Option<fn(u8, u16, &[u8])>, in open()
165 callback: cb, in open()
178 pub async fn set_static_callback(&mut self, conn_id: u8, cb: Option<fn(u8, u16, &[u8])>) { in set_static_callback()
179 if conn_id < 2 && cb.is_some() { in set_static_callback()
183 conn_params.callback = cb; in set_static_callback()
257 let cb = conn_params.callback.unwrap(); in send_callback() localVariable
258 cb(conn_id, NFC_DATA_START_CEVT, &[]); in send_callback()
276 let cb = conn_params.callback.unwrap(); in send_callback() localVariable
278 cb(conn_id, NFC_DATA_CEVT, data_cevt.as_ref()); in send_callback()
/system/libhidl/transport/manager/1.2/
DIServiceManager.hal33 * @param cb non-null callback to call when there are no clients
37 * - the server or cb parameters are null
43 IClientCallback cb)
49 * If server is null, then this must remove the cb from all matching services.
52 * @param cb non-null callback to remove
55 * false if cb is null or if the client callback or server could not be found
57 unregisterClientCallback(interface server, IClientCallback cb) generates (bool success);
/system/ca-certificates/files/
Dbd43e1dd.057 b9:95:ef:cb:c7:f6:da:31:74:28:a6:e6:54:89:f5:
61 53:cb:c2:98:1c:84:a3:9e:b0:be:23:a4:da:dc:c8:
63 3b:70:d5:50:25:88:99:cb:cd:73:60:f7:d5:ff:35:
72 86:5b:c7:7f:6b:8b:55:1b:4a:c5:20:61:3d:ae:cb:
81 cb:00:c9:52:af:42:ff:37:8f:e1:a3:1e:7a:3d:50:
102 c6:7a:e0:47:be:6e:ce:cb:a3:72:3a:2d:69:5d:cb:c8:e8:45:
104 9e:af:a0:99:ad:be:a9:01:66:cb:38:1d:3c:df:43:1f:f4:4d:
110 cf:af:e7:86:2c:cb:1f:09:6f:a3:6f:a9:84:d4:73:bf:4d:a1:
118 37:5c:c6:cb:21:4e:b0:f7:99:47:18:85:c1:2b:ba:55:ae:06:
/system/security/provisioner/support/
Drkpd_client.cpp137 auto cb = sp<GetKeyCallback>::make(std::move(keyPromise_)); in onSuccess() local
138 auto status = registration->getKey(keyId_, cb); in onSuccess()
140 cb->onError(IGetKeyCallback::ErrorCode::ERROR_UNKNOWN, in onSuccess()
189 auto cb = sp<GetRegistrationCallback>::make(std::move(keyPromise), keyId); in getRpcKeyFuture() local
190 Status status = remoteProvisioning->getRegistration(*rpcName, cb); in getRpcKeyFuture()
/system/security/keystore/
Dkeystore_get_wifi_hidl.cpp50 auto cb = [&](IKeystore::KeystoreStatusCode status, hidl_vec<uint8_t> returnedValue) { in keystore_get() local
58 Return<void> ret = service->getBlob(hidl_string(key, keyLength), cb); in keystore_get()

123456789