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;