1 /*
2  * Copyright 2024 The Android Open Source Project
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  *      http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */
16 
17 package androidx.core.telecom.extensions
18 
19 /** Internal constants related to Extensions that do not need to be exposed as a public API. */
20 internal object Extensions {
21     internal const val LOG_TAG = "CallsManagerE"
22 
23     /**
24      * EVENT used by InCallService as part of sendCallEvent to notify the VOIP Application that this
25      * InCallService supports jetpack extensions
26      */
27     internal const val EVENT_JETPACK_CAPABILITY_EXCHANGE =
28         "android.telecom.event.CAPABILITY_EXCHANGE"
29 
30     /** VERSION used for handling future compatibility in capability exchange. */
31     internal const val EXTRA_CAPABILITY_EXCHANGE_VERSION =
32         "androidx.core.telecom.extensions.extra.CAPABILITY_EXCHANGE_VERSION"
33 
34     /**
35      * BINDER used for handling capability exchange between the ICS and VOIP app sides, sent as part
36      * of sendCallEvent in the included extras.
37      */
38     internal const val EXTRA_CAPABILITY_EXCHANGE_BINDER =
39         "androidx.core.telecom.extensions.extra.CAPABILITY_EXCHANGE_BINDER"
40 
41     /** Represents the [ParticipantExtension] extension */
42     internal const val PARTICIPANT = 1
43     /** Represents the [LocalCallSilenceExtension] extension */
44     internal const val LOCAL_CALL_SILENCE = 2
45     /** Represents the [CallIconExtension] extension */
46     internal const val CALL_ICON = 3
47     /** Represents a more lightweight [ParticipantExtension] extension */
48     internal const val MEETING_SUMMARY = 4
49 }
50