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.java64 ComponentName mCn = new ComponentName("a", "b"); field in BridgedAppsPreferenceControllerTest
99 mController.setCn(mCn); in setUp()
108 when(mNm.isNotificationListenerAccessGranted(mCn)).thenReturn(true); in onRebuildComplete_AddsToScreen()
109 when(mNm.getListenerFilter(mCn, 0)).thenReturn(new NotificationListenerFilter()); in onRebuildComplete_AddsToScreen()
122 when(mNm.isNotificationListenerAccessGranted(mCn)).thenReturn(true); in onRebuildComplete_doesNotReaddToScreen()
123 when(mNm.getListenerFilter(mCn, 0)).thenReturn(new NotificationListenerFilter()); in onRebuildComplete_doesNotReaddToScreen()
140 when(mNm.isNotificationListenerAccessGranted(mCn)).thenReturn(true); in onRebuildComplete_removesExtras()
141 when(mNm.getListenerFilter(mCn, 0)).thenReturn(new NotificationListenerFilter()); in onRebuildComplete_removesExtras()
158 when(mNm.isNotificationListenerAccessGranted(mCn)).thenReturn(true); in onRebuildComplete_buildsSetting()
159 when(mNm.getListenerFilter(mCn, 0)).thenReturn(new NotificationListenerFilter()); in onRebuildComplete_buildsSetting()
[all …]
DApprovalPreferenceControllerTest.java60 ComponentName mCn = new ComponentName("a", "b"); field in ApprovalPreferenceControllerTest
74 mController.setCn(mCn); in setUp()
82 when(mNm.isNotificationListenerAccessGranted(mCn)).thenReturn(true); in updateState_checked()
91 mController.enable(mCn); in enable()
97 verify(mNm).setNotificationListenerAccessGranted(mCn, true); in enable()
102 mController.disable(mCn); in disable()
108 verify(mNm).setNotificationListenerAccessGranted(mCn, false); in disable()
DPreUpgradePreferenceControllerTest.java52 ComponentName mCn = new ComponentName("a", "b"); field in PreUpgradePreferenceControllerTest
60 mController.setCn(mCn); in setUp()
77 when(mNm.getListenerFilter(mCn, 0)).thenReturn(new NotificationListenerFilter()); in testAvailable_lowTargetSdk_noCustomizations()
88 when(mNm.getListenerFilter(mCn, 0)).thenReturn(nlf); in testAvailable_lowTargetSdk_customizations()
97 when(mNm.getListenerFilter(mCn, 0)).thenReturn(new NotificationListenerFilter()); in testAvailable_highTargetSdk_noCustomizations()
DBridgedAppsLinkPreferenceControllerTest.java52 ComponentName mCn = new ComponentName("a", "b"); field in BridgedAppsLinkPreferenceControllerTest
60 mController.setCn(mCn); in setUp()
77 when(mNm.getListenerFilter(mCn, 0)).thenReturn(new NotificationListenerFilter()); in testAvailable_lowTargetSdk_noCustomizations()
88 when(mNm.getListenerFilter(mCn, 0)).thenReturn(nlf); in testAvailable_lowTargetSdk_customizations()
97 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()
DOngoingTypeFilterPreferenceControllerTest.java46 ComponentName mCn = new ComponentName("a", "b"); field in OngoingTypeFilterPreferenceControllerTest
55 mController.setCn(mCn); in setUp()
DAlertingTypeFilterPreferenceControllerTest.java46 ComponentName mCn = new ComponentName("a", "b"); field in AlertingTypeFilterPreferenceControllerTest
55 mController.setCn(mCn); in setUp()
DConversationTypeFilterPreferenceControllerTest.java46 ComponentName mCn = new ComponentName("a", "b"); field in ConversationTypeFilterPreferenceControllerTest
55 mController.setCn(mCn); in setUp()
/packages/apps/Settings/src/com/android/settings/applications/specialaccess/notificationaccess/
DApprovalPreferenceController.java40 private ComponentName mCn; field in ApprovalPreferenceController
55 mCn = cn; in setCn()
83 preference.setChecked(isServiceEnabled(mCn)); in updateState()
87 if (!isServiceEnabled(mCn)) { in updateState()
92 .setServiceInfo(mCn, label, mParent) in updateState()
96 if (isServiceEnabled(mCn)) { in updateState()
101 .setServiceInfo(mCn, label, mParent) 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.java27 private ComponentName mCn; field in BridgedAppsLinkPreferenceController
39 mCn = cn; in setCn()
60 if (mNm.isNotificationListenerAccessGranted(mCn)) { in getAvailabilityStatus()
65 mNlf = mNm.getListenerFilter(mCn, mUserId); in getAvailabilityStatus()
DPreUpgradePreferenceController.java29 private ComponentName mCn; field in PreUpgradePreferenceController
40 mCn = cn; in setCn()
61 if (mNm.isNotificationListenerAccessGranted(mCn)) { in getAvailabilityStatus()
62 mNlf = mNm.getListenerFilter(mCn, mUserId); in getAvailabilityStatus()
DBridgedAppsPreferenceController.java48 private ComponentName mCn; field in BridgedAppsPreferenceController
63 mCn = cn; in setCn()
118 mNlf = mNm.getListenerFilter(mCn, mUserId); in onRebuildComplete()
175 mNlf = mNm.getListenerFilter(mCn, mUserId); in onPreferenceChange()
181 mNm.setListenerFilter(mCn, mUserId, mNlf); in onPreferenceChange()
DHeaderPreferenceController.java50 private ComponentName mCn; field in HeaderPreferenceController
88 mCn = cn; in setCn()
118 mCdm, mBm, mCn.getPackageName(), mUserId)) in displayPreference()
/packages/apps/Settings/tests/robotests/src/com/android/settings/notification/
DNotificationBackendTest.java65 ComponentName mCn = new ComponentName("a", "b"); field in NotificationBackendTest
170 when(mCdm.getAssociations(mCn.getPackageName(), 0)).thenReturn(null); in getDeviceList_noAssociations()
182 mCdm, mBm, mCn.getPackageName(), 0).toString()).isEmpty(); in getDeviceList_noAssociations()
188 when(mCdm.getAssociations(mCn.getPackageName(), 0)).thenReturn(macs); in getDeviceList_associationsButNoDevice()
193 mCdm, mBm, mCn.getPackageName(), 0).toString()).isEmpty(); in getDeviceList_associationsButNoDevice()
199 when(mCdm.getAssociations(mCn.getPackageName(), 0)).thenReturn(macs); in getDeviceList_singleDevice()
209 mCdm, mBm, mCn.getPackageName(), 0).toString()).isEqualTo("Device 1"); in getDeviceList_singleDevice()
215 when(mCdm.getAssociations(mCn.getPackageName(), 0)).thenReturn(macs); in getDeviceList_multipleDevices()
230 mCdm, mBm, mCn.getPackageName(), 0).toString()).isEqualTo("Device 1, Device 2"); in getDeviceList_multipleDevices()
/packages/apps/Launcher3/src/com/android/launcher3/pm/
DShortcutConfigActivityInfo.java57 private final ComponentName mCn; field in ShortcutConfigActivityInfo
61 mCn = cn; in ShortcutConfigActivityInfo()
67 return mCn; in getComponent()