Loading media/Android.bp +17 −0 Original line number Diff line number Diff line java_library { name: "media1", srcs: [ ":media1-srcs", ], sdk_version: "system_current", } filegroup { name: "media1-srcs", srcs: [ "java/android/media/session/MediaSessionProviderService.java", ], } java_library { // TODO: include media2.jar in the media apex and add it to the bootclasspath. name: "media2", Loading media/java/android/media/session/MediaSessionProviderService.java 0 → 100644 +35 −0 Original line number 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. */ package android.media.session; import android.app.Service; import android.content.Intent; import android.os.IBinder; /** * Abstract class for mainline module services. * * @hide // TODO: Make it as a @SystemApi */ public abstract class MediaSessionProviderService extends Service { @Override public IBinder onBind(Intent intent) { // TODO: Return IMediaSessionProviderService.Stub() return null; } } media/packages/MediaCore/Android.bp 0 → 100644 +21 −0 Original line number Diff line number Diff line android_app { name: "MediaCore", srcs: [ "src/**/*.java", ], static_libs: [ // TODO: Temporarily statically linked. Should go into "libs" "media1", ], // System app platform_apis: true, // Privileged app privileged: true, // Make sure that the implementation only relies on SDK or system APIs. sdk_version: "system_current", } media/packages/MediaCore/AndroidManifest.xml 0 → 100644 +32 −0 Original line number Diff line number Diff line <?xml version="1.0" encoding="utf-8"?> <!-- /* //device/apps/common/AndroidManifest.xml ** ** Copyright 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" package="com.android.media" coreApp="true" android:sharedUserId="android.uid.system" android:sharedUserLabel="@string/android_system_label"> <application android:process="system" android:persistent="true" android:directBootAware="true"> <service android:name="AmlMediaSessionProviderService" android:singleUser="true"> <intent-filter> <action android:name="android.media.session.MediaSessionProviderService"/> </intent-filter> </service> </application> </manifest> media/packages/MediaCore/res/values/strings.xml 0 → 100644 +21 −0 Original line number Diff line number Diff line <?xml version="1.0" encoding="utf-8"?> <!-- Copyright 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. --> <resources> <!-- Label for the Android system components when they are shown to the user. --> <string name="android_system_label" translatable="false">Android System</string> </resources> Loading
media/Android.bp +17 −0 Original line number Diff line number Diff line java_library { name: "media1", srcs: [ ":media1-srcs", ], sdk_version: "system_current", } filegroup { name: "media1-srcs", srcs: [ "java/android/media/session/MediaSessionProviderService.java", ], } java_library { // TODO: include media2.jar in the media apex and add it to the bootclasspath. name: "media2", Loading
media/java/android/media/session/MediaSessionProviderService.java 0 → 100644 +35 −0 Original line number 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. */ package android.media.session; import android.app.Service; import android.content.Intent; import android.os.IBinder; /** * Abstract class for mainline module services. * * @hide // TODO: Make it as a @SystemApi */ public abstract class MediaSessionProviderService extends Service { @Override public IBinder onBind(Intent intent) { // TODO: Return IMediaSessionProviderService.Stub() return null; } }
media/packages/MediaCore/Android.bp 0 → 100644 +21 −0 Original line number Diff line number Diff line android_app { name: "MediaCore", srcs: [ "src/**/*.java", ], static_libs: [ // TODO: Temporarily statically linked. Should go into "libs" "media1", ], // System app platform_apis: true, // Privileged app privileged: true, // Make sure that the implementation only relies on SDK or system APIs. sdk_version: "system_current", }
media/packages/MediaCore/AndroidManifest.xml 0 → 100644 +32 −0 Original line number Diff line number Diff line <?xml version="1.0" encoding="utf-8"?> <!-- /* //device/apps/common/AndroidManifest.xml ** ** Copyright 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" package="com.android.media" coreApp="true" android:sharedUserId="android.uid.system" android:sharedUserLabel="@string/android_system_label"> <application android:process="system" android:persistent="true" android:directBootAware="true"> <service android:name="AmlMediaSessionProviderService" android:singleUser="true"> <intent-filter> <action android:name="android.media.session.MediaSessionProviderService"/> </intent-filter> </service> </application> </manifest>
media/packages/MediaCore/res/values/strings.xml 0 → 100644 +21 −0 Original line number Diff line number Diff line <?xml version="1.0" encoding="utf-8"?> <!-- Copyright 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. --> <resources> <!-- Label for the Android system components when they are shown to the user. --> <string name="android_system_label" translatable="false">Android System</string> </resources>