1 /* 2 * Copyright (C) 2020 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.settings.wifi; 18 19 import android.content.Context; 20 import android.os.Handler; 21 22 import androidx.lifecycle.Lifecycle; 23 24 import com.android.wifitrackerlib.NetworkDetailsTracker; 25 import com.android.wifitrackerlib.WifiPickerTracker; 26 27 import java.time.Clock; 28 29 /** 30 * Provides the objects instances from the AOSP WifiTrackerLib. 31 */ 32 public interface WifiTrackerLibProvider { 33 34 /** Create a new instance of WifiPickerTracker */ createWifiPickerTracker( Lifecycle lifecycle, Context context, Handler mainHandler, Handler workerHandler, Clock clock, long maxScanAgeMillis, long scanIntervalMillis, WifiPickerTracker.WifiPickerTrackerCallback listener)35 WifiPickerTracker createWifiPickerTracker( 36 Lifecycle lifecycle, Context context, 37 Handler mainHandler, Handler workerHandler, Clock clock, 38 long maxScanAgeMillis, long scanIntervalMillis, 39 WifiPickerTracker.WifiPickerTrackerCallback listener); 40 41 /** Create a new instance of NetworkDetailsTracker */ createNetworkDetailsTracker( Lifecycle lifecycle, Context context, Handler mainHandler, Handler workerHandler, Clock clock, long maxScanAgeMillis, long scanIntervalMillis, String key)42 NetworkDetailsTracker createNetworkDetailsTracker( 43 Lifecycle lifecycle, Context context, 44 Handler mainHandler, Handler workerHandler, Clock clock, 45 long maxScanAgeMillis, long scanIntervalMillis, 46 String key); 47 48 } 49