Loading android/pandora/server/AndroidManifest.xml +26 −21 Original line number Original line Diff line number Diff line Loading @@ -16,7 +16,6 @@ <manifest xmlns:android="http://schemas.android.com/apk/res/android" <manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.android.pandora"> package="com.android.pandora"> <application> <application> <uses-library android:name="android.test.runner" /> <uses-library android:name="android.test.runner" /> Loading @@ -27,8 +26,7 @@ </intent-filter> </intent-filter> </service> </service> <service <service android:name=".Hfp$PandoraInCallService" android:name=".Hfp$PandoraInCallService" android:permission="android.permission.BIND_INCALL_SERVICE" android:permission="android.permission.BIND_INCALL_SERVICE" android:exported="true"> android:exported="true"> <intent-filter> <intent-filter> Loading @@ -36,6 +34,13 @@ </intent-filter> </intent-filter> </service> </service> <activity android:name=".MediaPlayerActivity" android:exported="true" > <intent-filter> <action android:name="android.intent.action.VIEW" /> <data android:mimeType="audio/*"/> </intent-filter> </activity> </application> </application> <uses-permission android:name="android.permission.INTERNET" /> <uses-permission android:name="android.permission.INTERNET" /> Loading android/pandora/server/src/MediaPlayerActivity.kt 0 → 100644 +36 −0 Original line number Original line Diff line number Diff line /* * Copyright (C) 2024 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.pandora import android.app.Activity import android.os.Bundle /** * A skeleton class that provides empty implementations for Activity class. * * <p>This is needed to test AVRCP Browsing as players without an audio activity are filtered out. */ class MediaPlayerActivity : Activity() { override fun onCreate(icicle: Bundle?) {} override fun onDestroy() {} override fun onRequestPermissionsResult( requestCode: Int, permissions: Array<String>, grantResults: IntArray ) {} } Loading
android/pandora/server/AndroidManifest.xml +26 −21 Original line number Original line Diff line number Diff line Loading @@ -16,7 +16,6 @@ <manifest xmlns:android="http://schemas.android.com/apk/res/android" <manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.android.pandora"> package="com.android.pandora"> <application> <application> <uses-library android:name="android.test.runner" /> <uses-library android:name="android.test.runner" /> Loading @@ -27,8 +26,7 @@ </intent-filter> </intent-filter> </service> </service> <service <service android:name=".Hfp$PandoraInCallService" android:name=".Hfp$PandoraInCallService" android:permission="android.permission.BIND_INCALL_SERVICE" android:permission="android.permission.BIND_INCALL_SERVICE" android:exported="true"> android:exported="true"> <intent-filter> <intent-filter> Loading @@ -36,6 +34,13 @@ </intent-filter> </intent-filter> </service> </service> <activity android:name=".MediaPlayerActivity" android:exported="true" > <intent-filter> <action android:name="android.intent.action.VIEW" /> <data android:mimeType="audio/*"/> </intent-filter> </activity> </application> </application> <uses-permission android:name="android.permission.INTERNET" /> <uses-permission android:name="android.permission.INTERNET" /> Loading
android/pandora/server/src/MediaPlayerActivity.kt 0 → 100644 +36 −0 Original line number Original line Diff line number Diff line /* * Copyright (C) 2024 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.pandora import android.app.Activity import android.os.Bundle /** * A skeleton class that provides empty implementations for Activity class. * * <p>This is needed to test AVRCP Browsing as players without an audio activity are filtered out. */ class MediaPlayerActivity : Activity() { override fun onCreate(icicle: Bundle?) {} override fun onDestroy() {} override fun onRequestPermissionsResult( requestCode: Int, permissions: Array<String>, grantResults: IntArray ) {} }