summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYiming Jing <yimingjing@google.com>2021-08-03 11:38:50 -0700
committerYiming Jing <yimingjing@google.com>2021-08-03 11:38:50 -0700
commita9c6ecb7875b81d995d325822cc63fd89d9ffd10 (patch)
treef2f470f6f65f12d0af6841050b325a17370b4ecf
parentdf660d593495d41b167e50b570de00e320e68437 (diff)
downloadDebuggingRestrictionController-a9c6ecb7875b81d995d325822cc63fd89d9ffd10.tar.gz
Bug: 195432633 Test: N/A Change-Id: I1fce4eab7bc2f1f24c462452e445f149d4b69c95
-rw-r--r--app/src/androidTest/java/com/android/car/debuggingrestrictioncontroller/LoginTest.java16
-rw-r--r--app/src/androidTest/java/com/android/car/debuggingrestrictioncontroller/TokenTest.java16
-rw-r--r--app/src/main/java/com/android/car/debuggingrestrictioncontroller/auth/SelfSignedTrustManager.java16
-rw-r--r--app/src/main/java/com/android/car/debuggingrestrictioncontroller/auth/TokenPayload.java5
-rw-r--r--app/src/main/java/com/android/car/debuggingrestrictioncontroller/auth/TokenValidator.java16
-rw-r--r--app/src/main/java/com/android/car/debuggingrestrictioncontroller/ui/login/LoggedInUserView.java16
-rw-r--r--app/src/main/java/com/android/car/debuggingrestrictioncontroller/ui/login/LoginActivity.java16
-rw-r--r--app/src/main/java/com/android/car/debuggingrestrictioncontroller/ui/login/LoginFormState.java16
-rw-r--r--app/src/main/java/com/android/car/debuggingrestrictioncontroller/ui/login/LoginResult.java16
-rw-r--r--app/src/main/java/com/android/car/debuggingrestrictioncontroller/ui/login/LoginViewModel.java16
-rw-r--r--app/src/main/java/com/android/car/debuggingrestrictioncontroller/ui/token/TokenActivity.java16
-rw-r--r--app/src/main/java/com/android/car/debuggingrestrictioncontroller/ui/token/TokenResult.java16
-rw-r--r--app/src/main/java/com/android/car/debuggingrestrictioncontroller/ui/token/TokenView.java16
-rw-r--r--app/src/main/java/com/android/car/debuggingrestrictioncontroller/ui/token/TokenViewModel.java16
-rw-r--r--soong/BuildConfig.java1
-rw-r--r--soong/FirebaseApplication.java1
16 files changed, 212 insertions, 3 deletions
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;