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

Commit 5ad9538f authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Automerger Merge Worker
Browse files

Merge "BluetoothMidi test: test encoder and decoder" into rvc-dev am:...

Merge "BluetoothMidi test: test encoder and decoder" into rvc-dev am: 7bfa49bf am: 77d9e865 am: a194cc50

Change-Id: Ib89f84963687297c0656e2f6e560e77a2ba8adc1
parents 3af52059 a194cc50
Loading
Loading
Loading
Loading
+30 −1
Original line number Original line Diff line number Diff line
//
// Copyright (C) 2019 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.
//

android_library {
    name: "BluetoothMidiLib",
    srcs: [
        "src/**/*.java",
    ],
    platform_apis: true,
    plugins: ["java_api_finder"],
    manifest: "AndroidManifestBase.xml",
}

android_app {
android_app {
    name: "BluetoothMidiService",
    name: "BluetoothMidiService",
    srcs: ["src/**/*.java"],
    srcs: [
        "src/**/*.java",
    ],
    platform_apis: true,
    platform_apis: true,
    certificate: "platform",
    certificate: "platform",
    manifest: "AndroidManifest.xml",
}
}
+23 −0
Original line number Original line Diff line number Diff line
<?xml version="1.0" encoding="utf-8"?>
<!--
/*
 * Copyright (C) 2015 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.
 */
-->
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
        xmlns:tools="http://schemas.android.com/tools"
        package="com.android.bluetoothmidiservice"
        package="com.android.bluetoothmidiservice"
        android:versionCode="1"
        android:versionName="R-initial"
        >
        >
    <uses-sdk android:minSdkVersion="29" android:targetSdkVersion="29" />


    <uses-feature android:name="android.hardware.bluetooth_le" android:required="true"/>
    <uses-feature android:name="android.hardware.bluetooth_le" android:required="true"/>
    <uses-feature android:name="android.software.midi" android:required="true"/>
    <uses-feature android:name="android.software.midi" android:required="true"/>
    <uses-permission android:name="android.permission.BLUETOOTH"/>
    <uses-permission android:name="android.permission.BLUETOOTH"/>


    <application
    <application
        tools:replace="android:label"
        android:label="@string/app_name">
        android:label="@string/app_name">
        <service android:name=".BluetoothMidiService"
        <service android:name=".BluetoothMidiService"
            android:permission="android.permission.BIND_MIDI_DEVICE_SERVICE">
            android:permission="android.permission.BIND_MIDI_DEVICE_SERVICE">
+30 −0
Original line number Original line Diff line number Diff line
<?xml version="1.0" encoding="utf-8"?>
<!--
/*
 * Copyright (C) 2020 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.
 */
-->
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
          package="com.android.bluetoothmidiservice"
          android:versionCode="1"
          android:versionName="R-initial"
          >
    <uses-sdk android:minSdkVersion="29" android:targetSdkVersion="29" />
    <application
        android:label="BluetoothMidi"
        android:defaultToDeviceProtectedStorage="true"
        android:directBootAware="true">
    </application>
</manifest>
+38 −0
Original line number Original line Diff line number Diff line
//
// Copyright (C) 2019 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.
//

android_test {
    name: "BluetoothMidiTests",
    srcs: ["src/**/*.java"],
    certificate: "platform",
    static_libs: [
        //"frameworks-base-testutils",
        "android-support-test",
        "androidx.test.core",
        "androidx.test.ext.truth",
        "androidx.test.runner",
        "androidx.test.rules",
        "platform-test-annotations",
        "BluetoothMidiLib",
    ],
    test_suites: ["device-tests"],
    libs: [
        "framework-res",
        "android.test.runner",
        "android.test.base",
        "android.test.mock",
    ],
}
+32 −0
Original line number Original line Diff line number Diff line
<?xml version="1.0" encoding="utf-8"?>
<!-- Copyright (C) 2019 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.
-->
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
          xmlns:tools="http://schemas.android.com/tools"
          package="com.android.bluetoothmidiservice.tests.unit">
    <uses-sdk
        android:minSdkVersion="29"
        android:targetSdkVersion="29" />

    <application android:testOnly="true">
        <uses-library android:name="android.test.runner" />
    </application>

    <instrumentation
        android:name="androidx.test.runner.AndroidJUnitRunner"
        android:targetPackage="com.android.bluetoothmidiservice.tests.unit"
        android:label="Bluetooth MIDI Service tests">
    </instrumentation>
</manifest>
Loading