WearAccessibilityApp/Wearable/src/main/java/com/example/android/wearable/wear/wearaccessibilityapp/NotificationsActivity.java [319:343]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
            if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O) {

                // The id of the channel.
                String channelId = mockNotificationData.getChannelId();

                // The user-visible name of the channel.
                CharSequence channelName = mockNotificationData.getChannelName();
                // The user-visible description of the channel.
                String channelDescription = mockNotificationData.getChannelDescription();
                int channelImportance = mockNotificationData.getChannelImportance();
                boolean channelEnableVibrate = mockNotificationData.isChannelEnableVibrate();
                int channelLockscreenVisibility =
                        mockNotificationData.getChannelLockscreenVisibility();

                // Initializes NotificationChannel.
                NotificationChannel notificationChannel =
                        new NotificationChannel(channelId, channelName, channelImportance);
                notificationChannel.setDescription(channelDescription);
                notificationChannel.enableVibration(channelEnableVibrate);
                notificationChannel.setLockscreenVisibility(channelLockscreenVisibility);

                // Adds NotificationChannel to system. Attempting to create an existing notification
                // channel with its original values performs no operation, so it's safe to perform
                // the below sequence.
                NotificationManager notificationManager =
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



WearAccessibilityApp/Wearable/src/main/java/com/example/android/wearable/wear/wearaccessibilityapp/util/NotificationUtil.java [43:67]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
        if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O) {

            // The id of the channel.
            String channelId = mockNotificationData.getChannelId();

            // The user-visible name of the channel.
            CharSequence channelName = mockNotificationData.getChannelName();
            // The user-visible description of the channel.
            String channelDescription = mockNotificationData.getChannelDescription();
            int channelImportance = mockNotificationData.getChannelImportance();
            boolean channelEnableVibrate = mockNotificationData.isChannelEnableVibrate();
            int channelLockscreenVisibility =
                    mockNotificationData.getChannelLockscreenVisibility();

            // Initializes NotificationChannel.
            NotificationChannel notificationChannel =
                    new NotificationChannel(channelId, channelName, channelImportance);
            notificationChannel.setDescription(channelDescription);
            notificationChannel.enableVibration(channelEnableVibrate);
            notificationChannel.setLockscreenVisibility(channelLockscreenVisibility);

            // Adds NotificationChannel to system. Attempting to create an existing notification
            // channel with its original values performs no operation, so it's safe to perform the
            // below sequence.
            NotificationManager notificationManager =
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



