Searched refs:CallingContext (Results 1 – 3 of 3) sorted by relevance
/frameworks/native/cmds/servicemanager/ |
D | Access.h | 35 struct CallingContext { struct 41 virtual CallingContext getCallingContext(); argument 43 virtual bool canFind(const CallingContext& ctx, const std::string& name); 44 virtual bool canAdd(const CallingContext& ctx, const std::string& name); 45 virtual bool canList(const CallingContext& ctx); 48 bool actionAllowed(const CallingContext& sctx, const char* tctx, const char* perm, 50 bool actionAllowedFromLookup(const CallingContext& sctx, const std::string& name,
|
D | Access.cpp | 65 const Access::CallingContext* context; 100 Access::CallingContext Access::getCallingContext() { in getCallingContext() 106 return CallingContext { in getCallingContext() 113 bool Access::canFind(const CallingContext& ctx,const std::string& name) { in canFind() 117 bool Access::canAdd(const CallingContext& ctx, const std::string& name) { in canAdd() 121 bool Access::canList(const CallingContext& ctx) { in canList() 125 bool Access::actionAllowed(const CallingContext& sctx, const char* tctx, const char* perm, in actionAllowed() 138 bool Access::actionAllowedFromLookup(const CallingContext& sctx, const std::string& name, const cha… in actionAllowedFromLookup()
|
D | test_sm.cpp | 54 MOCK_METHOD0(getCallingContext, CallingContext()); 55 MOCK_METHOD2(canAdd, bool(const CallingContext&, const std::string& name)); 56 MOCK_METHOD2(canFind, bool(const CallingContext&, const std::string& name)); 57 MOCK_METHOD1(canList, bool(const CallingContext&)); 69 ON_CALL(*access, getCallingContext()).WillByDefault(Return(Access::CallingContext{})); in getPermissiveServiceManager() 117 EXPECT_CALL(*access, getCallingContext()).WillOnce(Return(Access::CallingContext{ in TEST() 161 EXPECT_CALL(*access, getCallingContext()).WillOnce(Return(Access::CallingContext{})); in TEST() 193 EXPECT_CALL(*access, getCallingContext()).WillRepeatedly(Return(Access::CallingContext{})); in TEST() 213 .WillOnce(Return(Access::CallingContext{})) in TEST() 215 .WillOnce(Return(Access::CallingContext{ in TEST() [all …]
|