blob: 346c75da6a89cc60d4e8a462b33debd1f183e663 [file] [log] [blame]
Fabian Kozynskia48d2d02019-02-27 11:36:02 -05001/*
2 * Copyright (C) 2019 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.systemui.qs;
18
Fabian Kozynskia48d2d02019-02-27 11:36:02 -050019import android.content.Context;
Fabian Kozynskia48d2d02019-02-27 11:36:02 -050020import android.util.AttributeSet;
Fabian Kozynskia48d2d02019-02-27 11:36:02 -050021import android.view.View;
22import android.widget.LinearLayout;
Fabian Kozynski0f49f202019-08-29 09:47:07 -040023import android.widget.TextView;
Fabian Kozynskia48d2d02019-02-27 11:36:02 -050024
Fabian Kozynskia48d2d02019-02-27 11:36:02 -050025import com.android.systemui.R;
Fabian Kozynskia48d2d02019-02-27 11:36:02 -050026
27/**
28 * Displays Carrier name and network status in QS
29 */
Dave Mankoffc4fe6c42019-11-18 17:03:29 -050030public class QSCarrierGroup extends LinearLayout {
Fabian Kozynskia48d2d02019-02-27 11:36:02 -050031 public QSCarrierGroup(Context context, AttributeSet attrs) {
Dave Mankoffc4fe6c42019-11-18 17:03:29 -050032 super(context, attrs);
Fabian Kozynskib1aee812019-04-04 14:17:48 -040033 }
34
Dave Mankoffc4fe6c42019-11-18 17:03:29 -050035 TextView getNoSimTextView() {
36 return findViewById(R.id.no_carrier_text);
Fabian Kozynskia48d2d02019-02-27 11:36:02 -050037 }
38
Dave Mankoffc4fe6c42019-11-18 17:03:29 -050039 QSCarrier getCarrier1View() {
40 return findViewById(R.id.carrier1);
Fabian Kozynskia48d2d02019-02-27 11:36:02 -050041 }
42
Dave Mankoffc4fe6c42019-11-18 17:03:29 -050043 QSCarrier getCarrier2View() {
44 return findViewById(R.id.carrier2);
Fabian Kozynskia48d2d02019-02-27 11:36:02 -050045 }
46
Dave Mankoffc4fe6c42019-11-18 17:03:29 -050047 QSCarrier getCarrier3View() {
48 return findViewById(R.id.carrier3);
Fabian Kozynskia48d2d02019-02-27 11:36:02 -050049 }
50
Dave Mankoffc4fe6c42019-11-18 17:03:29 -050051 View getCarrierDivider1() {
52 return findViewById(R.id.qs_carrier_divider1);
Fabian Kozynskia48d2d02019-02-27 11:36:02 -050053 }
54
Dave Mankoffc4fe6c42019-11-18 17:03:29 -050055 View getCarrierDivider2() {
56 return findViewById(R.id.qs_carrier_divider2);
Fabian Kozynskibeeec062019-09-24 10:34:00 -040057 }
Fabian Kozynskia48d2d02019-02-27 11:36:02 -050058}