Home
last modified time | relevance | path

Searched refs:delegate (Results 1 – 25 of 62) sorted by relevance

123

/system/tpm/trunks/
Dpassword_authorization_delegate_test.cc28 PasswordAuthorizationDelegate delegate(""); in TEST() local
29 EXPECT_EQ(delegate.password_.size, 0); in TEST()
42 PasswordAuthorizationDelegate delegate("secret"); in TEST() local
45 bool authorization_result = delegate.GetCommandAuthorization(command_hash, in TEST()
60 PasswordAuthorizationDelegate delegate("secret"); in TEST() local
62 bool authorization_result = delegate.CheckResponseAuthorization( in TEST()
76 PasswordAuthorizationDelegate delegate("secret"); in TEST() local
78 bool authorization_result = delegate.CheckResponseAuthorization( in TEST()
87 PasswordAuthorizationDelegate delegate("secret"); in TEST() local
91 delegate.EncryptCommandParameter(&encrypted_parameter); in TEST()
[all …]
Dtpm_utility.h85 AuthorizationDelegate* delegate) = 0;
90 AuthorizationDelegate* delegate,
99 AuthorizationDelegate* delegate) = 0;
114 AuthorizationDelegate* delegate,
126 AuthorizationDelegate* delegate,
140 AuthorizationDelegate* delegate,
155 AuthorizationDelegate* delegate) = 0;
172 AuthorizationDelegate* delegate,
184 AuthorizationDelegate* delegate,
209 AuthorizationDelegate* delegate,
[all …]
Dhmac_authorization_delegate_test.cc26 HmacAuthorizationDelegate delegate; in TEST() local
29 EXPECT_FALSE(delegate.GetCommandAuthorization(p_hash, false, false, &dummy)); in TEST()
31 EXPECT_FALSE(delegate.CheckResponseAuthorization(p_hash, dummy)); in TEST()
32 EXPECT_FALSE(delegate.EncryptCommandParameter(&dummy)); in TEST()
33 EXPECT_FALSE(delegate.DecryptResponseParameter(&dummy)); in TEST()
37 HmacAuthorizationDelegate delegate; in TEST() local
42 EXPECT_TRUE(delegate.InitSession(dummy_handle, nonce, nonce, std::string(), in TEST()
44 EXPECT_EQ(0u, delegate.session_key_.size()); in TEST()
48 EXPECT_TRUE(delegate.InitSession(dummy_handle, nonce, nonce, dummy_salt, in TEST()
50 EXPECT_EQ(kHashDigestSize, delegate.session_key_.size()); in TEST()
[all …]
Dtrunks_factory_for_test.cc154 AuthorizationDelegate* delegate) override { in StirRandom() argument
155 return target_->StirRandom(entropy_data, delegate); in StirRandom()
159 AuthorizationDelegate* delegate, in GenerateRandom() argument
161 return target_->GenerateRandom(num_bytes, delegate, random_data); in GenerateRandom()
166 AuthorizationDelegate* delegate) override { in ExtendPCR() argument
167 return target_->ExtendPCR(pcr_index, extend_data, delegate); in ExtendPCR()
178 AuthorizationDelegate* delegate, in AsymmetricEncrypt() argument
184 delegate, in AsymmetricEncrypt()
192 AuthorizationDelegate* delegate, in AsymmetricDecrypt() argument
198 delegate, in AsymmetricDecrypt()
[all …]
Dtpm_utility_impl.h52 AuthorizationDelegate* delegate) override;
54 AuthorizationDelegate* delegate,
58 AuthorizationDelegate* delegate) override;
64 AuthorizationDelegate* delegate,
70 AuthorizationDelegate* delegate,
76 AuthorizationDelegate* delegate,
83 AuthorizationDelegate* delegate) override;
88 AuthorizationDelegate* delegate,
95 AuthorizationDelegate* delegate,
104 AuthorizationDelegate* delegate,
[all …]
Dtpm_utility_impl.cc322 AuthorizationDelegate* delegate) { in StirRandom() argument
325 return factory_.GetTpm()->StirRandomSync(random_bytes, delegate); in StirRandom()
329 AuthorizationDelegate* delegate, in GenerateRandom() argument
339 delegate); in GenerateRandom()
353 AuthorizationDelegate* delegate) { in ExtendPCR() argument
369 delegate); in ExtendPCR()
413 AuthorizationDelegate* delegate, in AsymmetricEncrypt() argument
462 delegate); in AsymmetricEncrypt()
476 AuthorizationDelegate* delegate, in AsymmetricDecrypt() argument
492 if (delegate == nullptr) { in AsymmetricDecrypt()
[all …]
/system/bt/service/test/
Dipc_linux_unittest.cpp157 TestDelegate delegate; in TEST_F() local
158 EXPECT_FALSE(ipc_manager_->Start(ipc::IPCManager::TYPE_LINUX, &delegate)); in TEST_F()
160 EXPECT_EQ(0, delegate.started_count()); in TEST_F()
161 EXPECT_EQ(0, delegate.stopped_count()); in TEST_F()
165 TestDelegate delegate; in TEST_F() local
166 EXPECT_TRUE(ipc_manager_->Start(ipc::IPCManager::TYPE_LINUX, &delegate)); in TEST_F()
174 EXPECT_EQ(1, delegate.started_count()); in TEST_F()
175 EXPECT_EQ(0, delegate.stopped_count()); in TEST_F()
182 EXPECT_EQ(1, delegate.stopped_count()); in TEST_F()
186 TestDelegate delegate; in TEST_F() local
[all …]
Dstub_ipc_handler_binder.cpp27 IPCManager::Delegate* delegate) in IPCHandlerBinder() argument
28 : IPCHandler(adapter, delegate) { in IPCHandlerBinder()
Dstub_ipc_handler_linux.cpp27 IPCManager::Delegate* delegate) in IPCHandlerLinux() argument
28 : IPCHandler(adapter, delegate), in IPCHandlerLinux()
Dlow_energy_client_unittest.cpp900 TestDelegate delegate; in TEST_F() local
901 le_client_->SetDelegate(&delegate); in TEST_F()
903 EXPECT_EQ(0, delegate.scan_result_count()); in TEST_F()
924 EXPECT_EQ(0, delegate.scan_result_count()); in TEST_F()
940 EXPECT_EQ(1, delegate.scan_result_count()); in TEST_F()
941 EXPECT_EQ(kTestAddressStr, delegate.last_scan_result().device_address()); in TEST_F()
942 EXPECT_EQ(kTestRssi, delegate.last_scan_result().rssi()); in TEST_F()
943 EXPECT_EQ(3U, delegate.last_scan_result().scan_record().size()); in TEST_F()
947 EXPECT_EQ(2, delegate.scan_result_count()); in TEST_F()
948 EXPECT_EQ(kTestAddressStr, delegate.last_scan_result().device_address()); in TEST_F()
[all …]
/system/update_engine/common/
Dhttp_fetcher_unittest.cc461 HttpFetcherTestDelegate delegate; in TYPED_TEST() local
463 fetcher->set_delegate(&delegate); in TYPED_TEST()
476 HttpFetcherTestDelegate delegate; in TYPED_TEST() local
478 fetcher->set_delegate(&delegate); in TYPED_TEST()
495 HttpFetcherTestDelegate delegate; in TYPED_TEST() local
498 delegate.is_expect_error_ = true; in TYPED_TEST()
501 fetcher->set_delegate(&delegate); in TYPED_TEST()
513 CHECK_EQ(delegate.times_received_bytes_called_, 0); in TYPED_TEST()
518 CHECK_EQ(delegate.times_transfer_complete_called_, 1); in TYPED_TEST()
519 CHECK_EQ(delegate.times_transfer_terminated_called_, 0); in TYPED_TEST()
[all …]
Daction_processor.h78 ActionProcessorDelegate* delegate() const { return delegate_; } in delegate() function
79 void set_delegate(ActionProcessorDelegate *delegate) { in set_delegate() argument
80 delegate_ = delegate; in set_delegate()
/system/bt/service/ipc/binder/
Dipc_handler_binder.cpp37 IPCManager::Delegate* delegate) in IPCHandlerBinder() argument
38 : IPCHandler(adapter, delegate) { in IPCHandlerBinder()
59 if (delegate()) { in Run()
78 if (delegate()) in NotifyStarted()
79 delegate()->OnIPCHandlerStarted(IPCManager::TYPE_BINDER); in NotifyStarted()
Dremote_callback_map.h65 Delegate* delegate = nullptr);
89 Delegate* delegate);
134 Delegate* delegate) { in Register() argument
143 new CallbackDeathRecipient(key, callback, this, delegate)); in Register()
228 Delegate* delegate) in CallbackDeathRecipient() argument
232 delegate_(delegate) { in CallbackDeathRecipient()
/system/update_engine/payload_consumer/
Dfilesystem_verifier_action_unittest.cc202 FilesystemVerifierActionTestDelegate delegate(&copier_action); in DoTest() local
203 processor.set_delegate(&delegate); in DoTest()
217 bool is_delegate_ran = delegate.ran(); in DoTest()
221 EXPECT_EQ(ErrorCode::kError, delegate.code()); in DoTest()
222 return (ErrorCode::kError == delegate.code()); in DoTest()
226 EXPECT_EQ(expected_exit_code, delegate.code()); in DoTest()
227 return (expected_exit_code == delegate.code()); in DoTest()
229 EXPECT_EQ(ErrorCode::kSuccess, delegate.code()); in DoTest()
264 FilesystemVerifierActionTest2Delegate delegate; in TEST_F() local
266 processor.set_delegate(&delegate); in TEST_F()
[all …]
Ddownload_action_unittest.cc183 DownloadActionTestProcessorDelegate delegate(expected_code); in TestWithData() local
184 delegate.expected_data_ = brillo::Blob(data.begin() + 1, data.end()); in TestWithData()
185 delegate.path_ = output_temp_file.path(); in TestWithData()
187 processor.set_delegate(&delegate); in TestWithData()
290 TerminateEarlyTestProcessorDelegate delegate; in TestTerminateEarly() local
292 processor.set_delegate(&delegate); in TestTerminateEarly()
392 PassObjectOutTestProcessorDelegate delegate; in TEST() local
393 processor.set_delegate(&delegate); in TEST()
471 DownloadActionTestProcessorDelegate delegate(ErrorCode::kSuccess); in StartDownload() local
472 delegate.expected_data_ = brillo::Blob(data_.begin() + start_at_offset_, in StartDownload()
[all …]
Ddownload_action.h104 DownloadActionDelegate* delegate() const { return delegate_; } in delegate() function
105 void set_delegate(DownloadActionDelegate* delegate) { in set_delegate() argument
106 delegate_ = delegate; in set_delegate()
/system/bt/service/ipc/
Dipc_handler_linux.cpp32 IPCManager::Delegate* delegate) in IPCHandlerLinux() argument
33 : IPCHandler(adapter, delegate), in IPCHandlerLinux()
188 if (!delegate()) in NotifyStartedOnOriginThread()
197 if (delegate()) in NotifyStartedOnCurrentThread()
198 delegate()->OnIPCHandlerStarted(IPCManager::TYPE_LINUX); in NotifyStartedOnCurrentThread()
202 if (!delegate()) in NotifyStoppedOnOriginThread()
211 if (delegate()) in NotifyStoppedOnCurrentThread()
212 delegate()->OnIPCHandlerStopped(IPCManager::TYPE_LINUX); in NotifyStoppedOnCurrentThread()
Dipc_manager.cpp38 bool IPCManager::Start(Type type, Delegate* delegate) { in Start() argument
46 linux_handler_ = new IPCHandlerLinux(adapter_, delegate); in Start()
59 binder_handler_ = new IPCHandlerBinder(adapter_, delegate); in Start()
Dipc_handler.cpp24 IPCManager::Delegate* delegate) in IPCHandler() argument
26 delegate_(delegate) { in IPCHandler()
Dipc_handler.h34 IPCHandler(bluetooth::Adapter* adapter, IPCManager::Delegate* delegate);
48 IPCManager::Delegate* delegate() const { return delegate_; } in delegate() function
/system/update_engine/
Dweave_service_factory.cc26 WeaveServiceInterface::DelegateInterface* delegate) { in ConstructWeaveService() argument
28 if (!delegate) in ConstructWeaveService()
34 if (!weave_service->Init(delegate)) in ConstructWeaveService()
/system/netd/server/
DPhysicalNetwork.cpp28 Permission permission, PhysicalNetwork::Delegate* delegate) { in addToDefault() argument
33 if (int ret = delegate->addFallthrough(interface, permission)) { in addToDefault()
41 PhysicalNetwork::Delegate* delegate) { in removeFromDefault() argument
47 if (int ret = delegate->removeFallthrough(interface, permission)) { in removeFromDefault()
58 PhysicalNetwork::PhysicalNetwork(unsigned netId, PhysicalNetwork::Delegate* delegate) : in PhysicalNetwork() argument
59 Network(netId), mDelegate(delegate), mPermission(PERMISSION_NONE), mIsDefault(false) { in PhysicalNetwork()
/system/connectivity/shill/
Drpc_task.cc34 RPCTask::RPCTask(ControlInterface* control_interface, RPCTaskDelegate* delegate) in RPCTask() argument
35 : delegate_(delegate), in RPCTask()
38 CHECK(delegate); in RPCTask()
Dpower_manager_unittest.cc62 PowerManagerProxyDelegate* delegate, in CreatePowerManagerProxy() argument
66 delegate_ = delegate; in CreatePowerManagerProxy()
71 PowerManagerProxyDelegate* delegate() const { return delegate_; } in delegate() function in shill::__anon86f8cc870111::FakeControl
99 delegate_(control_.delegate()) { in PowerManagerTest()
179 control_.delegate()->OnSuspendImminent(suspend_id); in OnSuspendImminent()
184 control_.delegate()->OnSuspendDone(suspend_id); in OnSuspendDone()
189 control_.delegate()->OnDarkSuspendImminent(suspend_id); in OnDarkSuspendImminent()

123