/packages/modules/OnDevicePersonalization/src/com/android/libraries/pcc/chronicle/api/ |
D | Chronicle.kt | 42 fun <T : Connection> getConnection(request: ConnectionRequest<T>): ConnectionResult<T> in getAvailableConnectionTypes() 54 is ConnectionResult.Success<T> -> result.connection in result() 55 is ConnectionResult.Failure<T> -> { in result() 77 is ConnectionResult.Success<T> -> result.connection in getConnectionOrThrow() 78 is ConnectionResult.Failure<T> -> throw (result.error) in getConnectionOrThrow() 93 sealed class ConnectionResult<T : Connection> { class 94 class Success<T : Connection>(val connection: T) : ConnectionResult<T>() 95 class Failure<T : Connection>(val error: ChronicleError) : ConnectionResult<T>()
|
/packages/modules/OnDevicePersonalization/src/com/android/libraries/pcc/chronicle/api/integration/ |
D | DefaultChronicle.kt | 24 import com.android.libraries.pcc.chronicle.api.ConnectionResult in <lambda>() 102 override fun <T : Connection> getConnection(request: ConnectionRequest<T>): ConnectionResult<T> = in <lambda>() 107 ): ConnectionResult<T> { in <lambda>() 109 return ConnectionResult.Failure(Disabled("Chronicle disabled via flags.")) in <lambda>() 117 return ConnectionResult.Failure(ConnectionNotDeclared(request)) in <lambda>() 123 ?: return ConnectionResult.Failure(ConnectionProviderNotFound(request)) in <lambda>() 128 return ConnectionResult.Failure(it) in <lambda>() 140 return ConnectionResult.Failure(it) in <lambda>() 152 return ConnectionResult.Failure(it) in <lambda>() 160 return ConnectionResult.Success(connectionProvider.getTypedConnection(request)) in <lambda>()
|
D | NoOpChronicle.kt | 22 import com.android.libraries.pcc.chronicle.api.ConnectionResult 38 override fun <T : Connection> getConnection(request: ConnectionRequest<T>): ConnectionResult<T> { in getAvailableConnectionTypes() 40 ConnectionResult.Failure(Disabled("Chronicle disabled via startup flags.")) in getAvailableConnectionTypes() 41 else ConnectionResult.Failure(Disabled("Chronicle not present in build.")) in getAvailableConnectionTypes()
|
/packages/modules/OnDevicePersonalization/tests/servicetests/src/com/android/ondevicepersonalization/services/policyengine/ |
D | UserDataReaderTest.kt | 28 import com.android.libraries.pcc.chronicle.api.ConnectionResult 108 val result: ConnectionResult<UserDataReader>? = chronicleManager.chronicle.getConnection( in testUserDataConnection() 112 assertThat(result).isInstanceOf(ConnectionResult.Success::class.java) in testUserDataConnection() 141 val result: ConnectionResult<UserDataReader>? = chronicleManager.chronicle.getConnection( in testFailedConnectionContext() 151 val result: ConnectionResult<UserDataReader>? = chronicleManager.chronicle.getConnection( in testFailNewConnection() 219 private fun ConnectionResult<*>.expectFailure(cls: Class<out ChronicleError>) { in expectFailure() method 221 is ConnectionResult.Success -> fail("Expected failure with $cls, but got success") in expectFailure() 222 is ConnectionResult.Failure -> assertThat(error).isInstanceOf(cls) in expectFailure()
|
/packages/modules/Bluetooth/system/gd/l2cap/classic/internal/ |
D | link_manager_test.cc | 127 ….on_fail_callback_ = common::BindOnce([](FixedChannelManager::ConnectionResult result) { FAIL(); }… in TEST_F() 160 FixedChannelManager::ConnectionResult my_result; in TEST_F() 164 [&my_result](FixedChannelManager::ConnectionResult result) { my_result = result; })}; in TEST_F() 176 ….on_fail_callback_ = common::BindOnce([](FixedChannelManager::ConnectionResult result) { FAIL(); }… in TEST_F() 211 FixedChannelManager::ConnectionResult my_result; in TEST_F() 215 [&my_result](FixedChannelManager::ConnectionResult result) { my_result = result; })}; in TEST_F() 247 FixedChannelManager::ConnectionResult my_result; in TEST_F() 251 [&my_result](FixedChannelManager::ConnectionResult result) { my_result = result; })}; in TEST_F() 299 ….on_fail_callback_ = common::BindOnce([](FixedChannelManager::ConnectionResult result) { FAIL(); }… in TEST_F() 373 ….on_fail_callback_ = common::BindOnce([](FixedChannelManager::ConnectionResult result) { FAIL(); }… in TEST_F() [all …]
|
D | link.cc | 38 using ConnectionResult = DynamicChannelManager::ConnectionResult; typedef 75 ConnectionResult result{ in OnAclDisconnected() 164 ConnectionResult result{ in SendConnectionRequest() 206 void Link::OnOutgoingConnectionRequestFail(Cid local_cid, ConnectionResult result) { in OnOutgoingConnectionRequestFail() 293 void Link::NotifyChannelFail(Cid cid, ConnectionResult result) { in NotifyChannelFail()
|
D | link_manager.cc | 43 FixedChannelManager::ConnectionResult{ in ConnectFixedChannelServices() 68 FixedChannelManager::ConnectionResult{ in ConnectFixedChannelServices() 306 callbacks.on_fail_callback_(DynamicChannelManager::ConnectionResult{ in OnConnectFail() 318 FixedChannelManager::ConnectionResult{ in OnConnectFail()
|
D | link.h | 123 …oid OnOutgoingConnectionRequestFail(Cid local_cid, DynamicChannelManager::ConnectionResult result); 144 virtual void NotifyChannelFail(Cid cid, DynamicChannelManager::ConnectionResult result);
|
D | signalling_manager.cc | 113 DynamicChannelManager::ConnectionResult connection_result{ in on_security_result_for_outgoing() 225 DynamicChannelManager::ConnectionResult connection_result{ in on_security_result_for_incoming() 277 DynamicChannelManager::ConnectionResult connection_result{ in OnConnectionResponse() 290 DynamicChannelManager::ConnectionResult connection_result{ in OnConnectionResponse() 920 DynamicChannelManager::ConnectionResult connection_result{ in on_command_timeout()
|
D | link_test.cc | 53 void OnFail(DynamicChannelManager::ConnectionResult result) { in OnFail()
|
/packages/modules/Bluetooth/system/gd/l2cap/le/internal/ |
D | link_manager_test.cc | 122 ….on_fail_callback_ = common::BindOnce([](FixedChannelManager::ConnectionResult result) { FAIL(); }… in TEST_F() 165 FixedChannelManager::ConnectionResult my_result; in TEST_F() 169 [&my_result](FixedChannelManager::ConnectionResult result) { my_result = result; })}; in TEST_F() 181 ….on_fail_callback_ = common::BindOnce([](FixedChannelManager::ConnectionResult result) { FAIL(); }… in TEST_F() 227 FixedChannelManager::ConnectionResult my_result; in TEST_F() 231 [&my_result](FixedChannelManager::ConnectionResult result) { my_result = result; })}; in TEST_F() 266 FixedChannelManager::ConnectionResult my_result; in TEST_F() 270 [&my_result](FixedChannelManager::ConnectionResult result) { my_result = result; })}; in TEST_F() 319 ….on_fail_callback_ = common::BindOnce([](FixedChannelManager::ConnectionResult result) { FAIL(); }… in TEST_F() 415 ….on_fail_callback_ = common::BindOnce([](FixedChannelManager::ConnectionResult result) { FAIL(); }… in TEST_F() [all …]
|
D | link_manager.cc | 43 FixedChannelManager::ConnectionResult{ in ConnectFixedChannelServices() 69 FixedChannelManager::ConnectionResult{ in ConnectFixedChannelServices() 145 FixedChannelManager::ConnectionResult{ in OnLeConnectFail()
|
D | link.cc | 238 DynamicChannelManager::ConnectionResult result{ in OnOutgoingConnectionRequestFail() 305 void Link::NotifyChannelFail(Cid cid, DynamicChannelManager::ConnectionResult result) { in NotifyChannelFail()
|
D | link.h | 148 void NotifyChannelFail(Cid cid, DynamicChannelManager::ConnectionResult result);
|
/packages/modules/Bluetooth/system/gd/l2cap/le/ |
D | fixed_channel_manager.h | 49 struct ConnectionResult { struct 56 using OnConnectionFailureCallback = common::OnceCallback<void(ConnectionResult)>;
|
D | dynamic_channel_manager.h | 53 struct ConnectionResult { struct 62 using OnConnectionFailureCallback = common::OnceCallback<void(ConnectionResult result)>; argument
|
D | facade.cc | 211 void on_connect_fail(DynamicChannelManager::ConnectionResult result) { in on_connect_fail() 266 DynamicChannelManager::ConnectionResult channel_open_fail_reason_; 366 void on_connect_fail(FixedChannelManager::ConnectionResult /* result */) { in on_connect_fail() argument
|
/packages/modules/Bluetooth/system/gd/l2cap/classic/ |
D | fixed_channel_manager.h | 51 struct ConnectionResult { struct 58 using OnConnectionFailureCallback = common::OnceCallback<void(ConnectionResult result)>; argument
|
D | dynamic_channel_manager.h | 53 struct ConnectionResult { struct 59 using OnConnectionFailureCallback = common::ContextualOnceCallback<void(ConnectionResult result)>; argument
|
D | facade.cc | 399 void on_connect_fail(DynamicChannelManager::ConnectionResult /* result */) {} in on_connect_fail() argument
|
/packages/modules/Bluetooth/system/gd/l2cap/fuzz/ |
D | fuzz_dynamic_channel_manager_impl.h | 81 …void SetConnectionOnFail(l2cap::classic::DynamicChannelManager::ConnectionResult result, std::prom… in SetConnectionOnFail()
|
D | shim_l2cap.h | 57 void OnConnectionFail(l2cap::classic::DynamicChannelManager::ConnectionResult result) {} in OnConnectionFail()
|
/packages/modules/Bluetooth/system/gd/security/internal/ |
D | security_manager_impl.h | 237 void OnConnectionFailureLe(bluetooth::l2cap::le::FixedChannelManager::ConnectionResult result);
|
D | security_manager_impl.cc | 670 …erImpl::OnConnectionFailureLe(bluetooth::l2cap::le::FixedChannelManager::ConnectionResult result) { in OnConnectionFailureLe()
|