Loading Android.bp +1 −0 Original line number Diff line number Diff line Loading @@ -99,6 +99,7 @@ java_library { "core/java/android/app/backup/IRestoreSession.aidl", "core/java/android/app/backup/ISelectBackupTransportCallback.aidl", "core/java/android/app/slice/ISliceManager.aidl", "core/java/android/app/slice/ISliceListener.aidl", "core/java/android/app/timezone/ICallback.aidl", "core/java/android/app/timezone/IRulesManager.aidl", "core/java/android/app/usage/ICacheQuotaService.aidl", Loading Android.mk +1 −0 Original line number Diff line number Diff line Loading @@ -97,6 +97,7 @@ aidl_files := \ frameworks/base/core/java/android/app/admin/SystemUpdatePolicy.aidl \ frameworks/base/core/java/android/app/admin/PasswordMetrics.aidl \ frameworks/base/core/java/android/app/slice/ISliceManager.aidl \ frameworks/base/core/java/android/app/slice/ISliceListener.aidl \ frameworks/base/core/java/android/print/PrintDocumentInfo.aidl \ frameworks/base/core/java/android/print/PageRange.aidl \ frameworks/base/core/java/android/print/PrintAttributes.aidl \ Loading core/java/android/app/slice/ISliceListener.aidl 0 → 100644 +25 −0 Original line number Diff line number Diff line /** * Copyright (c) 2017, 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.app.slice; import android.app.slice.ISliceManager; import android.app.slice.Slice; /** @hide */ oneway interface ISliceListener { void onSliceUpdated(in Slice s); } core/java/android/app/slice/ISliceManager.aidl +11 −0 Original line number Diff line number Diff line Loading @@ -16,6 +16,17 @@ package android.app.slice; import android.app.slice.ISliceListener; import android.app.slice.SliceSpec; import android.net.Uri; /** @hide */ interface ISliceManager { void addSliceListener(in Uri uri, String pkg, in ISliceListener listener, in SliceSpec[] specs); void removeSliceListener(in Uri uri, String pkg, in ISliceListener listener); void pinSlice(String pkg, in Uri uri, in SliceSpec[] specs); void unpinSlice(String pkg, in Uri uri); boolean hasSliceAccess(String pkg); SliceSpec[] getPinnedSpecs(in Uri uri, String pkg); } core/java/android/app/slice/Slice.aidl 0 → 100644 +19 −0 Original line number Diff line number Diff line /** * Copyright (c) 2017, 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.app.slice; parcelable Slice; Loading
Android.bp +1 −0 Original line number Diff line number Diff line Loading @@ -99,6 +99,7 @@ java_library { "core/java/android/app/backup/IRestoreSession.aidl", "core/java/android/app/backup/ISelectBackupTransportCallback.aidl", "core/java/android/app/slice/ISliceManager.aidl", "core/java/android/app/slice/ISliceListener.aidl", "core/java/android/app/timezone/ICallback.aidl", "core/java/android/app/timezone/IRulesManager.aidl", "core/java/android/app/usage/ICacheQuotaService.aidl", Loading
Android.mk +1 −0 Original line number Diff line number Diff line Loading @@ -97,6 +97,7 @@ aidl_files := \ frameworks/base/core/java/android/app/admin/SystemUpdatePolicy.aidl \ frameworks/base/core/java/android/app/admin/PasswordMetrics.aidl \ frameworks/base/core/java/android/app/slice/ISliceManager.aidl \ frameworks/base/core/java/android/app/slice/ISliceListener.aidl \ frameworks/base/core/java/android/print/PrintDocumentInfo.aidl \ frameworks/base/core/java/android/print/PageRange.aidl \ frameworks/base/core/java/android/print/PrintAttributes.aidl \ Loading
core/java/android/app/slice/ISliceListener.aidl 0 → 100644 +25 −0 Original line number Diff line number Diff line /** * Copyright (c) 2017, 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.app.slice; import android.app.slice.ISliceManager; import android.app.slice.Slice; /** @hide */ oneway interface ISliceListener { void onSliceUpdated(in Slice s); }
core/java/android/app/slice/ISliceManager.aidl +11 −0 Original line number Diff line number Diff line Loading @@ -16,6 +16,17 @@ package android.app.slice; import android.app.slice.ISliceListener; import android.app.slice.SliceSpec; import android.net.Uri; /** @hide */ interface ISliceManager { void addSliceListener(in Uri uri, String pkg, in ISliceListener listener, in SliceSpec[] specs); void removeSliceListener(in Uri uri, String pkg, in ISliceListener listener); void pinSlice(String pkg, in Uri uri, in SliceSpec[] specs); void unpinSlice(String pkg, in Uri uri); boolean hasSliceAccess(String pkg); SliceSpec[] getPinnedSpecs(in Uri uri, String pkg); }
core/java/android/app/slice/Slice.aidl 0 → 100644 +19 −0 Original line number Diff line number Diff line /** * Copyright (c) 2017, 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.app.slice; parcelable Slice;