Loading Android.mk +2 −0 Original line number Diff line number Diff line Loading @@ -259,6 +259,8 @@ LOCAL_SRC_FILES += \ media/java/android/media/IMediaScannerService.aidl \ media/java/android/media/IRemoteControlClient.aidl \ media/java/android/media/IRemoteControlDisplay.aidl \ media/java/android/media/IRemoteDisplayCallback.aidl \ media/java/android/media/IRemoteDisplayProvider.aidl \ media/java/android/media/IRemoteVolumeObserver.aidl \ media/java/android/media/IRingtonePlayer.aidl \ telephony/java/com/android/internal/telephony/IPhoneStateListener.aidl \ Loading core/res/AndroidManifest.xml +8 −0 Original line number Diff line number Diff line Loading @@ -1992,6 +1992,14 @@ android:description="@string/permdesc_bindWallpaper" android:protectionLevel="signature|system" /> <!-- Must be required by a {@link com.android.media.remotedisplay.RemoteDisplayProvider}, to ensure that only the system can bind to it. @hide --> <permission android:name="android.permission.BIND_REMOTE_DISPLAY" android:label="@string/permlab_bindRemoteDisplay" android:description="@string/permdesc_bindRemoteDisplay" android:protectionLevel="signature" /> <!-- Must be required by device administration receiver, to ensure that only the system can interact with it. --> <permission android:name="android.permission.BIND_DEVICE_ADMIN" Loading core/res/res/values/strings.xml +6 −0 Original line number Diff line number Diff line Loading @@ -1051,6 +1051,12 @@ <string name="permdesc_bindWallpaper">Allows the holder to bind to the top-level interface of a wallpaper. Should never be needed for normal apps.</string> <!-- Title of an application permission, listed so the user can choose whether they want to allow the application to do this. --> <string name="permlab_bindRemoteDisplay">bind to a remote display</string> <!-- Description of an application permission, listed so the user can choose whether they want to allow the application to do this. --> <string name="permdesc_bindRemoteDisplay">Allows the holder to bind to the top-level interface of a remote display. Should never be needed for normal apps.</string> <!-- Title of an application permission, listed so the user can choose whether they want to allow the application to do this. --> <string name="permlab_bindRemoteViews">bind to a widget service</string> <!-- Description of an application permission, listed so the user can choose whether they want to allow the application to do this. --> Loading media/java/android/media/IRemoteDisplayCallback.aidl 0 → 100644 +26 −0 Original line number Diff line number Diff line /* * Copyright (C) 2013 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; import android.media.RemoteDisplayState; /** * {@hide} */ oneway interface IRemoteDisplayCallback { void onStateChanged(in RemoteDisplayState state); } media/java/android/media/IRemoteDisplayProvider.aidl 0 → 100644 +31 −0 Original line number Diff line number Diff line /* * Copyright (C) 2013 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; import android.media.IRemoteDisplayCallback; /** * {@hide} */ oneway interface IRemoteDisplayProvider { void setCallback(in IRemoteDisplayCallback callback); void setDiscoveryMode(int mode); void connect(String id); void disconnect(String id); void setVolume(String id, int volume); void adjustVolume(String id, int delta); } Loading
Android.mk +2 −0 Original line number Diff line number Diff line Loading @@ -259,6 +259,8 @@ LOCAL_SRC_FILES += \ media/java/android/media/IMediaScannerService.aidl \ media/java/android/media/IRemoteControlClient.aidl \ media/java/android/media/IRemoteControlDisplay.aidl \ media/java/android/media/IRemoteDisplayCallback.aidl \ media/java/android/media/IRemoteDisplayProvider.aidl \ media/java/android/media/IRemoteVolumeObserver.aidl \ media/java/android/media/IRingtonePlayer.aidl \ telephony/java/com/android/internal/telephony/IPhoneStateListener.aidl \ Loading
core/res/AndroidManifest.xml +8 −0 Original line number Diff line number Diff line Loading @@ -1992,6 +1992,14 @@ android:description="@string/permdesc_bindWallpaper" android:protectionLevel="signature|system" /> <!-- Must be required by a {@link com.android.media.remotedisplay.RemoteDisplayProvider}, to ensure that only the system can bind to it. @hide --> <permission android:name="android.permission.BIND_REMOTE_DISPLAY" android:label="@string/permlab_bindRemoteDisplay" android:description="@string/permdesc_bindRemoteDisplay" android:protectionLevel="signature" /> <!-- Must be required by device administration receiver, to ensure that only the system can interact with it. --> <permission android:name="android.permission.BIND_DEVICE_ADMIN" Loading
core/res/res/values/strings.xml +6 −0 Original line number Diff line number Diff line Loading @@ -1051,6 +1051,12 @@ <string name="permdesc_bindWallpaper">Allows the holder to bind to the top-level interface of a wallpaper. Should never be needed for normal apps.</string> <!-- Title of an application permission, listed so the user can choose whether they want to allow the application to do this. --> <string name="permlab_bindRemoteDisplay">bind to a remote display</string> <!-- Description of an application permission, listed so the user can choose whether they want to allow the application to do this. --> <string name="permdesc_bindRemoteDisplay">Allows the holder to bind to the top-level interface of a remote display. Should never be needed for normal apps.</string> <!-- Title of an application permission, listed so the user can choose whether they want to allow the application to do this. --> <string name="permlab_bindRemoteViews">bind to a widget service</string> <!-- Description of an application permission, listed so the user can choose whether they want to allow the application to do this. --> Loading
media/java/android/media/IRemoteDisplayCallback.aidl 0 → 100644 +26 −0 Original line number Diff line number Diff line /* * Copyright (C) 2013 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; import android.media.RemoteDisplayState; /** * {@hide} */ oneway interface IRemoteDisplayCallback { void onStateChanged(in RemoteDisplayState state); }
media/java/android/media/IRemoteDisplayProvider.aidl 0 → 100644 +31 −0 Original line number Diff line number Diff line /* * Copyright (C) 2013 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; import android.media.IRemoteDisplayCallback; /** * {@hide} */ oneway interface IRemoteDisplayProvider { void setCallback(in IRemoteDisplayCallback callback); void setDiscoveryMode(int mode); void connect(String id); void disconnect(String id); void setVolume(String id, int volume); void adjustVolume(String id, int delta); }