1 /* 2 * Copyright (C) 2019 The Android Open Source Project 3 * 4 * Licensed under the Apache License, Version 2.0 (the "License"); 5 * you may not use this file except in compliance with the License. 6 * You may obtain a copy of the License at 7 * 8 * http://www.apache.org/licenses/LICENSE-2.0 9 * 10 * Unless required by applicable law or agreed to in writing, software 11 * distributed under the License is distributed on an "AS IS" BASIS, 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 * See the License for the specific language governing permissions and 14 * limitations under the License. 15 */ 16 17 package android.os; 18 19 import android.os.StatsDimensionsValueParcel; 20 21 /** 22 * Binder interface to hold a PendingIntent for StatsCompanionService. 23 * {@hide} 24 */ 25 interface IPendingIntentRef { 26 27 /** 28 * Sends a broadcast to the specified PendingIntent that it should getData now. 29 * This should be only called from StatsCompanionService. 30 */ sendDataBroadcast(long lastReportTimeNs)31 oneway void sendDataBroadcast(long lastReportTimeNs); 32 33 /** 34 * Send a broadcast to the specified PendingIntent notifying it that the list of active configs 35 * has changed. This should be only called from StatsCompanionService. 36 */ sendActiveConfigsChangedBroadcast(in long[] configIds)37 oneway void sendActiveConfigsChangedBroadcast(in long[] configIds); 38 39 /** 40 * Send a broadcast to the specified PendingIntent, along with the other information 41 * specified. This should only be called from StatsCompanionService. 42 */ sendSubscriberBroadcast(long configUid, long configId, long subscriptionId, long subscriptionRuleId, in String[] cookies, in StatsDimensionsValueParcel dimensionsValueParcel)43 oneway void sendSubscriberBroadcast(long configUid, long configId, long subscriptionId, 44 long subscriptionRuleId, in String[] cookies, 45 in StatsDimensionsValueParcel dimensionsValueParcel); 46 } 47