destradaa | ea8a8a6 | 2014-06-23 18:19:03 -0700 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (C) 2014 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 com.android.server.location; |
| 18 | |
destradaa | ea8a8a6 | 2014-06-23 18:19:03 -0700 | [diff] [blame] | 19 | import android.annotation.NonNull; |
Anil Admal | 75b9fd6 | 2018-11-28 11:22:50 -0800 | [diff] [blame] | 20 | import android.app.AppOpsManager; |
| 21 | import android.content.Context; |
destradaa | 6568d70 | 2014-10-27 12:47:41 -0700 | [diff] [blame] | 22 | import android.os.Handler; |
destradaa | ea8a8a6 | 2014-06-23 18:19:03 -0700 | [diff] [blame] | 23 | import android.os.IBinder; |
| 24 | import android.os.IInterface; |
| 25 | import android.os.RemoteException; |
| 26 | import android.util.Log; |
| 27 | |
destradaa | ea8a8a6 | 2014-06-23 18:19:03 -0700 | [diff] [blame] | 28 | import java.util.HashMap; |
destradaa | 13a60b0 | 2015-01-15 18:36:01 -0800 | [diff] [blame] | 29 | import java.util.Map; |
Daulet Zhanguzin | 90e91ce | 2020-01-02 17:37:10 +0000 | [diff] [blame] | 30 | import java.util.Objects; |
destradaa | ea8a8a6 | 2014-06-23 18:19:03 -0700 | [diff] [blame] | 31 | |
| 32 | /** |
Anil Admal | 98d49b7 | 2019-02-06 15:26:33 -0800 | [diff] [blame] | 33 | * A helper class that handles operations in remote listeners. |
| 34 | * |
| 35 | * @param <TListener> the type of GNSS data listener. |
destradaa | ea8a8a6 | 2014-06-23 18:19:03 -0700 | [diff] [blame] | 36 | */ |
Anil Admal | 98d49b7 | 2019-02-06 15:26:33 -0800 | [diff] [blame] | 37 | public abstract class RemoteListenerHelper<TListener extends IInterface> { |
destradaa | 13a60b0 | 2015-01-15 18:36:01 -0800 | [diff] [blame] | 38 | |
destradaa | 6568d70 | 2014-10-27 12:47:41 -0700 | [diff] [blame] | 39 | protected static final int RESULT_SUCCESS = 0; |
| 40 | protected static final int RESULT_NOT_AVAILABLE = 1; |
| 41 | protected static final int RESULT_NOT_SUPPORTED = 2; |
| 42 | protected static final int RESULT_GPS_LOCATION_DISABLED = 3; |
| 43 | protected static final int RESULT_INTERNAL_ERROR = 4; |
destradaa | 13a60b0 | 2015-01-15 18:36:01 -0800 | [diff] [blame] | 44 | protected static final int RESULT_UNKNOWN = 5; |
gomo | 48f1a64 | 2017-11-10 20:35:46 -0800 | [diff] [blame] | 45 | protected static final int RESULT_NOT_ALLOWED = 6; |
destradaa | ea8a8a6 | 2014-06-23 18:19:03 -0700 | [diff] [blame] | 46 | |
gomo | 226b7b7 | 2018-12-12 16:49:39 -0800 | [diff] [blame] | 47 | protected final Handler mHandler; |
destradaa | 6568d70 | 2014-10-27 12:47:41 -0700 | [diff] [blame] | 48 | private final String mTag; |
| 49 | |
Anil Admal | 98d49b7 | 2019-02-06 15:26:33 -0800 | [diff] [blame] | 50 | private final Map<IBinder, IdentifiedListener> mListenerMap = new HashMap<>(); |
destradaa | 6568d70 | 2014-10-27 12:47:41 -0700 | [diff] [blame] | 51 | |
Anil Admal | 75b9fd6 | 2018-11-28 11:22:50 -0800 | [diff] [blame] | 52 | protected final Context mContext; |
| 53 | protected final AppOpsManager mAppOps; |
| 54 | |
Wyatt Riley | 74479bd | 2018-01-17 08:48:27 -0800 | [diff] [blame] | 55 | private volatile boolean mIsRegistered; // must access only on handler thread, or read-only |
| 56 | |
destradaa | 6568d70 | 2014-10-27 12:47:41 -0700 | [diff] [blame] | 57 | private boolean mHasIsSupported; |
| 58 | private boolean mIsSupported; |
| 59 | |
destradaa | 13a60b0 | 2015-01-15 18:36:01 -0800 | [diff] [blame] | 60 | private int mLastReportedResult = RESULT_UNKNOWN; |
| 61 | |
Anil Admal | 75b9fd6 | 2018-11-28 11:22:50 -0800 | [diff] [blame] | 62 | protected RemoteListenerHelper(Context context, Handler handler, String name) { |
Daulet Zhanguzin | 90e91ce | 2020-01-02 17:37:10 +0000 | [diff] [blame] | 63 | Objects.requireNonNull(name); |
destradaa | 6568d70 | 2014-10-27 12:47:41 -0700 | [diff] [blame] | 64 | mHandler = handler; |
destradaa | 4b3e393 | 2014-07-21 18:01:47 -0700 | [diff] [blame] | 65 | mTag = name; |
Anil Admal | 75b9fd6 | 2018-11-28 11:22:50 -0800 | [diff] [blame] | 66 | mContext = context; |
| 67 | mAppOps = (AppOpsManager) context.getSystemService(Context.APP_OPS_SERVICE); |
destradaa | 4b3e393 | 2014-07-21 18:01:47 -0700 | [diff] [blame] | 68 | } |
| 69 | |
Wyatt Riley | 74479bd | 2018-01-17 08:48:27 -0800 | [diff] [blame] | 70 | // read-only access for a dump() thread assured via volatile |
| 71 | public boolean isRegistered() { |
| 72 | return mIsRegistered; |
| 73 | } |
| 74 | |
Anil Admal | 98d49b7 | 2019-02-06 15:26:33 -0800 | [diff] [blame] | 75 | /** |
| 76 | * Adds GNSS data listener {@code listener} with caller identify {@code callerIdentify}. |
| 77 | */ |
| 78 | public void addListener(@NonNull TListener listener, CallerIdentity callerIdentity) { |
Daulet Zhanguzin | 90e91ce | 2020-01-02 17:37:10 +0000 | [diff] [blame] | 79 | Objects.requireNonNull(listener, "Attempted to register a 'null' listener."); |
destradaa | ea8a8a6 | 2014-06-23 18:19:03 -0700 | [diff] [blame] | 80 | IBinder binder = listener.asBinder(); |
destradaa | ea8a8a6 | 2014-06-23 18:19:03 -0700 | [diff] [blame] | 81 | synchronized (mListenerMap) { |
| 82 | if (mListenerMap.containsKey(binder)) { |
| 83 | // listener already added |
Anil Admal | 98d49b7 | 2019-02-06 15:26:33 -0800 | [diff] [blame] | 84 | return; |
destradaa | ea8a8a6 | 2014-06-23 18:19:03 -0700 | [diff] [blame] | 85 | } |
Anil Admal | 98d49b7 | 2019-02-06 15:26:33 -0800 | [diff] [blame] | 86 | |
| 87 | IdentifiedListener identifiedListener = new IdentifiedListener(listener, |
| 88 | callerIdentity); |
| 89 | mListenerMap.put(binder, identifiedListener); |
destradaa | ea8a8a6 | 2014-06-23 18:19:03 -0700 | [diff] [blame] | 90 | |
destradaa | 6568d70 | 2014-10-27 12:47:41 -0700 | [diff] [blame] | 91 | // update statuses we already know about, starting from the ones that will never change |
| 92 | int result; |
| 93 | if (!isAvailableInPlatform()) { |
| 94 | result = RESULT_NOT_AVAILABLE; |
| 95 | } else if (mHasIsSupported && !mIsSupported) { |
| 96 | result = RESULT_NOT_SUPPORTED; |
| 97 | } else if (!isGpsEnabled()) { |
destradaa | 6568d70 | 2014-10-27 12:47:41 -0700 | [diff] [blame] | 98 | // only attempt to register if GPS is enabled, otherwise we will register once GPS |
| 99 | // becomes available |
Wyatt Riley | aa420d5 | 2017-07-03 15:14:42 -0700 | [diff] [blame] | 100 | result = RESULT_GPS_LOCATION_DISABLED; |
destradaa | 6568d70 | 2014-10-27 12:47:41 -0700 | [diff] [blame] | 101 | } else if (mHasIsSupported && mIsSupported) { |
Wyatt Riley | aa420d5 | 2017-07-03 15:14:42 -0700 | [diff] [blame] | 102 | tryRegister(); |
| 103 | // initially presume success, possible internal error could follow asynchornously |
destradaa | 6568d70 | 2014-10-27 12:47:41 -0700 | [diff] [blame] | 104 | result = RESULT_SUCCESS; |
| 105 | } else { |
| 106 | // at this point if the supported flag is not set, the notification will be sent |
| 107 | // asynchronously in the future |
Anil Admal | 98d49b7 | 2019-02-06 15:26:33 -0800 | [diff] [blame] | 108 | return; |
destradaa | 6568d70 | 2014-10-27 12:47:41 -0700 | [diff] [blame] | 109 | } |
Anil Admal | 98d49b7 | 2019-02-06 15:26:33 -0800 | [diff] [blame] | 110 | post(identifiedListener, getHandlerOperation(result)); |
destradaa | 6568d70 | 2014-10-27 12:47:41 -0700 | [diff] [blame] | 111 | } |
destradaa | ea8a8a6 | 2014-06-23 18:19:03 -0700 | [diff] [blame] | 112 | } |
| 113 | |
Anil Admal | 98d49b7 | 2019-02-06 15:26:33 -0800 | [diff] [blame] | 114 | /** |
| 115 | * Remove GNSS data listener {@code listener}. |
| 116 | */ |
destradaa | 6568d70 | 2014-10-27 12:47:41 -0700 | [diff] [blame] | 117 | public void removeListener(@NonNull TListener listener) { |
Daulet Zhanguzin | 90e91ce | 2020-01-02 17:37:10 +0000 | [diff] [blame] | 118 | Objects.requireNonNull(listener, "Attempted to remove a 'null' listener."); |
destradaa | ea8a8a6 | 2014-06-23 18:19:03 -0700 | [diff] [blame] | 119 | synchronized (mListenerMap) { |
Anil Admal | 98d49b7 | 2019-02-06 15:26:33 -0800 | [diff] [blame] | 120 | mListenerMap.remove(listener.asBinder()); |
destradaa | 6568d70 | 2014-10-27 12:47:41 -0700 | [diff] [blame] | 121 | if (mListenerMap.isEmpty()) { |
| 122 | tryUnregister(); |
destradaa | ea8a8a6 | 2014-06-23 18:19:03 -0700 | [diff] [blame] | 123 | } |
| 124 | } |
destradaa | ea8a8a6 | 2014-06-23 18:19:03 -0700 | [diff] [blame] | 125 | } |
| 126 | |
destradaa | 6568d70 | 2014-10-27 12:47:41 -0700 | [diff] [blame] | 127 | protected abstract boolean isAvailableInPlatform(); |
| 128 | protected abstract boolean isGpsEnabled(); |
gomo | 48f1a64 | 2017-11-10 20:35:46 -0800 | [diff] [blame] | 129 | // must access only on handler thread |
| 130 | protected abstract int registerWithService(); |
Wyatt Riley | aa420d5 | 2017-07-03 15:14:42 -0700 | [diff] [blame] | 131 | protected abstract void unregisterFromService(); // must access only on handler thread |
destradaa | 6568d70 | 2014-10-27 12:47:41 -0700 | [diff] [blame] | 132 | protected abstract ListenerOperation<TListener> getHandlerOperation(int result); |
destradaa | ea8a8a6 | 2014-06-23 18:19:03 -0700 | [diff] [blame] | 133 | |
| 134 | protected interface ListenerOperation<TListener extends IInterface> { |
Anil Admal | 08b9612 | 2019-01-30 16:55:05 -0800 | [diff] [blame] | 135 | void execute(TListener listener, CallerIdentity callerIdentity) throws RemoteException; |
destradaa | ea8a8a6 | 2014-06-23 18:19:03 -0700 | [diff] [blame] | 136 | } |
| 137 | |
destradaa | 6568d70 | 2014-10-27 12:47:41 -0700 | [diff] [blame] | 138 | protected void foreach(ListenerOperation<TListener> operation) { |
destradaa | ea8a8a6 | 2014-06-23 18:19:03 -0700 | [diff] [blame] | 139 | synchronized (mListenerMap) { |
destradaa | 6568d70 | 2014-10-27 12:47:41 -0700 | [diff] [blame] | 140 | foreachUnsafe(operation); |
destradaa | ea8a8a6 | 2014-06-23 18:19:03 -0700 | [diff] [blame] | 141 | } |
destradaa | 6568d70 | 2014-10-27 12:47:41 -0700 | [diff] [blame] | 142 | } |
destradaa | ea8a8a6 | 2014-06-23 18:19:03 -0700 | [diff] [blame] | 143 | |
destradaa | 13a60b0 | 2015-01-15 18:36:01 -0800 | [diff] [blame] | 144 | protected void setSupported(boolean value) { |
destradaa | 6568d70 | 2014-10-27 12:47:41 -0700 | [diff] [blame] | 145 | synchronized (mListenerMap) { |
| 146 | mHasIsSupported = true; |
| 147 | mIsSupported = value; |
destradaa | 13a60b0 | 2015-01-15 18:36:01 -0800 | [diff] [blame] | 148 | } |
| 149 | } |
| 150 | |
Wyatt Riley | aa420d5 | 2017-07-03 15:14:42 -0700 | [diff] [blame] | 151 | protected void tryUpdateRegistrationWithService() { |
destradaa | 13a60b0 | 2015-01-15 18:36:01 -0800 | [diff] [blame] | 152 | synchronized (mListenerMap) { |
| 153 | if (!isGpsEnabled()) { |
| 154 | tryUnregister(); |
Wyatt Riley | aa420d5 | 2017-07-03 15:14:42 -0700 | [diff] [blame] | 155 | return; |
destradaa | 13a60b0 | 2015-01-15 18:36:01 -0800 | [diff] [blame] | 156 | } |
| 157 | if (mListenerMap.isEmpty()) { |
Wyatt Riley | aa420d5 | 2017-07-03 15:14:42 -0700 | [diff] [blame] | 158 | return; |
destradaa | 13a60b0 | 2015-01-15 18:36:01 -0800 | [diff] [blame] | 159 | } |
Wyatt Riley | aa420d5 | 2017-07-03 15:14:42 -0700 | [diff] [blame] | 160 | tryRegister(); |
destradaa | 13a60b0 | 2015-01-15 18:36:01 -0800 | [diff] [blame] | 161 | } |
| 162 | } |
| 163 | |
| 164 | protected void updateResult() { |
| 165 | synchronized (mListenerMap) { |
| 166 | int newResult = calculateCurrentResultUnsafe(); |
| 167 | if (mLastReportedResult == newResult) { |
| 168 | return; |
| 169 | } |
| 170 | foreachUnsafe(getHandlerOperation(newResult)); |
| 171 | mLastReportedResult = newResult; |
destradaa | ea8a8a6 | 2014-06-23 18:19:03 -0700 | [diff] [blame] | 172 | } |
| 173 | } |
| 174 | |
Anil Admal | 08b9612 | 2019-01-30 16:55:05 -0800 | [diff] [blame] | 175 | protected boolean hasPermission(Context context, CallerIdentity callerIdentity) { |
| 176 | if (LocationPermissionUtil.doesCallerReportToAppOps(context, callerIdentity)) { |
| 177 | // The caller is identified as a location provider that will report location |
| 178 | // access to AppOps. Skip noteOp but do checkOp to check for location permission. |
| 179 | return mAppOps.checkOpNoThrow(AppOpsManager.OP_FINE_LOCATION, callerIdentity.mUid, |
| 180 | callerIdentity.mPackageName) == AppOpsManager.MODE_ALLOWED; |
| 181 | } |
| 182 | |
| 183 | return mAppOps.noteOpNoThrow(AppOpsManager.OP_FINE_LOCATION, callerIdentity.mUid, |
Philip P. Moltmann | 6c7377c | 2019-09-27 17:06:25 -0700 | [diff] [blame] | 184 | callerIdentity.mPackageName, callerIdentity.mFeatureId, |
Philip P. Moltmann | bc8b48a | 2019-09-27 17:06:25 -0700 | [diff] [blame] | 185 | "Location sent to " + callerIdentity.mListenerIdentifier) |
| 186 | == AppOpsManager.MODE_ALLOWED; |
Anil Admal | 75b9fd6 | 2018-11-28 11:22:50 -0800 | [diff] [blame] | 187 | } |
| 188 | |
| 189 | protected void logPermissionDisabledEventNotReported(String tag, String packageName, |
| 190 | String event) { |
| 191 | if (Log.isLoggable(tag, Log.DEBUG)) { |
| 192 | Log.d(tag, "Location permission disabled. Skipping " + event + " reporting for app: " |
| 193 | + packageName); |
destradaa | 6568d70 | 2014-10-27 12:47:41 -0700 | [diff] [blame] | 194 | } |
| 195 | } |
| 196 | |
Anil Admal | 75b9fd6 | 2018-11-28 11:22:50 -0800 | [diff] [blame] | 197 | private void foreachUnsafe(ListenerOperation<TListener> operation) { |
Anil Admal | 98d49b7 | 2019-02-06 15:26:33 -0800 | [diff] [blame] | 198 | for (IdentifiedListener identifiedListener : mListenerMap.values()) { |
| 199 | post(identifiedListener, operation); |
Anil Admal | 75b9fd6 | 2018-11-28 11:22:50 -0800 | [diff] [blame] | 200 | } |
| 201 | } |
| 202 | |
Anil Admal | 98d49b7 | 2019-02-06 15:26:33 -0800 | [diff] [blame] | 203 | private void post(IdentifiedListener identifiedListener, |
| 204 | ListenerOperation<TListener> operation) { |
destradaa | 6568d70 | 2014-10-27 12:47:41 -0700 | [diff] [blame] | 205 | if (operation != null) { |
Anil Admal | 98d49b7 | 2019-02-06 15:26:33 -0800 | [diff] [blame] | 206 | mHandler.post(new HandlerRunnable(identifiedListener, operation)); |
destradaa | 6568d70 | 2014-10-27 12:47:41 -0700 | [diff] [blame] | 207 | } |
| 208 | } |
| 209 | |
Wyatt Riley | aa420d5 | 2017-07-03 15:14:42 -0700 | [diff] [blame] | 210 | private void tryRegister() { |
| 211 | mHandler.post(new Runnable() { |
gomo | 48f1a64 | 2017-11-10 20:35:46 -0800 | [diff] [blame] | 212 | int registrationState = RESULT_INTERNAL_ERROR; |
Wyatt Riley | aa420d5 | 2017-07-03 15:14:42 -0700 | [diff] [blame] | 213 | @Override |
| 214 | public void run() { |
| 215 | if (!mIsRegistered) { |
gomo | 48f1a64 | 2017-11-10 20:35:46 -0800 | [diff] [blame] | 216 | registrationState = registerWithService(); |
| 217 | mIsRegistered = registrationState == RESULT_SUCCESS; |
Wyatt Riley | aa420d5 | 2017-07-03 15:14:42 -0700 | [diff] [blame] | 218 | } |
| 219 | if (!mIsRegistered) { |
| 220 | // post back a failure |
Anil Admal | 75b9fd6 | 2018-11-28 11:22:50 -0800 | [diff] [blame] | 221 | mHandler.post(() -> { |
| 222 | synchronized (mListenerMap) { |
| 223 | foreachUnsafe(getHandlerOperation(registrationState)); |
Wyatt Riley | aa420d5 | 2017-07-03 15:14:42 -0700 | [diff] [blame] | 224 | } |
| 225 | }); |
| 226 | } |
| 227 | } |
| 228 | }); |
destradaa | 6568d70 | 2014-10-27 12:47:41 -0700 | [diff] [blame] | 229 | } |
| 230 | |
| 231 | private void tryUnregister() { |
Anil Admal | 75b9fd6 | 2018-11-28 11:22:50 -0800 | [diff] [blame] | 232 | mHandler.post(() -> { |
| 233 | if (!mIsRegistered) { |
| 234 | return; |
| 235 | } |
| 236 | unregisterFromService(); |
| 237 | mIsRegistered = false; |
Wyatt Riley | aa420d5 | 2017-07-03 15:14:42 -0700 | [diff] [blame] | 238 | } |
Anil Admal | 75b9fd6 | 2018-11-28 11:22:50 -0800 | [diff] [blame] | 239 | ); |
destradaa | 6568d70 | 2014-10-27 12:47:41 -0700 | [diff] [blame] | 240 | } |
| 241 | |
destradaa | 13a60b0 | 2015-01-15 18:36:01 -0800 | [diff] [blame] | 242 | private int calculateCurrentResultUnsafe() { |
| 243 | // update statuses we already know about, starting from the ones that will never change |
| 244 | if (!isAvailableInPlatform()) { |
| 245 | return RESULT_NOT_AVAILABLE; |
| 246 | } |
| 247 | if (!mHasIsSupported || mListenerMap.isEmpty()) { |
| 248 | // we'll update once we have a supported status available |
| 249 | return RESULT_UNKNOWN; |
| 250 | } |
| 251 | if (!mIsSupported) { |
| 252 | return RESULT_NOT_SUPPORTED; |
| 253 | } |
| 254 | if (!isGpsEnabled()) { |
| 255 | return RESULT_GPS_LOCATION_DISABLED; |
| 256 | } |
| 257 | return RESULT_SUCCESS; |
| 258 | } |
| 259 | |
Anil Admal | 98d49b7 | 2019-02-06 15:26:33 -0800 | [diff] [blame] | 260 | private class IdentifiedListener { |
destradaa | ea8a8a6 | 2014-06-23 18:19:03 -0700 | [diff] [blame] | 261 | private final TListener mListener; |
Anil Admal | 08b9612 | 2019-01-30 16:55:05 -0800 | [diff] [blame] | 262 | private final CallerIdentity mCallerIdentity; |
destradaa | ea8a8a6 | 2014-06-23 18:19:03 -0700 | [diff] [blame] | 263 | |
Anil Admal | 98d49b7 | 2019-02-06 15:26:33 -0800 | [diff] [blame] | 264 | private IdentifiedListener(@NonNull TListener listener, CallerIdentity callerIdentity) { |
destradaa | ea8a8a6 | 2014-06-23 18:19:03 -0700 | [diff] [blame] | 265 | mListener = listener; |
Anil Admal | 08b9612 | 2019-01-30 16:55:05 -0800 | [diff] [blame] | 266 | mCallerIdentity = callerIdentity; |
destradaa | ea8a8a6 | 2014-06-23 18:19:03 -0700 | [diff] [blame] | 267 | } |
destradaa | ea8a8a6 | 2014-06-23 18:19:03 -0700 | [diff] [blame] | 268 | } |
destradaa | 6568d70 | 2014-10-27 12:47:41 -0700 | [diff] [blame] | 269 | |
| 270 | private class HandlerRunnable implements Runnable { |
Anil Admal | 98d49b7 | 2019-02-06 15:26:33 -0800 | [diff] [blame] | 271 | private final IdentifiedListener mIdentifiedListener; |
destradaa | 6568d70 | 2014-10-27 12:47:41 -0700 | [diff] [blame] | 272 | private final ListenerOperation<TListener> mOperation; |
| 273 | |
Anil Admal | 98d49b7 | 2019-02-06 15:26:33 -0800 | [diff] [blame] | 274 | private HandlerRunnable(IdentifiedListener identifiedListener, |
| 275 | ListenerOperation<TListener> operation) { |
| 276 | mIdentifiedListener = identifiedListener; |
destradaa | 6568d70 | 2014-10-27 12:47:41 -0700 | [diff] [blame] | 277 | mOperation = operation; |
| 278 | } |
| 279 | |
| 280 | @Override |
| 281 | public void run() { |
| 282 | try { |
Anil Admal | 98d49b7 | 2019-02-06 15:26:33 -0800 | [diff] [blame] | 283 | mOperation.execute(mIdentifiedListener.mListener, |
| 284 | mIdentifiedListener.mCallerIdentity); |
destradaa | 6568d70 | 2014-10-27 12:47:41 -0700 | [diff] [blame] | 285 | } catch (RemoteException e) { |
| 286 | Log.v(mTag, "Error in monitored listener.", e); |
| 287 | } |
| 288 | } |
| 289 | } |
destradaa | ea8a8a6 | 2014-06-23 18:19:03 -0700 | [diff] [blame] | 290 | } |