Home
last modified time | relevance | path

Searched refs:Status (Results 1 – 25 of 229) sorted by relevance

12345678910

/system/vold/
DVoldNativeService.h34 binder::Status setListener(const android::sp<android::os::IVoldListener>& listener);
36 binder::Status monitor();
37 binder::Status reset();
38 binder::Status shutdown();
40 binder::Status onUserAdded(int32_t userId, int32_t userSerial);
41 binder::Status onUserRemoved(int32_t userId);
42 binder::Status onUserStarted(int32_t userId);
43 binder::Status onUserStopped(int32_t userId);
45 binder::Status addAppIds(const std::vector<std::string>& packageNames,
47 binder::Status addSandboxIds(const std::vector<int32_t>& appIds,
[all …]
DVoldNativeServiceValidation.cpp33 binder::Status Ok() { in Ok()
34 return binder::Status::ok(); in Ok()
37 binder::Status Exception(uint32_t code, const std::string& msg) { in Exception()
38 return binder::Status::fromExceptionCode(code, String8(msg.c_str())); in Exception()
41 binder::Status CheckPermission(const char* permission) { in CheckPermission()
49 return Exception(binder::Status::EX_SECURITY, in CheckPermission()
54 binder::Status CheckUidOrRoot(uid_t expectedUid) { in CheckUidOrRoot()
59 return Exception(binder::Status::EX_SECURITY, in CheckUidOrRoot()
64 binder::Status CheckArgumentId(const std::string& id) { in CheckArgumentId()
66 return Exception(binder::Status::EX_ILLEGAL_ARGUMENT, "Missing ID"); in CheckArgumentId()
[all …]
DVoldNativeService.cpp57 static binder::Status error(const std::string& msg) { in error()
59 return binder::Status::fromServiceSpecificError(errno, String8(msg.c_str())); in error()
62 static binder::Status translate(int status) { in translate()
64 return binder::Status::ok(); in translate()
66 return binder::Status::fromServiceSpecificError(status); in translate()
70 static binder::Status translateBool(bool status) { in translateBool()
72 return binder::Status::ok(); in translateBool()
74 return binder::Status::fromServiceSpecificError(status); in translateBool()
80 binder::Status status = CheckUidOrRoot(AID_SYSTEM); \
88 binder::Status status = CheckArgumentId((id)); \
[all …]
DCheckpoint.h26 android::binder::Status cp_supportsCheckpoint(bool& result);
28 android::binder::Status cp_supportsBlockCheckpoint(bool& result);
30 android::binder::Status cp_supportsFileCheckpoint(bool& result);
32 android::binder::Status cp_startCheckpoint(int retry);
34 android::binder::Status cp_commitChanges();
44 android::binder::Status cp_prepareCheckpoint();
46 android::binder::Status cp_restoreCheckpoint(const std::string& mountPoint, int count = 0);
48 android::binder::Status cp_markBootAttempt();
/system/netd/server/
DNetdNativeService.h37 binder::Status isAlive(bool *alive) override;
40 binder::Status firewallReplaceUidChain(const std::string& chainName, bool isAllowlist,
42 binder::Status firewallSetFirewallType(int32_t firewallType) override;
43 binder::Status firewallSetInterfaceRule(const std::string& ifName,
45 binder::Status firewallSetUidRule(int32_t childChain, int32_t uid,
47 binder::Status firewallEnableChildChain(int32_t childChain, bool enable) override;
48 binder::Status firewallAddUidInterfaceRules(const std::string& ifName,
50 binder::Status firewallRemoveUidInterfaceRules(const std::vector<int32_t>& uids) override;
53 binder::Status bandwidthEnableDataSaver(bool enable, bool *ret) override;
54 binder::Status bandwidthSetInterfaceQuota(const std::string& ifName, int64_t bytes) override;
[all …]
DNetdNativeService.cpp70 binder::Status checkAnyPermission(const std::vector<const char*>& permissions) { in checkAnyPermission()
86 return binder::Status::ok(); in checkAnyPermission()
94 return binder::Status::ok(); in checkAnyPermission()
101 return binder::Status::ok(); in checkAnyPermission()
107 return binder::Status::fromExceptionCode(binder::Status::EX_SECURITY, err.c_str()); in checkAnyPermission()
112 binder::Status status = checkAnyPermission({__VA_ARGS__}); \
135 void logErrorStatus(netdutils::LogEntry& logEntry, const netdutils::Status& status) { in logErrorStatus()
139 binder::Status asBinderStatus(const netdutils::Status& status) { in asBinderStatus()
141 return binder::Status::ok(); in asBinderStatus()
143 return binder::Status::fromServiceSpecificError(status.code(), status.msg().c_str()); in asBinderStatus()
[all …]
/system/connectivity/wificond/
Dclient_interface_binder.cpp30 using android::binder::Status;
45 Status ClientInterfaceBinder::getPacketCounters( in getPacketCounters()
48 return Status::ok(); in getPacketCounters()
51 return Status::ok(); in getPacketCounters()
54 Status ClientInterfaceBinder::signalPoll( in signalPoll()
57 return Status::ok(); in signalPoll()
60 return Status::ok(); in signalPoll()
63 Status ClientInterfaceBinder::getMacAddress(vector<uint8_t>* out_mac_address) { in getMacAddress()
65 return Status::ok(); in getMacAddress()
69 return Status::ok(); in getMacAddress()
[all …]
/system/tools/aidl/tests/
Daidl_test_service.cpp68 using android::binder::Status;
105 Status GetName(String16* ret) { in GetName()
107 return Status::ok(); in GetName()
131 Status RepeatBoolean(bool token, bool* _aidl_return) override { in RepeatBoolean()
134 return Status::ok(); in RepeatBoolean()
136 Status RepeatByte(int8_t token, int8_t* _aidl_return) override { in RepeatByte()
139 return Status::ok(); in RepeatByte()
141 Status RepeatChar(char16_t token, char16_t* _aidl_return) override { in RepeatChar()
144 return Status::ok(); in RepeatChar()
146 Status RepeatInt(int32_t token, int32_t* _aidl_return) override { in RepeatInt()
[all …]
/system/libhidl/base/
DStatus.cpp31 case Status::Exception::EXCEPTION: \ in exceptionToString()
50 Status Status::ok() { in ok()
51 return Status(); in ok()
54 Status Status::fromExceptionCode(int32_t exceptionCode) { in fromExceptionCode()
56 return Status(exceptionCode, FAILED_TRANSACTION); in fromExceptionCode()
58 return Status(exceptionCode, OK); in fromExceptionCode()
61 Status Status::fromExceptionCode(int32_t exceptionCode, in fromExceptionCode()
64 return Status(exceptionCode, FAILED_TRANSACTION, message); in fromExceptionCode()
66 return Status(exceptionCode, OK, message); in fromExceptionCode()
69 Status Status::fromStatusT(status_t status) { in fromStatusT()
[all …]
/system/bt/service/ipc/binder/
Dbluetooth_binder_server.cc55 Status BluetoothBinderServer::IsEnabled(bool* _aidl_return) { in IsEnabled()
58 return Status::ok(); in IsEnabled()
61 Status BluetoothBinderServer::GetState(int32_t* _aidl_return) { in GetState()
64 return Status::ok(); in GetState()
67 Status BluetoothBinderServer::Enable(bool* _aidl_return) { in Enable()
70 return Status::ok(); in Enable()
73 Status BluetoothBinderServer::EnableNoAutoConnect(bool* _aidl_return) { in EnableNoAutoConnect()
77 return Status::ok(); in EnableNoAutoConnect()
80 Status BluetoothBinderServer::Disable(bool* _aidl_return) { in Disable()
83 return Status::ok(); in Disable()
[all …]
Dbluetooth_binder_server.h43 using android::binder::Status;
72 Status IsEnabled(bool* _aidl_return) override;
73 Status GetState(int32_t* _aidl_return) override;
74 Status Enable(bool* _aidl_return) override;
75 Status EnableNoAutoConnect(bool* _aidl_return) override;
76 Status Disable(bool* _aidl_return) override;
78 Status GetAddress(::android::String16* _aidl_return) override;
79 Status GetUUIDs(
81 Status SetName(const ::android::String16& name, bool* _aidl_return) override;
82 Status GetName(::android::String16* _aidl_return) override;
[all …]
Dbluetooth_a2dp_sink_binder_server.cc24 using android::binder::Status;
37 Status BluetoothA2dpSinkBinderServer::Register( in Register()
42 return Status::ok(); in Register()
45 Status BluetoothA2dpSinkBinderServer::Unregister() { in Unregister()
47 return Status::ok(); in Unregister()
50 Status BluetoothA2dpSinkBinderServer::Enable(bool* _aidl_return) { in Enable()
56 return Status::ok(); in Enable()
62 return Status::ok(); in Enable()
66 return Status::ok(); in Enable()
69 Status BluetoothA2dpSinkBinderServer::Disable(bool* _aidl_return) { in Disable()
[all …]
Dbluetooth_avrcp_control_binder_server.cc26 using android::binder::Status;
42 Status BluetoothAvrcpControlBinderServer::Register( in Register()
51 return Status::ok(); in Register()
54 Status BluetoothAvrcpControlBinderServer::Unregister(int32_t id) { in Unregister()
57 return Status::ok(); in Unregister()
60 Status BluetoothAvrcpControlBinderServer::UnregisterAll() { in UnregisterAll()
63 return Status::ok(); in UnregisterAll()
66 Status BluetoothAvrcpControlBinderServer::Enable(int32_t id, in Enable()
73 return Status::ok(); in Enable()
79 return Status::ok(); in Enable()
[all …]
/system/nvram/hal/
Dfake_nvram_storage.cpp65 nvram::storage::Status DeleteFile(const char* name) { in DeleteFile()
68 return nvram::storage::Status::kNotFound; in DeleteFile()
71 return nvram::storage::Status::kStorageError; in DeleteFile()
74 return nvram::storage::Status::kSuccess; in DeleteFile()
78 nvram::storage::Status LoadFile(const char* name, nvram::Blob* blob) { in LoadFile()
83 return nvram::storage::Status::kNotFound; in LoadFile()
86 return nvram::storage::Status::kStorageError; in LoadFile()
92 return nvram::storage::Status::kStorageError; in LoadFile()
97 return nvram::storage::Status::kStorageError; in LoadFile()
102 return nvram::storage::Status::kStorageError; in LoadFile()
[all …]
Dmemory_storage.cpp30 Status Load(Blob* blob) const { in Load()
32 return Status::kNotFound; in Load()
36 return Status::kStorageError; in Load()
39 return Status::kSuccess; in Load()
42 Status Store(const Blob& blob) { in Store()
44 return Status::kStorageError; in Store()
47 return Status::kSuccess; in Store()
50 Status Delete() { in Delete()
51 return blob_.Resize(0) ? Status::kSuccess : Status::kStorageError; in Delete()
81 Status LoadHeader(Blob* blob) { in LoadHeader()
[all …]
/system/netd/libnetdutils/include/netdutils/
DStatus.h36 class [[nodiscard]] Status {
38 Status() = default;
39 explicit Status(int code) : mCode(code) {} in Status() function
42 Status(int code, std::string msg) : mCode(code), mMsg(std::move(msg)) { assert(!ok()); } in Status() function
44 Status(android::base::Result<void> result) in Status() function
57 bool operator==(const Status& other) const { return code() == other.code(); }
58 bool operator!=(const Status& other) const { return !(*this == other); }
67 const Status ok{0};
70 const Status eof{0x10001, "end of file"};
71 const Status undefined{std::numeric_limits<int>::max(), "undefined"};
[all …]
/system/gsid/
Dgsi_service.h41 binder::Status openInstall(const std::string& install_dir, int* _aidl_return) override;
42 binder::Status closeInstall(int32_t* _aidl_return) override;
43 binder::Status createPartition(const ::std::string& name, int64_t size, bool readOnly,
45 binder::Status commitGsiChunkFromStream(const ::android::os::ParcelFileDescriptor& stream,
47 binder::Status getInstallProgress(::android::gsi::GsiProgress* _aidl_return) override;
48 binder::Status setGsiAshmem(const ::android::os::ParcelFileDescriptor& ashmem, int64_t size,
50 binder::Status commitGsiChunkFromAshmem(int64_t bytes, bool* _aidl_return) override;
51 binder::Status cancelGsiInstall(bool* _aidl_return) override;
52 binder::Status enableGsi(bool oneShot, const std::string& dsuSlot, int* _aidl_return) override;
53 binder::Status enableGsiAsync(bool oneShot, const ::std::string& dsuSlot,
[all …]
Dgsi_service.cpp85 binder::Status status = CheckUid(); \
91 binder::Status status = CheckUid(AccessLevel::SystemOrShell); \
114 binder::Status GsiService::openInstall(const std::string& install_dir, int* _aidl_return) { in openInstall()
119 return binder::Status::ok(); in openInstall()
124 return binder::Status::ok(); in openInstall()
133 return binder::Status::ok(); in openInstall()
136 binder::Status GsiService::closeInstall(int* _aidl_return) { in closeInstall()
146 return binder::Status::ok(); in closeInstall()
149 binder::Status GsiService::createPartition(const ::std::string& name, int64_t size, bool readOnly, in createPartition()
157 return binder::Status::ok(); in createPartition()
[all …]
/system/netd/libnetdutils/
DStatusTest.cpp30 EXPECT_EQ(status::ok, Status()); in TEST()
33 Status status1(1); in TEST()
34 Status status2(status1); // NOLINT(performance-unnecessary-copy-initialization) in TEST()
38 Status status3; in TEST()
43 const Status status4(4); in TEST()
44 const Status status5(status4); // NOLINT(performance-unnecessary-copy-initialization) in TEST()
45 Status status6; in TEST()
51 Status s(42, "for tea too"); in TEST()
59 EXPECT_TRUE(std::is_nothrow_move_constructible<Status>::value); in TEST()
60 EXPECT_TRUE(std::is_nothrow_move_assignable<Status>::value); in TEST()
[all …]
/system/nvram/core/
Dpersistence.cpp46 storage::Status EncodeObject(const Object& object, Blob* blob) { in EncodeObject()
53 return storage::Status::kStorageError; in EncodeObject()
55 return storage::Status::kSuccess; in EncodeObject()
67 storage::Status DecodeObject(const Blob& blob, Object* object) { in DecodeObject()
74 return storage::Status::kStorageError; in DecodeObject()
76 return storage::Status::kSuccess; in DecodeObject()
99 storage::Status LoadHeader(NvramHeader* header) { in LoadHeader()
101 storage::Status status = storage::LoadHeader(&blob); in LoadHeader()
102 if (status != storage::Status::kSuccess) { in LoadHeader()
108 storage::Status StoreHeader(const NvramHeader& header) { in StoreHeader()
[all …]
/system/netd/tests/
DTestUnsolService.cpp82 binder::Status TestUnsolService::onInterfaceClassActivityChanged(bool isActive, int label, in onInterfaceClassActivityChanged()
86 return binder::Status::ok(); in onInterfaceClassActivityChanged()
89 binder::Status TestUnsolService::onQuotaLimitReached(const std::string& alertName, in onQuotaLimitReached()
92 return binder::Status::ok(); in onQuotaLimitReached()
95 binder::Status TestUnsolService::onInterfaceDnsServerInfo(const std::string& ifName, in onInterfaceDnsServerInfo()
100 return binder::Status::ok(); in onInterfaceDnsServerInfo()
103 binder::Status TestUnsolService::onInterfaceAddressUpdated(const std::string&, in onInterfaceAddressUpdated()
106 return binder::Status::ok(); in onInterfaceAddressUpdated()
109 binder::Status TestUnsolService::onInterfaceAddressRemoved(const std::string& addr, in onInterfaceAddressRemoved()
114 return binder::Status::ok(); in onInterfaceAddressRemoved()
[all …]
/system/nvram/core/tests/
Dfake_storage.cpp31 Status Load(Blob* blob) { in Load()
33 return Status::kStorageError; in Load()
37 return Status::kNotFound; in Load()
41 return Status::kSuccess; in Load()
44 Status Store(const Blob& blob) { in Store()
46 return Status::kStorageError; in Store()
51 return Status::kSuccess; in Store()
54 Status Delete() { in Delete()
56 return Status::kStorageError; in Delete()
61 return Status::kSuccess; in Delete()
[all …]
/system/extras/profcollectd/libprofcollectd/
Dbinder_service.cpp29 using ::android::binder::Status;
34 Status HandleIfError(const std::function<OptError()>& action) { in HandleIfError()
38 return Status::fromExceptionCode(1, errmsg.value().c_str()); in HandleIfError()
40 return Status::ok(); in HandleIfError()
50 Status ProfcollectdBinder::ReadConfig() { in ReadConfig()
54 Status ProfcollectdBinder::ScheduleCollection() { in ScheduleCollection()
58 Status ProfcollectdBinder::TerminateCollection() { in TerminateCollection()
62 Status ProfcollectdBinder::TraceOnce(const std::string& tag) { in TraceOnce()
66 Status ProfcollectdBinder::ProcessProfile() { in ProcessProfile()
70 Status ProfcollectdBinder::GetSupportedProvider(std::string* provider) { in GetSupportedProvider()
/system/update_engine/
Dbinder_service_android.cc27 using android::binder::Status;
35 Status ErrorPtrToStatus(const brillo::ErrorPtr& error) { in ErrorPtrToStatus()
36 return Status::fromServiceSpecificError( in ErrorPtrToStatus()
73 Status BinderUpdateEngineAndroidService::bind( in bind()
85 return Status::ok(); in bind()
102 return Status::ok(); in bind()
105 Status BinderUpdateEngineAndroidService::unbind( in unbind()
113 return Status::ok(); in unbind()
116 Status BinderUpdateEngineAndroidService::applyPayload( in applyPayload()
129 return Status::ok(); in applyPayload()
[all …]
/system/libhidl/base/include/hidl/
DStatus.h55 class Status final {
78 static Status ok();
86 static Status fromExceptionCode(int32_t exceptionCode);
87 static Status fromExceptionCode(int32_t exceptionCode,
89 static Status fromStatusT(status_t status);
91 Status() = default;
92 ~Status() = default;
95 Status(const Status& status) = default;
96 Status(Status&& status) = default;
97 Status& operator=(const Status& status) = default;
[all …]

12345678910