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