Loading Android.bp +1 −0 Original line number Diff line number Diff line Loading @@ -53,6 +53,7 @@ java_defaults { certificate: "platform", optimize: { shrink_resources: true, proguard_flags_files: ["proguard.flags"], }, Loading res/raw/keep.xml 0 → 100644 +20 −0 Original line number Diff line number Diff line <?xml version="1.0" encoding="utf-8"?> <!-- Copyright (C) 2023 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. --> <resources xmlns:tools="http://schemas.android.com/tools" tools:keep=" @bool/config_default_show_device_root, @bool/is_launcher_enabled, @string/config_headerFontFamilyMedium" /> tests/functional/com/android/documentsui/CancelFromNotificationUiTest.java +3 −1 Original line number Diff line number Diff line Loading @@ -16,6 +16,8 @@ package com.android.documentsui; import static android.content.Context.RECEIVER_EXPORTED; import static com.android.documentsui.StubProvider.EXTRA_SIZE; import static com.android.documentsui.StubProvider.ROOT_0_ID; import static com.android.documentsui.StubProvider.ROOT_1_ID; Loading Loading @@ -101,7 +103,7 @@ public class CancelFromNotificationUiTest extends ActivityTest<FilesActivity> { IntentFilter filter = new IntentFilter(); filter.addAction(TestNotificationService.ACTION_OPERATION_RESULT); context.registerReceiver(mReceiver, filter); context.registerReceiver(mReceiver, filter, RECEIVER_EXPORTED); context.sendBroadcast(new Intent( TestNotificationService.ACTION_CHANGE_CANCEL_MODE)); Loading tests/functional/com/android/documentsui/FileCopyUiTest.java +3 −1 Original line number Diff line number Diff line Loading @@ -16,6 +16,8 @@ package com.android.documentsui; import static android.content.Context.RECEIVER_EXPORTED; import static com.android.documentsui.base.Providers.AUTHORITY_STORAGE; import static com.android.documentsui.base.Providers.ROOT_ID_DEVICE; Loading Loading @@ -170,7 +172,7 @@ public class FileCopyUiTest extends ActivityTest<FilesActivity> { IntentFilter filter = new IntentFilter(); filter.addAction(TestNotificationService.ACTION_OPERATION_RESULT); context.registerReceiver(mReceiver, filter); context.registerReceiver(mReceiver, filter, RECEIVER_EXPORTED); context.sendBroadcast(new Intent( TestNotificationService.ACTION_CHANGE_EXECUTION_MODE)); } Loading tests/functional/com/android/documentsui/FileDeleteUiTest.java +3 −1 Original line number Diff line number Diff line Loading @@ -16,6 +16,8 @@ package com.android.documentsui; import static android.content.Context.RECEIVER_EXPORTED; import static com.android.documentsui.StubProvider.ROOT_0_ID; import android.content.BroadcastReceiver; Loading Loading @@ -102,7 +104,7 @@ public class FileDeleteUiTest extends ActivityTest<FilesActivity> { IntentFilter filter = new IntentFilter(); filter.addAction(TestNotificationService.ACTION_OPERATION_RESULT); context.registerReceiver(mReceiver, filter); context.registerReceiver(mReceiver, filter, RECEIVER_EXPORTED); context.sendBroadcast(new Intent( TestNotificationService.ACTION_CHANGE_EXECUTION_MODE)); Loading Loading
Android.bp +1 −0 Original line number Diff line number Diff line Loading @@ -53,6 +53,7 @@ java_defaults { certificate: "platform", optimize: { shrink_resources: true, proguard_flags_files: ["proguard.flags"], }, Loading
res/raw/keep.xml 0 → 100644 +20 −0 Original line number Diff line number Diff line <?xml version="1.0" encoding="utf-8"?> <!-- Copyright (C) 2023 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. --> <resources xmlns:tools="http://schemas.android.com/tools" tools:keep=" @bool/config_default_show_device_root, @bool/is_launcher_enabled, @string/config_headerFontFamilyMedium" />
tests/functional/com/android/documentsui/CancelFromNotificationUiTest.java +3 −1 Original line number Diff line number Diff line Loading @@ -16,6 +16,8 @@ package com.android.documentsui; import static android.content.Context.RECEIVER_EXPORTED; import static com.android.documentsui.StubProvider.EXTRA_SIZE; import static com.android.documentsui.StubProvider.ROOT_0_ID; import static com.android.documentsui.StubProvider.ROOT_1_ID; Loading Loading @@ -101,7 +103,7 @@ public class CancelFromNotificationUiTest extends ActivityTest<FilesActivity> { IntentFilter filter = new IntentFilter(); filter.addAction(TestNotificationService.ACTION_OPERATION_RESULT); context.registerReceiver(mReceiver, filter); context.registerReceiver(mReceiver, filter, RECEIVER_EXPORTED); context.sendBroadcast(new Intent( TestNotificationService.ACTION_CHANGE_CANCEL_MODE)); Loading
tests/functional/com/android/documentsui/FileCopyUiTest.java +3 −1 Original line number Diff line number Diff line Loading @@ -16,6 +16,8 @@ package com.android.documentsui; import static android.content.Context.RECEIVER_EXPORTED; import static com.android.documentsui.base.Providers.AUTHORITY_STORAGE; import static com.android.documentsui.base.Providers.ROOT_ID_DEVICE; Loading Loading @@ -170,7 +172,7 @@ public class FileCopyUiTest extends ActivityTest<FilesActivity> { IntentFilter filter = new IntentFilter(); filter.addAction(TestNotificationService.ACTION_OPERATION_RESULT); context.registerReceiver(mReceiver, filter); context.registerReceiver(mReceiver, filter, RECEIVER_EXPORTED); context.sendBroadcast(new Intent( TestNotificationService.ACTION_CHANGE_EXECUTION_MODE)); } Loading
tests/functional/com/android/documentsui/FileDeleteUiTest.java +3 −1 Original line number Diff line number Diff line Loading @@ -16,6 +16,8 @@ package com.android.documentsui; import static android.content.Context.RECEIVER_EXPORTED; import static com.android.documentsui.StubProvider.ROOT_0_ID; import android.content.BroadcastReceiver; Loading Loading @@ -102,7 +104,7 @@ public class FileDeleteUiTest extends ActivityTest<FilesActivity> { IntentFilter filter = new IntentFilter(); filter.addAction(TestNotificationService.ACTION_OPERATION_RESULT); context.registerReceiver(mReceiver, filter); context.registerReceiver(mReceiver, filter, RECEIVER_EXPORTED); context.sendBroadcast(new Intent( TestNotificationService.ACTION_CHANGE_EXECUTION_MODE)); Loading