blob: 1dd75c4788bea79244f74b9b9863168131d2ed0a [file] [log] [blame]
Santos Cordon69a69192013-08-22 14:25:42 -07001/*
2 * Copyright (C) 2013 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
17package com.android.phone;
18
Santos Cordon69a69192013-08-22 14:25:42 -070019import android.net.Uri;
Santos Cordon69a69192013-08-22 14:25:42 -070020import android.text.TextUtils;
Santos Cordon69a69192013-08-22 14:25:42 -070021
22/**
Tyler Gunna1abb582018-09-14 16:12:01 -070023 * TODO: Not much of this class is even used any more. Need to unwind the RawGatewayInfo class as
24 * it is used in part of the placeCall method used in OTASP.
Santos Cordon69a69192013-08-22 14:25:42 -070025 */
26public class CallGatewayManager {
Santos Cordon69a69192013-08-22 14:25:42 -070027 public static final RawGatewayInfo EMPTY_INFO = new RawGatewayInfo(null, null, null);
28
Jay Shrauner21a75342013-11-25 16:14:43 -080029 private CallGatewayManager() {
Santos Cordon69a69192013-08-22 14:25:42 -070030 }
31
Santos Cordon69a69192013-08-22 14:25:42 -070032 public static class RawGatewayInfo {
33 public String packageName;
34 public Uri gatewayUri;
35 public String trueNumber;
36
37 public RawGatewayInfo(String packageName, Uri gatewayUri,
38 String trueNumber) {
39 this.packageName = packageName;
40 this.gatewayUri = gatewayUri;
41 this.trueNumber = trueNumber;
42 }
43
Santos Cordon69a69192013-08-22 14:25:42 -070044 public boolean isEmpty() {
45 return TextUtils.isEmpty(packageName) || gatewayUri == null;
46 }
47 }
48}