Home
last modified time | relevance | path

Searched refs:StatusCode (Results 1 – 25 of 38) sorted by relevance

12

/system/netd/server/
DNetdHwService.cpp38 static StatusCode toHalStatus(int ret) { in toHalStatus()
41 return StatusCode::OK; in toHalStatus()
43 return StatusCode::INVALID_ARGUMENTS; in toHalStatus()
45 return StatusCode::ALREADY_EXISTS; in toHalStatus()
47 return StatusCode::NO_NETWORK; in toHalStatus()
49 return StatusCode::PERMISSION_DENIED; in toHalStatus()
52 return StatusCode::UNKNOWN_ERROR; in toHalStatus()
85 return StatusCode::INVALID_ARGUMENTS; \
88 Return<StatusCode> NetdHwService::destroyOemNetwork(uint64_t netHandle) { in destroyOemNetwork()
104 Return <StatusCode> NetdHwService::addRouteToOemNetwork( in addRouteToOemNetwork()
[all …]
DNetdHwService.h28 using StatusCode = android::system::net::netd::V1_1::INetd::StatusCode; variable
35 Return<StatusCode> destroyOemNetwork(uint64_t netHandle) override;
38 Return <StatusCode> addRouteToOemNetwork(
41 Return <StatusCode> removeRouteFromOemNetwork(
44 Return <StatusCode> addInterfaceToOemNetwork(uint64_t networkHandle,
46 Return <StatusCode> removeInterfaceFromOemNetwork(uint64_t networkHandle,
48 Return <StatusCode> setIpForwardEnable(bool enable) override;
49 Return <StatusCode> setForwardingBetweenInterfaces(const hidl_string& inputIfName,
/system/bt/gd/os/linux_generic/
Dwakelock_manager.cc33 using StatusCode = WakelockNative::StatusCode; typedef
60 StatusCode last_acquired_error = StatusCode::SUCCESS;
61 StatusCode last_released_error = StatusCode::SUCCESS;
76 last_acquired_error = StatusCode::SUCCESS; in Reset()
77 last_released_error = StatusCode::SUCCESS; in Reset()
85 void UpdateAcquiredStats(StatusCode acquired_status) { in UpdateAcquiredStats()
87 if (acquired_status != StatusCode::SUCCESS) { in UpdateAcquiredStats()
106 void UpdateReleasedStats(StatusCode released_status) { in UpdateReleasedStats()
108 if (released_status != StatusCode::SUCCESS) { in UpdateReleasedStats()
204 StatusCode status; in Acquire()
[all …]
/system/hardware/interfaces/net/netd/1.1/vts/functional/
DVtsHalNetNetdV1_1TargetTest.cpp122 INetd::StatusCode status; in SetUp()
124 netd->createOemNetwork([&](net_handle_t n, uint32_t p, INetd::StatusCode s) { in SetUp()
130 ASSERT_EQ(INetd::StatusCode::OK, status); in SetUp()
137 void expectAddRoute(INetd::StatusCode expectedStatus, net_handle_t handle, const char* iface, in expectAddRoute()
139 Return<INetd::StatusCode> retStatus = in expectAddRoute()
145 expectAddRoute(INetd::StatusCode::OK, h, i, d, n); in expectAddRouteSuccess()
148 void expectRemoveRoute(INetd::StatusCode expectedStatus, net_handle_t handle, const char* iface, in expectRemoveRoute()
150 Return<INetd::StatusCode> retStatus = in expectRemoveRoute()
156 expectRemoveRoute(INetd::StatusCode::OK, h, i, d, n); in expectRemoveRouteSuccess()
173 Return<INetd::StatusCode> retStatus = netd->addInterfaceToOemNetwork(mNetHandle, sIfaceName); in TEST_P()
[all …]
/system/hardware/interfaces/net/netd/1.0/vts/functional/
DVtsHalNetNetdV1_0TargetTest.cpp45 INetd::StatusCode status; in TEST_P()
47 Return<void> ret = netd->createOemNetwork([&](net_handle_t n, uint32_t p, INetd::StatusCode s) { in TEST_P()
54 ASSERT_EQ(INetd::StatusCode::OK, status); in TEST_P()
61 Return<INetd::StatusCode> retStatus = netd->destroyOemNetwork(netHandle); in TEST_P()
62 ASSERT_EQ(INetd::StatusCode::OK, retStatus); in TEST_P()
71 Return<INetd::StatusCode> retStatus = netd->destroyOemNetwork(nh); in TEST_P()
72 ASSERT_EQ(INetd::StatusCode::INVALID_ARGUMENTS, retStatus); in TEST_P()
/system/bt/gd/os/android/
Dwakelock_native.cc67 WakelockNative::StatusCode WakelockNative::Acquire(const std::string& lock_name) { in Acquire()
70 return StatusCode::NATIVE_SERVICE_NOT_AVAILABLE; in Acquire()
75 return StatusCode::SUCCESS; in Acquire()
81 return StatusCode::NATIVE_API_ERROR; in Acquire()
84 return StatusCode::SUCCESS; in Acquire()
87 WakelockNative::StatusCode WakelockNative::Release(const std::string& lock_name) { in Release()
90 return StatusCode::SUCCESS; in Release()
94 return StatusCode::SUCCESS; in Release()
Dwakelock_native_test.cc173 ASSERT_EQ(status, WakelockNative::StatusCode::SUCCESS); in TEST_F()
180 ASSERT_EQ(status, WakelockNative::StatusCode::SUCCESS); in TEST_F()
191 ASSERT_EQ(status, WakelockNative::StatusCode::SUCCESS); in TEST_F()
198 ASSERT_EQ(status, WakelockNative::StatusCode::SUCCESS); in TEST_F()
205 ASSERT_EQ(status, WakelockNative::StatusCode::SUCCESS); in TEST_F()
216 ASSERT_EQ(status, WakelockNative::StatusCode::SUCCESS); in TEST_F()
223 ASSERT_EQ(status, WakelockNative::StatusCode::SUCCESS); in TEST_F()
230 ASSERT_EQ(status, WakelockNative::StatusCode::SUCCESS); in TEST_F()
242 ASSERT_EQ(status, WakelockNative::StatusCode::SUCCESS); in TEST_F()
249 ASSERT_EQ(status, WakelockNative::StatusCode::SUCCESS); in TEST_F()
[all …]
/system/bt/gd/os/linux/
Dwakelock_native.cc34 WakelockNative::StatusCode WakelockNative::Acquire(const std::string& lock_name) { in Acquire()
36 return StatusCode::SUCCESS; in Acquire()
39 WakelockNative::StatusCode WakelockNative::Release(const std::string& lock_name) { in Release()
41 return StatusCode::SUCCESS; in Release()
/system/bt/gd/os/host/
Dwakelock_native.cc34 WakelockNative::StatusCode WakelockNative::Acquire(const std::string& lock_name) { in Acquire()
36 return StatusCode::SUCCESS; in Acquire()
39 WakelockNative::StatusCode WakelockNative::Release(const std::string& lock_name) { in Release()
41 return StatusCode::SUCCESS; in Release()
/system/tools/aidl/tests/golden_output/aidl-test-interface-rust-source/gen/android/aidl/tests/
DITestService.rs75 Err(binder::StatusCode::UNKNOWN_TRANSACTION.into()) in UnimplementedMethod()
78 Err(binder::StatusCode::UNKNOWN_TRANSACTION.into()) in Deprecated()
81 Err(binder::StatusCode::UNKNOWN_TRANSACTION.into()) in TestOneway()
84 Err(binder::StatusCode::UNKNOWN_TRANSACTION.into()) in RepeatBoolean()
87 Err(binder::StatusCode::UNKNOWN_TRANSACTION.into()) in RepeatByte()
90 Err(binder::StatusCode::UNKNOWN_TRANSACTION.into()) in RepeatChar()
93 Err(binder::StatusCode::UNKNOWN_TRANSACTION.into()) in RepeatInt()
96 Err(binder::StatusCode::UNKNOWN_TRANSACTION.into()) in RepeatLong()
99 Err(binder::StatusCode::UNKNOWN_TRANSACTION.into()) in RepeatFloat()
102 Err(binder::StatusCode::UNKNOWN_TRANSACTION.into()) in RepeatDouble()
[all …]
DINewName.rs24 Err(binder::StatusCode::UNKNOWN_TRANSACTION.into()) in RealName()
41 if let Err(binder::StatusCode::UNKNOWN_TRANSACTION) = _aidl_reply { in RealName()
62 _aidl_reply.write(&binder::Status::from(binder::StatusCode::OK))?; in on_transact()
69 _ => Err(binder::StatusCode::UNKNOWN_TRANSACTION) in on_transact()
DINamedCallback.rs24 Err(binder::StatusCode::UNKNOWN_TRANSACTION.into()) in GetName()
41 if let Err(binder::StatusCode::UNKNOWN_TRANSACTION) = _aidl_reply { in GetName()
62 _aidl_reply.write(&binder::Status::from(binder::StatusCode::OK))?; in on_transact()
69 _ => Err(binder::StatusCode::UNKNOWN_TRANSACTION) in on_transact()
DIOldName.rs24 Err(binder::StatusCode::UNKNOWN_TRANSACTION.into()) in RealName()
41 if let Err(binder::StatusCode::UNKNOWN_TRANSACTION) = _aidl_reply { in RealName()
62 _aidl_reply.write(&binder::Status::from(binder::StatusCode::OK))?; in on_transact()
69 _ => Err(binder::StatusCode::UNKNOWN_TRANSACTION) in on_transact()
DDeprecatedParcelable.rs35 .unwrap_or(Err(binder::StatusCode::UNEXPECTED_NULL)) in deserialize()
45 if parcelable_size < 0 { return Err(binder::StatusCode::BAD_VALUE); } in deserialize_option()
47 return Err(binder::StatusCode::BAD_VALUE); in deserialize_option()
DOtherParcelableForToString.rs37 .unwrap_or(Err(binder::StatusCode::UNEXPECTED_NULL)) in deserialize()
47 if parcelable_size < 0 { return Err(binder::StatusCode::BAD_VALUE); } in deserialize_option()
49 return Err(binder::StatusCode::BAD_VALUE); in deserialize_option()
DGenericStructuredParcelable.rs40 .unwrap_or(Err(binder::StatusCode::UNEXPECTED_NULL)) in deserialize()
50 if parcelable_size < 0 { return Err(binder::StatusCode::BAD_VALUE); } in deserialize_option()
52 return Err(binder::StatusCode::BAD_VALUE); in deserialize_option()
DUnionWithFd.rs33 let __field_ref = v.as_ref().ok_or(binder::StatusCode::UNEXPECTED_NULL)?; in serialize_option()
43 .unwrap_or(Err(binder::StatusCode::UNEXPECTED_NULL)) in deserialize()
62 Err(binder::StatusCode::BAD_VALUE) in deserialize_option()
/system/bt/gd/os/internal/
Dwakelock_native.h35 enum StatusCode : uint8_t { SUCCESS = 0, NATIVE_SERVICE_NOT_AVAILABLE = 1, NATIVE_API_ERROR = 2 }; enum
37 StatusCode Acquire(const std::string& lock_name);
38 StatusCode Release(const std::string& lock_name);
/system/bt/gd/hci/facade/
Dle_acl_manager_facade.cc71 …return ::grpc::Status(::grpc::StatusCode::RESOURCE_EXHAUSTED, "Only one outstanding request is sup… in CreateConnection()
87 … return ::grpc::Status(::grpc::StatusCode::INVALID_ARGUMENT, "No matching outstanding connection"); in CancelConnection()
99 return ::grpc::Status(::grpc::StatusCode::INVALID_ARGUMENT, "Invalid handle"); in Disconnect()
110 return ::grpc::Status(::grpc::StatusCode::INVALID_ARGUMENT, "Invalid handle"); \
115 return ::grpc::Status(::grpc::StatusCode::INVALID_ARGUMENT, "Invalid handle"); \
127 return ::grpc::Status(::grpc::StatusCode::INVALID_ARGUMENT, "Invalid command packet"); in ConnectionCommand()
137 return ::grpc::Status(::grpc::StatusCode::INVALID_ARGUMENT, "Invalid command packet"); in ConnectionCommand()
147 …return ::grpc::Status(::grpc::StatusCode::RESOURCE_EXHAUSTED, "Only one outstanding connection is … in FetchIncomingConnection()
162 return ::grpc::Status(::grpc::StatusCode::INVALID_ARGUMENT, "Invalid handle"); in SendAclData()
173 return ::grpc::Status(::grpc::StatusCode::RESOURCE_EXHAUSTED, "Can't send packet"); in SendAclData()
[all …]
Dacl_manager_facade.cc69 …return ::grpc::Status(::grpc::StatusCode::RESOURCE_EXHAUSTED, "Only one outstanding request is sup… in CreateConnection()
82 return ::grpc::Status(::grpc::StatusCode::INVALID_ARGUMENT, "Invalid handle"); in Disconnect()
95 return ::grpc::Status(::grpc::StatusCode::INVALID_ARGUMENT, "Invalid handle"); in AuthenticationRequested()
106 return ::grpc::Status(::grpc::StatusCode::INVALID_ARGUMENT, "Invalid handle"); \
111 return ::grpc::Status(::grpc::StatusCode::INVALID_ARGUMENT, "Invalid handle"); \
123 return ::grpc::Status(::grpc::StatusCode::INVALID_ARGUMENT, "Invalid command packet"); in ConnectionCommand()
258 return ::grpc::Status(::grpc::StatusCode::INVALID_ARGUMENT, "Invalid command packet"); in ConnectionCommand()
268 …return ::grpc::Status(::grpc::StatusCode::RESOURCE_EXHAUSTED, "Only one outstanding connection is … in FetchIncomingConnection()
283 return ::grpc::Status(::grpc::StatusCode::INVALID_ARGUMENT, "Invalid handle"); in SendAclData()
295 return ::grpc::Status(::grpc::StatusCode::RESOURCE_EXHAUSTED, "Can't send packet"); in SendAclData()
[all …]
/system/bt/gd/l2cap/le/
Dfacade.cc69 return ::grpc::Status(::grpc::StatusCode::FAILED_PRECONDITION, "Psm not registered"); in OpenDynamicChannel()
85 return ::grpc::Status(::grpc::StatusCode::FAILED_PRECONDITION, "Psm not registered"); in CloseDynamicChannel()
88 return ::grpc::Status(::grpc::StatusCode::FAILED_PRECONDITION, "Channel not open"); in CloseDynamicChannel()
94 … return ::grpc::Status(::grpc::StatusCode::FAILED_PRECONDITION, "Remote address doesn't match"); in CloseDynamicChannel()
111 return ::grpc::Status(::grpc::StatusCode::FAILED_PRECONDITION, "Psm not registered"); in SetDynamicChannel()
123 return ::grpc::Status(::grpc::StatusCode::FAILED_PRECONDITION, "Psm not registered"); in SendDynamicChannelPacket()
127 return ::grpc::Status(::grpc::StatusCode::FAILED_PRECONDITION, "Channel not open"); in SendDynamicChannelPacket()
262 return ::grpc::Status(::grpc::StatusCode::FAILED_PRECONDITION, "Cid not registered"); in SetFixedChannel()
274 return ::grpc::Status(::grpc::StatusCode::FAILED_PRECONDITION, "Cid not registered"); in SendFixedChannelPacket()
278 return ::grpc::Status(::grpc::StatusCode::FAILED_PRECONDITION, "Channel not open"); in SendFixedChannelPacket()
[all …]
/system/hardware/interfaces/net/netd/1.1/
DINetd.hal47 generates (StatusCode status);
70 generates (StatusCode status);
82 generates (StatusCode status);
94 generates (StatusCode status);
103 setIpForwardEnable(bool enable) generates (StatusCode status);
117 generates (StatusCode status);
/system/hardware/interfaces/net/netd/1.0/
DINetd.hal27 enum StatusCode : int32_t {
48 createOemNetwork() generates (uint64_t networkHandle, uint32_t packetMark, StatusCode status);
57 destroyOemNetwork(uint64_t networkHandle) generates (StatusCode status);
/system/tools/aidl/tests/golden_output/aidl-test-interface-rust-source/gen/android/aidl/tests/unions/
DUnionInUnion.rs42 .unwrap_or(Err(binder::StatusCode::UNEXPECTED_NULL)) in deserialize()
61 Err(binder::StatusCode::BAD_VALUE) in deserialize_option()
DEnumUnion.rs42 .unwrap_or(Err(binder::StatusCode::UNEXPECTED_NULL)) in deserialize()
61 Err(binder::StatusCode::BAD_VALUE) in deserialize_option()

12