12f1c7586bcce334ca69022eb8dc6d8965ceb6a05Eric Erfanian/*
22f1c7586bcce334ca69022eb8dc6d8965ceb6a05Eric Erfanian * Copyright (C) 2017 The Android Open Source Project
32f1c7586bcce334ca69022eb8dc6d8965ceb6a05Eric Erfanian *
42f1c7586bcce334ca69022eb8dc6d8965ceb6a05Eric Erfanian * Licensed under the Apache License, Version 2.0 (the "License");
52f1c7586bcce334ca69022eb8dc6d8965ceb6a05Eric Erfanian * you may not use this file except in compliance with the License.
62f1c7586bcce334ca69022eb8dc6d8965ceb6a05Eric Erfanian * You may obtain a copy of the License at
72f1c7586bcce334ca69022eb8dc6d8965ceb6a05Eric Erfanian *
82f1c7586bcce334ca69022eb8dc6d8965ceb6a05Eric Erfanian *      http://www.apache.org/licenses/LICENSE-2.0
92f1c7586bcce334ca69022eb8dc6d8965ceb6a05Eric Erfanian *
102f1c7586bcce334ca69022eb8dc6d8965ceb6a05Eric Erfanian * Unless required by applicable law or agreed to in writing, software
112f1c7586bcce334ca69022eb8dc6d8965ceb6a05Eric Erfanian * distributed under the License is distributed on an "AS IS" BASIS,
122f1c7586bcce334ca69022eb8dc6d8965ceb6a05Eric Erfanian * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
132f1c7586bcce334ca69022eb8dc6d8965ceb6a05Eric Erfanian * See the License for the specific language governing permissions and
142f1c7586bcce334ca69022eb8dc6d8965ceb6a05Eric Erfanian * limitations under the License
152f1c7586bcce334ca69022eb8dc6d8965ceb6a05Eric Erfanian */
162f1c7586bcce334ca69022eb8dc6d8965ceb6a05Eric Erfanian
172f1c7586bcce334ca69022eb8dc6d8965ceb6a05Eric Erfanianpackage com.android.dialer.notification;
182f1c7586bcce334ca69022eb8dc6d8965ceb6a05Eric Erfanian
192f1c7586bcce334ca69022eb8dc6d8965ceb6a05Eric Erfanianimport android.support.annotation.StringDef;
202f1c7586bcce334ca69022eb8dc6d8965ceb6a05Eric Erfanianimport java.lang.annotation.Retention;
212f1c7586bcce334ca69022eb8dc6d8965ceb6a05Eric Erfanianimport java.lang.annotation.RetentionPolicy;
222f1c7586bcce334ca69022eb8dc6d8965ceb6a05Eric Erfanian
232f1c7586bcce334ca69022eb8dc6d8965ceb6a05Eric Erfanian/** Centralized source of all notification channels used by Dialer. */
242f1c7586bcce334ca69022eb8dc6d8965ceb6a05Eric Erfanian@Retention(RetentionPolicy.SOURCE)
252f1c7586bcce334ca69022eb8dc6d8965ceb6a05Eric Erfanian@StringDef({
262f1c7586bcce334ca69022eb8dc6d8965ceb6a05Eric Erfanian  NotificationChannelId.INCOMING_CALL,
272f1c7586bcce334ca69022eb8dc6d8965ceb6a05Eric Erfanian  NotificationChannelId.ONGOING_CALL,
282f1c7586bcce334ca69022eb8dc6d8965ceb6a05Eric Erfanian  NotificationChannelId.MISSED_CALL,
292f1c7586bcce334ca69022eb8dc6d8965ceb6a05Eric Erfanian  NotificationChannelId.DEFAULT,
302f1c7586bcce334ca69022eb8dc6d8965ceb6a05Eric Erfanian})
312f1c7586bcce334ca69022eb8dc6d8965ceb6a05Eric Erfanianpublic @interface NotificationChannelId {
322f1c7586bcce334ca69022eb8dc6d8965ceb6a05Eric Erfanian  // This value is white listed in the system.
332f1c7586bcce334ca69022eb8dc6d8965ceb6a05Eric Erfanian  // See /vendor/google/nexus_overlay/common/frameworks/base/core/res/res/values/config.xml
342f1c7586bcce334ca69022eb8dc6d8965ceb6a05Eric Erfanian  String INCOMING_CALL = "phone_incoming_call";
352f1c7586bcce334ca69022eb8dc6d8965ceb6a05Eric Erfanian
362f1c7586bcce334ca69022eb8dc6d8965ceb6a05Eric Erfanian  String ONGOING_CALL = "phone_ongoing_call";
372f1c7586bcce334ca69022eb8dc6d8965ceb6a05Eric Erfanian
382f1c7586bcce334ca69022eb8dc6d8965ceb6a05Eric Erfanian  String MISSED_CALL = "phone_missed_call";
392f1c7586bcce334ca69022eb8dc6d8965ceb6a05Eric Erfanian
402f1c7586bcce334ca69022eb8dc6d8965ceb6a05Eric Erfanian  String DEFAULT = "phone_default";
412f1c7586bcce334ca69022eb8dc6d8965ceb6a05Eric Erfanian}
42