Add license headers am: a9c6ecb787 Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Car/DebuggingRestrictionController/+/15447645 Change-Id: I2a6cee1b326482241322d4c5e48cc1b9560131b6
diff --git a/app/src/androidTest/java/com/android/car/debuggingrestrictioncontroller/LoginTest.java b/app/src/androidTest/java/com/android/car/debuggingrestrictioncontroller/LoginTest.java index 62e6020..69bd1ae 100644 --- a/app/src/androidTest/java/com/android/car/debuggingrestrictioncontroller/LoginTest.java +++ b/app/src/androidTest/java/com/android/car/debuggingrestrictioncontroller/LoginTest.java
@@ -1,3 +1,19 @@ +/* + * Copyright (C) 2021 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 com.android.car.debuggingrestrictioncontroller; import static androidx.test.core.app.ApplicationProvider.getApplicationContext;
diff --git a/app/src/androidTest/java/com/android/car/debuggingrestrictioncontroller/TokenTest.java b/app/src/androidTest/java/com/android/car/debuggingrestrictioncontroller/TokenTest.java index f6aa750..ab291ed 100644 --- a/app/src/androidTest/java/com/android/car/debuggingrestrictioncontroller/TokenTest.java +++ b/app/src/androidTest/java/com/android/car/debuggingrestrictioncontroller/TokenTest.java
@@ -1,3 +1,19 @@ +/* + * Copyright (C) 2021 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 com.android.car.debuggingrestrictioncontroller; import static androidx.test.espresso.Espresso.onView;
diff --git a/app/src/main/java/com/android/car/debuggingrestrictioncontroller/auth/SelfSignedTrustManager.java b/app/src/main/java/com/android/car/debuggingrestrictioncontroller/auth/SelfSignedTrustManager.java index 903fd84..14f483e 100644 --- a/app/src/main/java/com/android/car/debuggingrestrictioncontroller/auth/SelfSignedTrustManager.java +++ b/app/src/main/java/com/android/car/debuggingrestrictioncontroller/auth/SelfSignedTrustManager.java
@@ -1,3 +1,19 @@ +/* + * Copyright (C) 2021 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 com.android.car.debuggingrestrictioncontroller.auth; import android.util.Log;
diff --git a/app/src/main/java/com/android/car/debuggingrestrictioncontroller/auth/TokenPayload.java b/app/src/main/java/com/android/car/debuggingrestrictioncontroller/auth/TokenPayload.java index a00caff..c0b8919 100644 --- a/app/src/main/java/com/android/car/debuggingrestrictioncontroller/auth/TokenPayload.java +++ b/app/src/main/java/com/android/car/debuggingrestrictioncontroller/auth/TokenPayload.java
@@ -1,18 +1,17 @@ /* - * Copyright 2020 Google Inc. All Rights Reserved. + * Copyright (C) 2021 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 + * 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 com.android.car.debuggingrestrictioncontroller.auth;
diff --git a/app/src/main/java/com/android/car/debuggingrestrictioncontroller/auth/TokenValidator.java b/app/src/main/java/com/android/car/debuggingrestrictioncontroller/auth/TokenValidator.java index 6f28f6a..7fc88ec 100644 --- a/app/src/main/java/com/android/car/debuggingrestrictioncontroller/auth/TokenValidator.java +++ b/app/src/main/java/com/android/car/debuggingrestrictioncontroller/auth/TokenValidator.java
@@ -1,3 +1,19 @@ +/* + * Copyright (C) 2021 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 com.android.car.debuggingrestrictioncontroller.auth; import androidx.annotation.NonNull;
diff --git a/app/src/main/java/com/android/car/debuggingrestrictioncontroller/ui/login/LoggedInUserView.java b/app/src/main/java/com/android/car/debuggingrestrictioncontroller/ui/login/LoggedInUserView.java index b96d3d6..142dd85 100644 --- a/app/src/main/java/com/android/car/debuggingrestrictioncontroller/ui/login/LoggedInUserView.java +++ b/app/src/main/java/com/android/car/debuggingrestrictioncontroller/ui/login/LoggedInUserView.java
@@ -1,3 +1,19 @@ +/* + * Copyright (C) 2021 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 com.android.car.debuggingrestrictioncontroller.ui.login; /** Class exposing authenticated user details to the UI. */
diff --git a/app/src/main/java/com/android/car/debuggingrestrictioncontroller/ui/login/LoginActivity.java b/app/src/main/java/com/android/car/debuggingrestrictioncontroller/ui/login/LoginActivity.java index 71a3d44..9879e5e 100644 --- a/app/src/main/java/com/android/car/debuggingrestrictioncontroller/ui/login/LoginActivity.java +++ b/app/src/main/java/com/android/car/debuggingrestrictioncontroller/ui/login/LoginActivity.java
@@ -1,3 +1,19 @@ +/* + * Copyright (C) 2021 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 com.android.car.debuggingrestrictioncontroller.ui.login; import android.content.Intent;
diff --git a/app/src/main/java/com/android/car/debuggingrestrictioncontroller/ui/login/LoginFormState.java b/app/src/main/java/com/android/car/debuggingrestrictioncontroller/ui/login/LoginFormState.java index 3626a4f..6f217c8 100644 --- a/app/src/main/java/com/android/car/debuggingrestrictioncontroller/ui/login/LoginFormState.java +++ b/app/src/main/java/com/android/car/debuggingrestrictioncontroller/ui/login/LoginFormState.java
@@ -1,3 +1,19 @@ +/* + * Copyright (C) 2021 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 com.android.car.debuggingrestrictioncontroller.ui.login; import androidx.annotation.Nullable;
diff --git a/app/src/main/java/com/android/car/debuggingrestrictioncontroller/ui/login/LoginResult.java b/app/src/main/java/com/android/car/debuggingrestrictioncontroller/ui/login/LoginResult.java index 5d93847..d07f726 100644 --- a/app/src/main/java/com/android/car/debuggingrestrictioncontroller/ui/login/LoginResult.java +++ b/app/src/main/java/com/android/car/debuggingrestrictioncontroller/ui/login/LoginResult.java
@@ -1,3 +1,19 @@ +/* + * Copyright (C) 2021 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 com.android.car.debuggingrestrictioncontroller.ui.login; import androidx.annotation.Nullable;
diff --git a/app/src/main/java/com/android/car/debuggingrestrictioncontroller/ui/login/LoginViewModel.java b/app/src/main/java/com/android/car/debuggingrestrictioncontroller/ui/login/LoginViewModel.java index 7f71989..2360684 100644 --- a/app/src/main/java/com/android/car/debuggingrestrictioncontroller/ui/login/LoginViewModel.java +++ b/app/src/main/java/com/android/car/debuggingrestrictioncontroller/ui/login/LoginViewModel.java
@@ -1,3 +1,19 @@ +/* + * Copyright (C) 2021 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 com.android.car.debuggingrestrictioncontroller.ui.login; import android.util.Patterns;
diff --git a/app/src/main/java/com/android/car/debuggingrestrictioncontroller/ui/token/TokenActivity.java b/app/src/main/java/com/android/car/debuggingrestrictioncontroller/ui/token/TokenActivity.java index 984c7f3..02a32db 100644 --- a/app/src/main/java/com/android/car/debuggingrestrictioncontroller/ui/token/TokenActivity.java +++ b/app/src/main/java/com/android/car/debuggingrestrictioncontroller/ui/token/TokenActivity.java
@@ -1,3 +1,19 @@ +/* + * Copyright (C) 2021 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 com.android.car.debuggingrestrictioncontroller.ui.token; import android.app.Activity;
diff --git a/app/src/main/java/com/android/car/debuggingrestrictioncontroller/ui/token/TokenResult.java b/app/src/main/java/com/android/car/debuggingrestrictioncontroller/ui/token/TokenResult.java index 8a4da6b..1e763fe 100644 --- a/app/src/main/java/com/android/car/debuggingrestrictioncontroller/ui/token/TokenResult.java +++ b/app/src/main/java/com/android/car/debuggingrestrictioncontroller/ui/token/TokenResult.java
@@ -1,3 +1,19 @@ +/* + * Copyright (C) 2021 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 com.android.car.debuggingrestrictioncontroller.ui.token; import androidx.annotation.Nullable;
diff --git a/app/src/main/java/com/android/car/debuggingrestrictioncontroller/ui/token/TokenView.java b/app/src/main/java/com/android/car/debuggingrestrictioncontroller/ui/token/TokenView.java index 7603436..01da070 100644 --- a/app/src/main/java/com/android/car/debuggingrestrictioncontroller/ui/token/TokenView.java +++ b/app/src/main/java/com/android/car/debuggingrestrictioncontroller/ui/token/TokenView.java
@@ -1,3 +1,19 @@ +/* + * Copyright (C) 2021 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 com.android.car.debuggingrestrictioncontroller.ui.token; import java.util.HashMap;
diff --git a/app/src/main/java/com/android/car/debuggingrestrictioncontroller/ui/token/TokenViewModel.java b/app/src/main/java/com/android/car/debuggingrestrictioncontroller/ui/token/TokenViewModel.java index c9f112e..ebb4130 100644 --- a/app/src/main/java/com/android/car/debuggingrestrictioncontroller/ui/token/TokenViewModel.java +++ b/app/src/main/java/com/android/car/debuggingrestrictioncontroller/ui/token/TokenViewModel.java
@@ -1,3 +1,19 @@ +/* + * Copyright (C) 2021 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 com.android.car.debuggingrestrictioncontroller.ui.token; import android.util.Base64;
diff --git a/soong/BuildConfig.java b/soong/BuildConfig.java index 5f7c83c..43111a6 100644 --- a/soong/BuildConfig.java +++ b/soong/BuildConfig.java
@@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.android.car.debuggingrestrictioncontroller; public final class BuildConfig {
diff --git a/soong/FirebaseApplication.java b/soong/FirebaseApplication.java index 96860ca..54d2d46 100644 --- a/soong/FirebaseApplication.java +++ b/soong/FirebaseApplication.java
@@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.android.car.debuggingrestrictioncontroller; import android.app.Application;