Home
last modified time | relevance | path

Searched refs:channel2 (Results 1 – 4 of 4) sorted by relevance

/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/notification/row/
DChannelEditorDialogControllerTest.kt56 private lateinit var channel2: NotificationChannel variable in com.android.systemui.statusbar.notification.row.ChannelEditorDialogControllerTest
76 channel2 = NotificationChannel(TEST_CHANNEL2, TEST_CHANNEL_NAME2, IMPORTANCE_NONE) in setup()
93 channel2.group = group.id in testPrepareDialogForApp_noExtraChannels()
94 group.channels = listOf(channel1, channel2) in testPrepareDialogForApp_noExtraChannels()
126 group.channels = listOf(channel1, channel2, channel4, channel5) in testPrepareDialogForApp_AddsAllChannelsAllGroups()
138 group.channels = listOf(channel1, channel2) in testApply_demoteChannel()
152 IMPORTANCE_NONE, channel2.importance) in testApply_demoteChannel()
157 group.channels = listOf(channel1, channel2) in testApply_promoteChannel()
162 controller.proposeEditForChannel(channel2, IMPORTANCE_DEFAULT) in testApply_promoteChannel()
167 IMPORTANCE_DEFAULT, channel2.importance) in testApply_promoteChannel()
[all …]
/frameworks/base/services/tests/uiservicestests/src/com/android/server/notification/
DPreferencesHelperTest.java591 NotificationChannel channel2 = in testChannelXml() local
593 channel2.setDescription("descriptions for all"); in testChannelXml()
594 channel2.setSound(new Uri.Builder().scheme("test").build(), mAudioAttributes); in testChannelXml()
595 channel2.enableLights(true); in testChannelXml()
596 channel2.setBypassDnd(true); in testChannelXml()
597 channel2.setLockscreenVisibility(VISIBILITY_SECRET); in testChannelXml()
598 channel2.enableVibration(true); in testChannelXml()
599 channel2.setGroup(ncg.getId()); in testChannelXml()
600 channel2.setVibrationPattern(new long[]{100, 67, 145, 156}); in testChannelXml()
601 channel2.setLightColor(Color.BLUE); in testChannelXml()
[all …]
DNotificationManagerServiceTest.java1530 final NotificationChannel channel2 = in testCreateNotificationChannels_TwoChannels() local
1533 new ParceledListSlice(Arrays.asList(channel1, channel2))); in testCreateNotificationChannels_TwoChannels()
1604 final NotificationChannel channel2 = in testCreateNotificationChannels_IdenticalChannelsInListIgnoresSecond() local
1607 new ParceledListSlice(Arrays.asList(channel1, channel2))); in testCreateNotificationChannels_IdenticalChannelsInListIgnoresSecond()
3960 NotificationChannel channel2 = new NotificationChannel("a", "b", IMPORTANCE_LOW); in testCreateChannelNotifyListener() local
3962 eq(channel2.getId()), anyBoolean())) in testCreateChannelNotifyListener()
3963 .thenReturn(channel2); in testCreateChannelNotifyListener()
3965 eq(channel2), anyBoolean(), anyBoolean(), anyInt(), anyBoolean())) in testCreateChannelNotifyListener()
3970 new ParceledListSlice(Arrays.asList(mTestNotificationChannel, channel2))); in testCreateChannelNotifyListener()
3975 eq(Process.myUserHandle()), eq(channel2), in testCreateChannelNotifyListener()
[all …]
/frameworks/base/core/tests/coretests/src/android/app/
DNotificationChannelTest.java537 NotificationChannel channel2 = new NotificationChannel("id", "name", 3); in testEqualityDependsOnVibration() local
538 assertThat(channel1).isEqualTo(channel2); in testEqualityDependsOnVibration()
543 channel2.setVibrationEffect(effect); in testEqualityDependsOnVibration()
544 assertThat(channel1).isEqualTo(channel2); in testEqualityDependsOnVibration()
547 channel2.setVibrationPattern(pattern); in testEqualityDependsOnVibration()
548 assertThat(channel1).isEqualTo(channel2); in testEqualityDependsOnVibration()
551 channel2.setVibrationEffect(VibrationEffect.createWaveform(pattern, /* repeat= */ -1)); in testEqualityDependsOnVibration()
553 assertThat(channel1).isEqualTo(channel2); in testEqualityDependsOnVibration()
556 channel2.setVibrationPattern(pattern); in testEqualityDependsOnVibration()
557 assertThat(channel1).isNotEqualTo(channel2); in testEqualityDependsOnVibration()