• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * Copyright (C) 2017 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 com.android.dialer.duo;
18 
19 import android.content.ComponentName;
20 import android.telecom.PhoneAccountHandle;
21 
22 /** Constants to reference the Duo application. */
23 public final class DuoConstants {
24   public static final String PACKAGE_NAME = "com.google.android.apps.tachyon";
25 
26   public static final String CONNECTION_SERVICE =
27       "com.google.android.apps.tachyon.telecom.TachyonTelecomConnectionService";
28 
29   public static final String PHONE_ACCOUNT_ID = "0";
30 
31   public static final ComponentName PHONE_ACCOUNT_COMPONENT_NAME =
32       new ComponentName(PACKAGE_NAME, CONNECTION_SERVICE);
33 
34   public static final PhoneAccountHandle PHONE_ACCOUNT_HANDLE =
35       new PhoneAccountHandle(PHONE_ACCOUNT_COMPONENT_NAME, PHONE_ACCOUNT_ID);
36 
37   public static final String DUO_ACTIVATE_ACTION =
38       "com.google.android.apps.tachyon.action.REGISTER";
39 
40   public static final String DUO_INVITE_ACTION = "com.google.android.apps.tachyon.action.INVITE";
41 
42   public static final String DUO_CALL_ACTION = "com.google.android.apps.tachyon.action.CALL";
43 
DuoConstants()44   private DuoConstants() {}
45 }
46