Home
last modified time | relevance | path

Searched refs:mCn (Results 1 – 17 of 17) sorted by relevance

/packages/apps/Settings/tests/unit/src/com/android/settings/applications/specialaccess/notificationaccess/
DTypeFilterPreferenceControllerTest.java64 ComponentName mCn = new ComponentName("a", "b"); field in TypeFilterPreferenceControllerTest
85 mController.setCn(mCn); in setUp()
104 when(mNm.getListenerFilter(mCn, 0)).thenReturn(new NotificationListenerFilter()); in testAvailable_lowTargetSdk_noCustomizations()
115 when(mNm.getListenerFilter(mCn, 0)).thenReturn(nlf); in testAvailable_lowTargetSdk_customizations()
124 when(mNm.getListenerFilter(mCn, 0)).thenReturn(new NotificationListenerFilter()); in testAvailable_highTargetSdk_noCustomizations()
131 when(mNm.isNotificationListenerAccessGranted(mCn)).thenReturn(true); in updateState_enabled_noMetaData()
132 when(mNm.getListenerFilter(mCn, 0)).thenReturn(new NotificationListenerFilter()); in updateState_enabled_noMetaData()
143 when(mNm.isNotificationListenerAccessGranted(mCn)).thenReturn(true); in updateState_enabled_metaData_notTheDisableFilter()
144 when(mNm.getListenerFilter(mCn, 0)).thenReturn(new NotificationListenerFilter()); in updateState_enabled_metaData_notTheDisableFilter()
156 when(mNm.isNotificationListenerAccessGranted(mCn)).thenReturn(true); in updateState_enabled_metaData_disableFilter_notThisField()
[all …]
DBridgedAppsPreferenceControllerTest.java63 ComponentName mCn = new ComponentName("a", "b"); field in BridgedAppsPreferenceControllerTest
97 mController.setCn(mCn); in setUp()
106 when(mNm.isNotificationListenerAccessGranted(mCn)).thenReturn(true); in onRebuildComplete_AddsToScreen()
107 when(mNm.getListenerFilter(mCn, 0)).thenReturn(new NotificationListenerFilter()); in onRebuildComplete_AddsToScreen()
120 when(mNm.isNotificationListenerAccessGranted(mCn)).thenReturn(true); in onRebuildComplete_doesNotReaddToScreen()
121 when(mNm.getListenerFilter(mCn, 0)).thenReturn(new NotificationListenerFilter()); in onRebuildComplete_doesNotReaddToScreen()
138 when(mNm.isNotificationListenerAccessGranted(mCn)).thenReturn(true); in onRebuildComplete_removesExtras()
139 when(mNm.getListenerFilter(mCn, 0)).thenReturn(new NotificationListenerFilter()); in onRebuildComplete_removesExtras()
156 when(mNm.isNotificationListenerAccessGranted(mCn)).thenReturn(true); in onRebuildComplete_buildsSetting()
157 when(mNm.getListenerFilter(mCn, 0)).thenReturn(new NotificationListenerFilter()); in onRebuildComplete_buildsSetting()
[all …]
DApprovalPreferenceControllerTest.java81 ComponentName mCn = new ComponentName("a", "b"); field in ApprovalPreferenceControllerTest
95 mController.setCn(mCn); in setUp()
105 when(mNm.isNotificationListenerAccessGranted(mCn)).thenReturn(true); in updateState_enabled()
136 when(mNm.isNotificationListenerAccessGranted(mCn)).thenReturn(true); in updateState_checked()
153 when(mNm.isNotificationListenerAccessGranted(mCn)).thenReturn(false); in restrictedSettings_appOpsDisabled()
170 when(mNm.isNotificationListenerAccessGranted(mCn)).thenReturn(true); in restrictedSettings_serviceAlreadyEnabled()
181 mController.enable(mCn); in enable()
187 verify(mNm).setNotificationListenerAccessGranted(mCn, true); in enable()
194 mController.disable(mCn); in disable()
200 verify(mNm).removeAutomaticZenRules(eq(mCn.getPackageName()), eq(true)); in disable()
[all …]
DPreUpgradePreferenceControllerTest.java52 ComponentName mCn = new ComponentName("a", "b"); field in PreUpgradePreferenceControllerTest
60 mController.setCn(mCn); in setUp()
68 when(mNm.getListenerFilter(mCn, 0)).thenReturn(new NotificationListenerFilter()); in testAvailable_lowTargetSdk_noCustomizations()
78 when(mNm.getListenerFilter(mCn, 0)).thenReturn(nlf); in testAvailable_lowTargetSdk_customizations()
86 when(mNm.getListenerFilter(mCn, 0)).thenReturn(new NotificationListenerFilter()); in testAvailable_highTargetSdk_noCustomizations()
DBridgedAppsLinkPreferenceControllerTest.java53 ComponentName mCn = new ComponentName("a", "b"); field in BridgedAppsLinkPreferenceControllerTest
61 mController.setCn(mCn); in setUp()
83 when(mNm.getListenerFilter(mCn, 0)).thenReturn(new NotificationListenerFilter()); in testAvailable_lowTargetSdk_noCustomizations()
99 when(mNm.getListenerFilter(mCn, 0)).thenReturn(nlf); in testAvailable_lowTargetSdk_customizations()
113 when(mNm.getListenerFilter(mCn, 0)).thenReturn(new NotificationListenerFilter()); in testAvailable_highTargetSdk_noCustomizations()
DSilentTypeFilterPreferenceControllerTest.java45 ComponentName mCn = new ComponentName("a", "b"); field in SilentTypeFilterPreferenceControllerTest
54 mController.setCn(mCn); in setUp()
DConversationTypeFilterPreferenceControllerTest.java46 ComponentName mCn = new ComponentName("a", "b"); field in ConversationTypeFilterPreferenceControllerTest
55 mController.setCn(mCn); in setUp()
DAlertingTypeFilterPreferenceControllerTest.java46 ComponentName mCn = new ComponentName("a", "b"); field in AlertingTypeFilterPreferenceControllerTest
55 mController.setCn(mCn); in setUp()
DOngoingTypeFilterPreferenceControllerTest.java46 ComponentName mCn = new ComponentName("a", "b"); field in OngoingTypeFilterPreferenceControllerTest
55 mController.setCn(mCn); in setUp()
/packages/apps/Settings/src/com/android/settings/applications/specialaccess/notificationaccess/
DApprovalPreferenceController.java41 private ComponentName mCn; field in ApprovalPreferenceController
58 mCn = cn; in setCn()
96 final boolean isAllowedCn = mCn.flattenToShortString().length() in updateState()
98 final boolean isEnabled = isServiceEnabled(mCn); in updateState()
103 if (!isServiceEnabled(mCn)) { in updateState()
108 .setServiceInfo(mCn, label, mParent) in updateState()
112 if (isServiceEnabled(mCn)) { in updateState()
117 .setServiceInfo(mCn, label, mParent) in updateState()
131 mCn.getPackageName()); in updateState()
135 mCn.getPackageName(), mPkgInfo.applicationInfo.uid, isAllowedCn, isEnabled); in updateState()
DTypeFilterPreferenceController.java45 private ComponentName mCn; field in TypeFilterPreferenceController
57 mCn = cn; in setCn()
85 if (mNm.isNotificationListenerAccessGranted(mCn)) { in getAvailabilityStatus()
90 mNlf = mNm.getListenerFilter(mCn, mUserId); in getAvailabilityStatus()
105 mNlf = mNm.getListenerFilter(mCn, mUserId); in onPreferenceChange()
116 mNm.setListenerFilter(mCn, mUserId, mNlf); in onPreferenceChange()
122 mNlf = mNm.getListenerFilter(mCn, mUserId); in updateState()
DBridgedAppsLinkPreferenceController.java28 private ComponentName mCn; field in BridgedAppsLinkPreferenceController
40 mCn = cn; in setCn()
61 if (mNm.isNotificationListenerAccessGranted(mCn)) { in getAvailabilityStatus()
65 mNlf = mNm.getListenerFilter(mCn, mUserId); in getAvailabilityStatus()
DBridgedAppsPreferenceController.java50 private ComponentName mCn; field in BridgedAppsPreferenceController
65 mCn = cn; in setCn()
120 mNlf = mNm.getListenerFilter(mCn, mUserId); in onRebuildComplete()
177 mNlf = mNm.getListenerFilter(mCn, mUserId); in onPreferenceChange()
183 mNm.setListenerFilter(mCn, mUserId, mNlf); in onPreferenceChange()
DPreUpgradePreferenceController.java29 private ComponentName mCn; field in PreUpgradePreferenceController
40 mCn = cn; in setCn()
61 mNlf = mNm.getListenerFilter(mCn, mUserId); in getAvailabilityStatus()
DHeaderPreferenceController.java50 private ComponentName mCn; field in HeaderPreferenceController
88 mCn = cn; in setCn()
117 mCdm, mBm, mCn.getPackageName(), mUserId)) in displayPreference()
/packages/apps/Settings/tests/robotests/src/com/android/settings/notification/
DNotificationBackendTest.java70 ComponentName mCn = new ComponentName("a", "b"); field in NotificationBackendTest
205 when(mCdm.getAssociations(mCn.getPackageName(), 0)).thenReturn(null); in getDeviceList_noAssociations()
217 mCdm, mBm, mCn.getPackageName(), 0).toString()).isEmpty(); in getDeviceList_noAssociations()
224 when(mCdm.getAssociations(mCn.getPackageName(), 0)).thenReturn(associations); in getDeviceList_associationsButNoDevice()
229 mCdm, mBm, mCn.getPackageName(), 0).toString()).isEmpty(); in getDeviceList_associationsButNoDevice()
236 when(mCdm.getAssociations(mCn.getPackageName(), 0)).thenReturn(associations); in getDeviceList_singleDevice()
246 mCdm, mBm, mCn.getPackageName(), 0).toString()).isEqualTo("Device 1"); in getDeviceList_singleDevice()
253 when(mCdm.getAssociations(mCn.getPackageName(), 0)).thenReturn(associations); in getDeviceList_multipleDevices()
268 mCdm, mBm, mCn.getPackageName(), 0).toString()).isEqualTo("Device 1, Device 2"); in getDeviceList_multipleDevices()
/packages/apps/Launcher3/src/com/android/launcher3/pm/
DShortcutConfigActivityInfo.java59 private final ComponentName mCn; field in ShortcutConfigActivityInfo
63 mCn = cn; in ShortcutConfigActivityInfo()
69 return mCn; in getComponent()