Home | History | Annotate | Download | only in policy
      1 /*
      2  * Copyright (C) 2015 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 package com.android.systemui.statusbar.policy;
     17 
     18 import android.telephony.SubscriptionInfo;
     19 
     20 import com.android.systemui.statusbar.policy.NetworkController.IconState;
     21 import com.android.systemui.statusbar.policy.NetworkController.SignalCallback;
     22 
     23 import java.util.List;
     24 
     25 
     26 /**
     27  * Provides empty implementations of SignalCallback for those that only want some of
     28  * the callbacks.
     29  */
     30 public class SignalCallbackAdapter implements SignalCallback {
     31 
     32     @Override
     33     public void setWifiIndicators(boolean enabled, IconState statusIcon, IconState qsIcon,
     34             boolean activityIn, boolean activityOut, String description) {
     35     }
     36 
     37     @Override
     38     public void setMobileDataIndicators(IconState statusIcon, IconState qsIcon, int statusType,
     39             int qsType, boolean activityIn, boolean activityOut, String typeContentDescription,
     40             String description, boolean isWide, int subId) {
     41     }
     42 
     43     @Override
     44     public void setSubs(List<SubscriptionInfo> subs) {
     45     }
     46 
     47     @Override
     48     public void setNoSims(boolean show) {
     49     }
     50 
     51     @Override
     52     public void setEthernetIndicators(IconState icon) {
     53     }
     54 
     55     @Override
     56     public void setIsAirplaneMode(IconState icon) {
     57     }
     58 
     59     @Override
     60     public void setMobileDataEnabled(boolean enabled) {
     61     }
     62 
     63 }
     64