Home
last modified time | relevance | path

Searched refs:canAdd (Results 1 – 8 of 8) sorted by relevance

/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/qs/customize/
DTileAdapterDelegateTest.java130 when(mHolder.canAdd()).thenReturn(true); in testClickAddAction()
145 when(mHolder.canAdd()).thenReturn(false); in testClickRemoveAction()
161 when(mHolder.canAdd()).thenReturn(false); in testNoClickAction()
176 when(mHolder.canAdd()).thenReturn(true); in testAddToPositionAction()
186 when(mHolder.canAdd()).thenReturn(false); in testNoAddToPositionAction()
/frameworks/native/cmds/servicemanager/
Dtest_sm.cpp55 MOCK_METHOD2(canAdd, bool(const CallingContext&, const std::string& name));
70 ON_CALL(*access, canAdd(_, _)).WillByDefault(Return(true)); in getPermissiveServiceManager()
121 EXPECT_CALL(*access, canAdd(_, _)).Times(0); in TEST()
162 EXPECT_CALL(*access, canAdd(_, _)).WillOnce(Return(false)); in TEST()
194 EXPECT_CALL(*access, canAdd(_, _)).WillOnce(Return(true)); in TEST()
218 EXPECT_CALL(*access, canAdd(_, _)).WillOnce(Return(true)); in TEST()
242 EXPECT_CALL(*access, canAdd(_, _)).WillOnce(Return(true)); in TEST()
DAccess.h44 virtual bool canAdd(const CallingContext& ctx, const std::string& name);
DAccess.cpp117 bool Access::canAdd(const CallingContext& ctx, const std::string& name) { in canAdd() function in android::Access
DServiceManager.cpp254 if (!mAccess->canAdd(ctx, name)) { in addService()
500 if (!mAccess->canAdd(ctx, name)) { in registerClientCallback()
635 if (!mAccess->canAdd(ctx, name)) { in tryUnregisterService()
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/customize/
DTileAdapterDelegate.java105 if (holder.canAdd()) { in addClickAction()
144 if (holder.canAdd()) { in maybeAddActionAddToPosition()
DTileAdapter.java592 boolean canAdd() { in canAdd() method in TileAdapter.Holder
597 if (canAdd()) { in toggleState()
/frameworks/base/tools/aapt/
DResourceTable.cpp1912 bool canAdd = false; in startBag() local
1918 canAdd = true; in startBag()
1922 if (!canAdd) { in startBag()