Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit a42f49dd authored by felkachang's avatar felkachang Committed by Sasha Smundak
Browse files

To add the Android.bp of ExternalStorageProvider

ExternalStorageProvider doesn't have any tests yet.
1. Convert Android.mk to Android.bp
2. Add init testcase
3. formatted by bpfmt -s -w Android.bp

Fixes: 117812397
Bug: 122332340
Test: atest ExternalStorageProviderTests

Change-Id: I74235832f453110742de0b15cb14fac7514ecf0e
Merged-In: I74235832f453110742de0b15cb14fac7514ecf0e
parent 90a9d627
Loading
Loading
Loading
Loading
+19 −0
Original line number Diff line number Diff line
android_app {
    name: "ExternalStorageProvider",

    manifest: "AndroidManifest.xml",

    resource_dirs: [
        "res",
    ],

    srcs: [
        "src/**/*.java",
    ],

    platform_apis: true,

    certificate: "platform",

    privileged: true,
}
+0 −13
Original line number Diff line number Diff line
LOCAL_PATH:= $(call my-dir)
include $(CLEAR_VARS)

LOCAL_MODULE_TAGS := optional

LOCAL_SRC_FILES := $(call all-subdir-java-files)

LOCAL_PACKAGE_NAME := ExternalStorageProvider
LOCAL_PRIVATE_PLATFORM_APIS := true
LOCAL_CERTIFICATE := platform
LOCAL_PRIVILEGED_MODULE := true

include $(BUILD_PACKAGE)
+25 −0
Original line number Diff line number Diff line
android_test {
    name: "ExternalStorageProviderTests",

    manifest: "AndroidManifest.xml",

    srcs: [
        "src/**/*.java",
    ],

    libs: [
        "android.test.base",
        "android.test.mock",
        "android.test.runner",
    ],

    static_libs: [
        "android-support-test",
        "mockito-target",
        "truth-prebuilt",
    ],

    certificate: "platform",

    instrumentation_for: "ExternalStorageProvider",
}
+13 −0
Original line number Diff line number Diff line
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
          package="com.android.externalstorage.tests">

    <application android:label="ExternalStorageProvider Tests">
        <uses-library android:name="android.test.runner" />
    </application>

    <instrumentation android:name="android.support.test.runner.AndroidJUnitRunner"
                     android:targetPackage="com.android.externalstorage"
                     android:label="ExternalStorageProvider Tests" />
</manifest>
+29 −0
Original line number Diff line number Diff line
<?xml version="1.0" encoding="utf-8"?>
<!-- Copyright (C) 2018 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.
-->
<configuration description="Runs Tests for ExternalStorageProvider.">
    <target_preparer class="com.android.tradefed.targetprep.TestAppInstallSetup">
        <option name="test-file-name" value="ExternalStorageProviderTests.apk" />
    </target_preparer>

    <option name="test-suite-tag" value="apct" />
    <option name="test-suite-tag" value="framework-base-presubmit" />
    <option name="test-tag" value="ExternalStorageProviderTests" />
    <test class="com.android.tradefed.testtype.AndroidJUnitTest" >
        <option name="package" value="com.android.externalstorage.tests" />
        <option name="runner" value="android.support.test.runner.AndroidJUnitRunner" />
        <option name="hidden-api-checks" value="false"/>
    </test>
</configuration>
Loading