Home
last modified time | relevance | path

Searched refs:BinderStatusMatcher (Results 1 – 3 of 3) sorted by relevance

/frameworks/av/services/audiopolicy/permission/tests/
DNativePermissionControllerTest.cpp27 using android::error::BinderStatusMatcher;
55 IsErrorAnd(BinderStatusMatcher::hasException(EX_ILLEGAL_STATE))); in TEST_F()
57 IsErrorAnd(BinderStatusMatcher::hasException(EX_ILLEGAL_STATE))); in TEST_F()
66 IsErrorAnd(BinderStatusMatcher::hasException(EX_ILLEGAL_STATE))); in TEST_F()
77 EXPECT_THAT(controller_.populatePackagesForUids(input), BinderStatusMatcher::isOk()); in TEST_F()
81 IsErrorAnd(BinderStatusMatcher::hasException(EX_ILLEGAL_ARGUMENT))); in TEST_F()
90 EXPECT_THAT(controller_.populatePackagesForUids(input), BinderStatusMatcher::isOk()); in TEST_F()
105 EXPECT_THAT(controller_.populatePackagesForUids(input), BinderStatusMatcher::isOk()); in TEST_F()
106 EXPECT_THAT(controller_.updatePackagesForUid(newState), BinderStatusMatcher::isOk()); in TEST_F()
121 EXPECT_THAT(controller_.populatePackagesForUids(input), BinderStatusMatcher::isOk()); in TEST_F()
[all …]
DValidatedAttributionSourceStateTest.cpp34 using ::android::error::BinderStatusMatcher;
78 IsErrorAnd(BinderStatusMatcher::hasException(EX_SECURITY))); in TEST_F()
114 IsErrorAnd(BinderStatusMatcher::hasException(EX_ILLEGAL_STATE))); in TEST_F()
124 IsErrorAnd(BinderStatusMatcher::hasException(EX_ILLEGAL_ARGUMENT))); in TEST_F()
/frameworks/av/media/liberror/include/error/
DBinderStatusMatcher.h28 class BinderStatusMatcher {
32 explicit BinderStatusMatcher(binder::Status status) : status_(std::move(status)) {} in BinderStatusMatcher() function
34 static BinderStatusMatcher hasException(binder::Status::Exception ex) { in hasException()
35 return BinderStatusMatcher(binder::Status::fromExceptionCode(ex)); in hasException()
38 static BinderStatusMatcher isOk() { return BinderStatusMatcher(binder::Status::ok()); } in isOk()