From 4d725a7708eb0c159eb6acac848932c44bf45efc Mon Sep 17 00:00:00 2001 From: Sundeep Ghuman Date: Wed, 15 Mar 2017 18:12:35 -0700 Subject: [PATCH] Comment changes from ag/1991360. Bug: NA Change-Id: I832f4459e8becdc5862c83c2b2efd5cee0d417c9 Test: NA --- .../robotests/src/android/net/NetworkBadging.java | 15 +++++++++++++++ .../android/net/wifi/WifiNetworkScoreCache.java | 15 +++++++++++++++ .../WifiDetailPreferenceControllerTest.java | 6 +----- 3 files changed, 31 insertions(+), 5 deletions(-) diff --git a/tests/robotests/src/android/net/NetworkBadging.java b/tests/robotests/src/android/net/NetworkBadging.java index 32bb31fcaf1..f2af08b0590 100644 --- a/tests/robotests/src/android/net/NetworkBadging.java +++ b/tests/robotests/src/android/net/NetworkBadging.java @@ -1,3 +1,18 @@ +/* + * Copyright (C) 2017 The Android Open Source Project + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ package android.net; import android.annotation.IntDef; diff --git a/tests/robotests/src/android/net/wifi/WifiNetworkScoreCache.java b/tests/robotests/src/android/net/wifi/WifiNetworkScoreCache.java index 08b2971a854..7995e07007e 100644 --- a/tests/robotests/src/android/net/wifi/WifiNetworkScoreCache.java +++ b/tests/robotests/src/android/net/wifi/WifiNetworkScoreCache.java @@ -1,3 +1,18 @@ +/* + * Copyright (C) 2017 The Android Open Source Project + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ package android.net.wifi; /** diff --git a/tests/robotests/src/com/android/settings/wifi/details/WifiDetailPreferenceControllerTest.java b/tests/robotests/src/com/android/settings/wifi/details/WifiDetailPreferenceControllerTest.java index b2648ac34ea..a7e12b3efef 100644 --- a/tests/robotests/src/com/android/settings/wifi/details/WifiDetailPreferenceControllerTest.java +++ b/tests/robotests/src/com/android/settings/wifi/details/WifiDetailPreferenceControllerTest.java @@ -56,11 +56,6 @@ public class WifiDetailPreferenceControllerTest { private static final int RSSI = -55; private static final String SECURITY = "None"; - private Context mContext = RuntimeEnvironment.application; - - @Mock(answer = Answers.RETURNS_DEEP_STUBS) - private Drawable mockWifiIcon; - @Mock(answer = Answers.RETURNS_DEEP_STUBS) private PreferenceScreen mockScreen; @@ -80,6 +75,7 @@ public class WifiDetailPreferenceControllerTest { @Mock private WifiDetailPreference mockDnsPref; @Mock private PreferenceCategory mockIpv6AddressCategory; + private Context mContext = RuntimeEnvironment.application; private Lifecycle mLifecycle; private WifiDetailPreferenceController mController;