1ca7861c8ce16f632aa0026910b0f6dc5db0ad812Alan Viverette/* 2ca7861c8ce16f632aa0026910b0f6dc5db0ad812Alan Viverette * Copyright (C) 2016 The Android Open Source Project 3ca7861c8ce16f632aa0026910b0f6dc5db0ad812Alan Viverette * 4ca7861c8ce16f632aa0026910b0f6dc5db0ad812Alan Viverette * Licensed under the Apache License, Version 2.0 (the "License"); 5ca7861c8ce16f632aa0026910b0f6dc5db0ad812Alan Viverette * you may not use this file except in compliance with the License. 6ca7861c8ce16f632aa0026910b0f6dc5db0ad812Alan Viverette * You may obtain a copy of the License at 7ca7861c8ce16f632aa0026910b0f6dc5db0ad812Alan Viverette * 8ca7861c8ce16f632aa0026910b0f6dc5db0ad812Alan Viverette * http://www.apache.org/licenses/LICENSE-2.0 9ca7861c8ce16f632aa0026910b0f6dc5db0ad812Alan Viverette * 10ca7861c8ce16f632aa0026910b0f6dc5db0ad812Alan Viverette * Unless required by applicable law or agreed to in writing, software 11ca7861c8ce16f632aa0026910b0f6dc5db0ad812Alan Viverette * distributed under the License is distributed on an "AS IS" BASIS, 12ca7861c8ce16f632aa0026910b0f6dc5db0ad812Alan Viverette * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13ca7861c8ce16f632aa0026910b0f6dc5db0ad812Alan Viverette * See the License for the specific language governing permissions and 14ca7861c8ce16f632aa0026910b0f6dc5db0ad812Alan Viverette * limitations under the License. 15ca7861c8ce16f632aa0026910b0f6dc5db0ad812Alan Viverette */ 16ca7861c8ce16f632aa0026910b0f6dc5db0ad812Alan Viverette 17ca7861c8ce16f632aa0026910b0f6dc5db0ad812Alan Viverettepackage android.support.v4.net; 18ca7861c8ce16f632aa0026910b0f6dc5db0ad812Alan Viverette 19ca7861c8ce16f632aa0026910b0f6dc5db0ad812Alan Viveretteimport android.net.ConnectivityManager; 20ca7861c8ce16f632aa0026910b0f6dc5db0ad812Alan Viverette 21ca7861c8ce16f632aa0026910b0f6dc5db0ad812Alan Viverette/** 22ca7861c8ce16f632aa0026910b0f6dc5db0ad812Alan Viverette * Implementation of ConnectivityManagerCompat that can use API 24 APIs. 23ca7861c8ce16f632aa0026910b0f6dc5db0ad812Alan Viverette */ 24ca7861c8ce16f632aa0026910b0f6dc5db0ad812Alan Viveretteclass ConnectivityManagerCompatApi24 { 25ca7861c8ce16f632aa0026910b0f6dc5db0ad812Alan Viverette public static int getRestrictBackgroundStatus(ConnectivityManager cm) { 26ca7861c8ce16f632aa0026910b0f6dc5db0ad812Alan Viverette return cm.getRestrictBackgroundStatus(); 27ca7861c8ce16f632aa0026910b0f6dc5db0ad812Alan Viverette } 28ca7861c8ce16f632aa0026910b0f6dc5db0ad812Alan Viverette} 29