The Android Open Source Project | edbf3b6 | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (C) 2005 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 | |
Mathias Agopian | c5b2c0b | 2009-05-19 19:08:10 -0700 | [diff] [blame] | 17 | #include <binder/Binder.h> |
The Android Open Source Project | edbf3b6 | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 18 | |
Bailey Forrest | 6913c46 | 2015-08-18 17:15:10 -0700 | [diff] [blame] | 19 | #include <atomic> |
Steven Moreland | d138798 | 2019-07-24 00:12:19 +0000 | [diff] [blame] | 20 | #include <utils/misc.h> |
Mathias Agopian | c5b2c0b | 2009-05-19 19:08:10 -0700 | [diff] [blame] | 21 | #include <binder/BpBinder.h> |
| 22 | #include <binder/IInterface.h> |
Dianne Hackborn | 23eb1e2 | 2015-10-07 17:35:27 -0700 | [diff] [blame] | 23 | #include <binder/IResultReceiver.h> |
Dianne Hackborn | 1941a40 | 2016-08-29 12:30:43 -0700 | [diff] [blame] | 24 | #include <binder/IShellCallback.h> |
Mathias Agopian | c5b2c0b | 2009-05-19 19:08:10 -0700 | [diff] [blame] | 25 | #include <binder/Parcel.h> |
The Android Open Source Project | edbf3b6 | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 26 | |
| 27 | #include <stdio.h> |
| 28 | |
| 29 | namespace android { |
| 30 | |
| 31 | // --------------------------------------------------------------------------- |
| 32 | |
Mathias Agopian | 83c0446 | 2009-05-22 19:00:22 -0700 | [diff] [blame] | 33 | IBinder::IBinder() |
| 34 | : RefBase() |
| 35 | { |
| 36 | } |
| 37 | |
| 38 | IBinder::~IBinder() |
| 39 | { |
| 40 | } |
| 41 | |
| 42 | // --------------------------------------------------------------------------- |
| 43 | |
Colin Cross | 6f4f3ab | 2014-02-05 17:42:44 -0800 | [diff] [blame] | 44 | sp<IInterface> IBinder::queryLocalInterface(const String16& /*descriptor*/) |
The Android Open Source Project | edbf3b6 | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 45 | { |
Yi Kong | fdd8da9 | 2018-06-07 17:52:27 -0700 | [diff] [blame] | 46 | return nullptr; |
The Android Open Source Project | edbf3b6 | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 47 | } |
| 48 | |
| 49 | BBinder* IBinder::localBinder() |
| 50 | { |
Yi Kong | fdd8da9 | 2018-06-07 17:52:27 -0700 | [diff] [blame] | 51 | return nullptr; |
The Android Open Source Project | edbf3b6 | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 52 | } |
| 53 | |
| 54 | BpBinder* IBinder::remoteBinder() |
| 55 | { |
Yi Kong | fdd8da9 | 2018-06-07 17:52:27 -0700 | [diff] [blame] | 56 | return nullptr; |
The Android Open Source Project | edbf3b6 | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 57 | } |
| 58 | |
| 59 | bool IBinder::checkSubclass(const void* /*subclassID*/) const |
| 60 | { |
| 61 | return false; |
| 62 | } |
| 63 | |
Dianne Hackborn | 23eb1e2 | 2015-10-07 17:35:27 -0700 | [diff] [blame] | 64 | |
Dianne Hackborn | f2bf93b | 2015-10-14 15:13:02 -0700 | [diff] [blame] | 65 | status_t IBinder::shellCommand(const sp<IBinder>& target, int in, int out, int err, |
Dianne Hackborn | 1941a40 | 2016-08-29 12:30:43 -0700 | [diff] [blame] | 66 | Vector<String16>& args, const sp<IShellCallback>& callback, |
| 67 | const sp<IResultReceiver>& resultReceiver) |
Dianne Hackborn | 23eb1e2 | 2015-10-07 17:35:27 -0700 | [diff] [blame] | 68 | { |
Dianne Hackborn | f2bf93b | 2015-10-14 15:13:02 -0700 | [diff] [blame] | 69 | Parcel send; |
| 70 | Parcel reply; |
| 71 | send.writeFileDescriptor(in); |
| 72 | send.writeFileDescriptor(out); |
| 73 | send.writeFileDescriptor(err); |
| 74 | const size_t numArgs = args.size(); |
| 75 | send.writeInt32(numArgs); |
| 76 | for (size_t i = 0; i < numArgs; i++) { |
| 77 | send.writeString16(args[i]); |
Dianne Hackborn | 23eb1e2 | 2015-10-07 17:35:27 -0700 | [diff] [blame] | 78 | } |
Yi Kong | fdd8da9 | 2018-06-07 17:52:27 -0700 | [diff] [blame] | 79 | send.writeStrongBinder(callback != nullptr ? IInterface::asBinder(callback) : nullptr); |
| 80 | send.writeStrongBinder(resultReceiver != nullptr ? IInterface::asBinder(resultReceiver) : nullptr); |
Dianne Hackborn | f2bf93b | 2015-10-14 15:13:02 -0700 | [diff] [blame] | 81 | return target->transact(SHELL_COMMAND_TRANSACTION, send, &reply); |
Dianne Hackborn | 23eb1e2 | 2015-10-07 17:35:27 -0700 | [diff] [blame] | 82 | } |
| 83 | |
The Android Open Source Project | edbf3b6 | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 84 | // --------------------------------------------------------------------------- |
| 85 | |
| 86 | class BBinder::Extras |
| 87 | { |
| 88 | public: |
Steven Moreland | 3085a47 | 2018-12-26 13:59:23 -0800 | [diff] [blame] | 89 | // unlocked objects |
| 90 | bool mRequestingSid = false; |
| 91 | |
| 92 | // for below objects |
The Android Open Source Project | edbf3b6 | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 93 | Mutex mLock; |
| 94 | BpBinder::ObjectManager mObjects; |
| 95 | }; |
| 96 | |
| 97 | // --------------------------------------------------------------------------- |
| 98 | |
Bailey Forrest | 6913c46 | 2015-08-18 17:15:10 -0700 | [diff] [blame] | 99 | BBinder::BBinder() : mExtras(nullptr) |
The Android Open Source Project | edbf3b6 | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 100 | { |
| 101 | } |
| 102 | |
| 103 | bool BBinder::isBinderAlive() const |
| 104 | { |
| 105 | return true; |
| 106 | } |
| 107 | |
| 108 | status_t BBinder::pingBinder() |
| 109 | { |
| 110 | return NO_ERROR; |
| 111 | } |
| 112 | |
Mathias Agopian | 83c0446 | 2009-05-22 19:00:22 -0700 | [diff] [blame] | 113 | const String16& BBinder::getInterfaceDescriptor() const |
The Android Open Source Project | edbf3b6 | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 114 | { |
Dan Egnor | 386a332 | 2010-05-06 00:55:09 -0700 | [diff] [blame] | 115 | // This is a local static rather than a global static, |
| 116 | // to avoid static initializer ordering issues. |
| 117 | static String16 sEmptyDescriptor; |
Steve Block | 32397c1 | 2012-01-05 23:22:43 +0000 | [diff] [blame] | 118 | ALOGW("reached BBinder::getInterfaceDescriptor (this=%p)", this); |
Mathias Agopian | 83c0446 | 2009-05-22 19:00:22 -0700 | [diff] [blame] | 119 | return sEmptyDescriptor; |
The Android Open Source Project | edbf3b6 | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 120 | } |
| 121 | |
Jiyong Park | b86c866 | 2018-10-29 23:01:57 +0900 | [diff] [blame] | 122 | // NOLINTNEXTLINE(google-default-arguments) |
The Android Open Source Project | edbf3b6 | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 123 | status_t BBinder::transact( |
| 124 | uint32_t code, const Parcel& data, Parcel* reply, uint32_t flags) |
| 125 | { |
| 126 | data.setDataPosition(0); |
Steven Moreland | dea3cf9 | 2019-07-16 18:06:55 -0700 | [diff] [blame^] | 127 | data.setTransactingBinder(this); |
The Android Open Source Project | edbf3b6 | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 128 | |
| 129 | status_t err = NO_ERROR; |
| 130 | switch (code) { |
| 131 | case PING_TRANSACTION: |
Steven Moreland | 6e69d65 | 2019-07-10 14:17:55 -0700 | [diff] [blame] | 132 | err = pingBinder(); |
The Android Open Source Project | edbf3b6 | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 133 | break; |
| 134 | default: |
| 135 | err = onTransact(code, data, reply, flags); |
| 136 | break; |
| 137 | } |
| 138 | |
Steven Moreland | dea3cf9 | 2019-07-16 18:06:55 -0700 | [diff] [blame^] | 139 | // In case this is being transacted on in the same process. |
Yi Kong | fdd8da9 | 2018-06-07 17:52:27 -0700 | [diff] [blame] | 140 | if (reply != nullptr) { |
The Android Open Source Project | edbf3b6 | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 141 | reply->setDataPosition(0); |
Steven Moreland | dea3cf9 | 2019-07-16 18:06:55 -0700 | [diff] [blame^] | 142 | reply->setTransactingBinder(this); |
The Android Open Source Project | edbf3b6 | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 143 | } |
| 144 | |
| 145 | return err; |
| 146 | } |
| 147 | |
Jiyong Park | b86c866 | 2018-10-29 23:01:57 +0900 | [diff] [blame] | 148 | // NOLINTNEXTLINE(google-default-arguments) |
The Android Open Source Project | edbf3b6 | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 149 | status_t BBinder::linkToDeath( |
Colin Cross | 6f4f3ab | 2014-02-05 17:42:44 -0800 | [diff] [blame] | 150 | const sp<DeathRecipient>& /*recipient*/, void* /*cookie*/, |
| 151 | uint32_t /*flags*/) |
The Android Open Source Project | edbf3b6 | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 152 | { |
| 153 | return INVALID_OPERATION; |
| 154 | } |
| 155 | |
Jiyong Park | b86c866 | 2018-10-29 23:01:57 +0900 | [diff] [blame] | 156 | // NOLINTNEXTLINE(google-default-arguments) |
The Android Open Source Project | edbf3b6 | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 157 | status_t BBinder::unlinkToDeath( |
Colin Cross | 6f4f3ab | 2014-02-05 17:42:44 -0800 | [diff] [blame] | 158 | const wp<DeathRecipient>& /*recipient*/, void* /*cookie*/, |
| 159 | uint32_t /*flags*/, wp<DeathRecipient>* /*outRecipient*/) |
The Android Open Source Project | edbf3b6 | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 160 | { |
| 161 | return INVALID_OPERATION; |
| 162 | } |
| 163 | |
Dianne Hackborn | 23eb1e2 | 2015-10-07 17:35:27 -0700 | [diff] [blame] | 164 | status_t BBinder::dump(int /*fd*/, const Vector<String16>& /*args*/) |
The Android Open Source Project | edbf3b6 | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 165 | { |
| 166 | return NO_ERROR; |
| 167 | } |
| 168 | |
| 169 | void BBinder::attachObject( |
| 170 | const void* objectID, void* object, void* cleanupCookie, |
| 171 | object_cleanup_func func) |
| 172 | { |
Steven Moreland | 3085a47 | 2018-12-26 13:59:23 -0800 | [diff] [blame] | 173 | Extras* e = getOrCreateExtras(); |
| 174 | if (!e) return; // out of memory |
The Android Open Source Project | edbf3b6 | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 175 | |
| 176 | AutoMutex _l(e->mLock); |
| 177 | e->mObjects.attach(objectID, object, cleanupCookie, func); |
| 178 | } |
| 179 | |
| 180 | void* BBinder::findObject(const void* objectID) const |
| 181 | { |
Bailey Forrest | 6913c46 | 2015-08-18 17:15:10 -0700 | [diff] [blame] | 182 | Extras* e = mExtras.load(std::memory_order_acquire); |
Yi Kong | fdd8da9 | 2018-06-07 17:52:27 -0700 | [diff] [blame] | 183 | if (!e) return nullptr; |
The Android Open Source Project | edbf3b6 | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 184 | |
| 185 | AutoMutex _l(e->mLock); |
| 186 | return e->mObjects.find(objectID); |
| 187 | } |
| 188 | |
| 189 | void BBinder::detachObject(const void* objectID) |
| 190 | { |
Bailey Forrest | 6913c46 | 2015-08-18 17:15:10 -0700 | [diff] [blame] | 191 | Extras* e = mExtras.load(std::memory_order_acquire); |
The Android Open Source Project | edbf3b6 | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 192 | if (!e) return; |
| 193 | |
| 194 | AutoMutex _l(e->mLock); |
| 195 | e->mObjects.detach(objectID); |
| 196 | } |
| 197 | |
| 198 | BBinder* BBinder::localBinder() |
| 199 | { |
| 200 | return this; |
| 201 | } |
| 202 | |
Steven Moreland | 3085a47 | 2018-12-26 13:59:23 -0800 | [diff] [blame] | 203 | bool BBinder::isRequestingSid() |
| 204 | { |
| 205 | Extras* e = mExtras.load(std::memory_order_acquire); |
| 206 | |
| 207 | return e && e->mRequestingSid; |
| 208 | } |
| 209 | |
| 210 | void BBinder::setRequestingSid(bool requestingSid) |
| 211 | { |
| 212 | Extras* e = mExtras.load(std::memory_order_acquire); |
| 213 | |
| 214 | if (!e) { |
| 215 | // default is false. Most things don't need sids, so avoiding allocations when possible. |
| 216 | if (!requestingSid) { |
| 217 | return; |
| 218 | } |
| 219 | |
| 220 | e = getOrCreateExtras(); |
| 221 | if (!e) return; // out of memory |
| 222 | } |
| 223 | |
| 224 | e->mRequestingSid = true; |
| 225 | } |
| 226 | |
The Android Open Source Project | edbf3b6 | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 227 | BBinder::~BBinder() |
| 228 | { |
Bailey Forrest | 6913c46 | 2015-08-18 17:15:10 -0700 | [diff] [blame] | 229 | Extras* e = mExtras.load(std::memory_order_relaxed); |
Hans Boehm | 3effaba | 2014-08-12 22:56:00 +0000 | [diff] [blame] | 230 | if (e) delete e; |
The Android Open Source Project | edbf3b6 | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 231 | } |
| 232 | |
| 233 | |
Jiyong Park | b86c866 | 2018-10-29 23:01:57 +0900 | [diff] [blame] | 234 | // NOLINTNEXTLINE(google-default-arguments) |
The Android Open Source Project | edbf3b6 | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 235 | status_t BBinder::onTransact( |
Colin Cross | 6f4f3ab | 2014-02-05 17:42:44 -0800 | [diff] [blame] | 236 | uint32_t code, const Parcel& data, Parcel* reply, uint32_t /*flags*/) |
The Android Open Source Project | edbf3b6 | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 237 | { |
| 238 | switch (code) { |
| 239 | case INTERFACE_TRANSACTION: |
| 240 | reply->writeString16(getInterfaceDescriptor()); |
| 241 | return NO_ERROR; |
| 242 | |
| 243 | case DUMP_TRANSACTION: { |
| 244 | int fd = data.readFileDescriptor(); |
| 245 | int argc = data.readInt32(); |
| 246 | Vector<String16> args; |
| 247 | for (int i = 0; i < argc && data.dataAvail() > 0; i++) { |
| 248 | args.add(data.readString16()); |
| 249 | } |
| 250 | return dump(fd, args); |
| 251 | } |
Dianne Hackborn | 555f89d | 2012-05-08 18:54:22 -0700 | [diff] [blame] | 252 | |
Dianne Hackborn | 23eb1e2 | 2015-10-07 17:35:27 -0700 | [diff] [blame] | 253 | case SHELL_COMMAND_TRANSACTION: { |
| 254 | int in = data.readFileDescriptor(); |
| 255 | int out = data.readFileDescriptor(); |
| 256 | int err = data.readFileDescriptor(); |
| 257 | int argc = data.readInt32(); |
| 258 | Vector<String16> args; |
| 259 | for (int i = 0; i < argc && data.dataAvail() > 0; i++) { |
| 260 | args.add(data.readString16()); |
| 261 | } |
Dianne Hackborn | 1941a40 | 2016-08-29 12:30:43 -0700 | [diff] [blame] | 262 | sp<IShellCallback> shellCallback = IShellCallback::asInterface( |
| 263 | data.readStrongBinder()); |
Dianne Hackborn | 23eb1e2 | 2015-10-07 17:35:27 -0700 | [diff] [blame] | 264 | sp<IResultReceiver> resultReceiver = IResultReceiver::asInterface( |
| 265 | data.readStrongBinder()); |
| 266 | |
Dianne Hackborn | f2bf93b | 2015-10-14 15:13:02 -0700 | [diff] [blame] | 267 | // XXX can't add virtuals until binaries are updated. |
| 268 | //return shellCommand(in, out, err, args, resultReceiver); |
Christopher Wiley | 0a9a1c1 | 2016-07-20 08:28:14 -0700 | [diff] [blame] | 269 | (void)in; |
| 270 | (void)out; |
| 271 | (void)err; |
| 272 | |
Yi Kong | fdd8da9 | 2018-06-07 17:52:27 -0700 | [diff] [blame] | 273 | if (resultReceiver != nullptr) { |
Dianne Hackborn | f2bf93b | 2015-10-14 15:13:02 -0700 | [diff] [blame] | 274 | resultReceiver->send(INVALID_OPERATION); |
| 275 | } |
Martijn Coenen | aa6ee99 | 2017-08-17 15:38:08 +0200 | [diff] [blame] | 276 | |
| 277 | return NO_ERROR; |
Dianne Hackborn | 23eb1e2 | 2015-10-07 17:35:27 -0700 | [diff] [blame] | 278 | } |
| 279 | |
Dianne Hackborn | 555f89d | 2012-05-08 18:54:22 -0700 | [diff] [blame] | 280 | case SYSPROPS_TRANSACTION: { |
| 281 | report_sysprop_change(); |
| 282 | return NO_ERROR; |
| 283 | } |
| 284 | |
The Android Open Source Project | edbf3b6 | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 285 | default: |
| 286 | return UNKNOWN_TRANSACTION; |
| 287 | } |
| 288 | } |
| 289 | |
Steven Moreland | 3085a47 | 2018-12-26 13:59:23 -0800 | [diff] [blame] | 290 | BBinder::Extras* BBinder::getOrCreateExtras() |
| 291 | { |
| 292 | Extras* e = mExtras.load(std::memory_order_acquire); |
| 293 | |
| 294 | if (!e) { |
| 295 | e = new Extras; |
| 296 | Extras* expected = nullptr; |
| 297 | if (!mExtras.compare_exchange_strong(expected, e, |
| 298 | std::memory_order_release, |
| 299 | std::memory_order_acquire)) { |
| 300 | delete e; |
| 301 | e = expected; // Filled in by CAS |
| 302 | } |
| 303 | if (e == nullptr) return nullptr; // out of memory |
| 304 | } |
| 305 | |
| 306 | return e; |
| 307 | } |
| 308 | |
The Android Open Source Project | edbf3b6 | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 309 | // --------------------------------------------------------------------------- |
| 310 | |
| 311 | enum { |
| 312 | // This is used to transfer ownership of the remote binder from |
| 313 | // the BpRefBase object holding it (when it is constructed), to the |
| 314 | // owner of the BpRefBase object when it first acquires that BpRefBase. |
| 315 | kRemoteAcquired = 0x00000001 |
| 316 | }; |
| 317 | |
| 318 | BpRefBase::BpRefBase(const sp<IBinder>& o) |
Yi Kong | fdd8da9 | 2018-06-07 17:52:27 -0700 | [diff] [blame] | 319 | : mRemote(o.get()), mRefs(nullptr), mState(0) |
The Android Open Source Project | edbf3b6 | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 320 | { |
| 321 | extendObjectLifetime(OBJECT_LIFETIME_WEAK); |
| 322 | |
| 323 | if (mRemote) { |
| 324 | mRemote->incStrong(this); // Removed on first IncStrong(). |
| 325 | mRefs = mRemote->createWeak(this); // Held for our entire lifetime. |
| 326 | } |
| 327 | } |
| 328 | |
| 329 | BpRefBase::~BpRefBase() |
| 330 | { |
| 331 | if (mRemote) { |
Bailey Forrest | 6913c46 | 2015-08-18 17:15:10 -0700 | [diff] [blame] | 332 | if (!(mState.load(std::memory_order_relaxed)&kRemoteAcquired)) { |
The Android Open Source Project | edbf3b6 | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 333 | mRemote->decStrong(this); |
| 334 | } |
| 335 | mRefs->decWeak(this); |
| 336 | } |
| 337 | } |
| 338 | |
| 339 | void BpRefBase::onFirstRef() |
| 340 | { |
Bailey Forrest | 6913c46 | 2015-08-18 17:15:10 -0700 | [diff] [blame] | 341 | mState.fetch_or(kRemoteAcquired, std::memory_order_relaxed); |
The Android Open Source Project | edbf3b6 | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 342 | } |
| 343 | |
Colin Cross | 6f4f3ab | 2014-02-05 17:42:44 -0800 | [diff] [blame] | 344 | void BpRefBase::onLastStrongRef(const void* /*id*/) |
The Android Open Source Project | edbf3b6 | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 345 | { |
| 346 | if (mRemote) { |
| 347 | mRemote->decStrong(this); |
| 348 | } |
| 349 | } |
| 350 | |
Colin Cross | 6f4f3ab | 2014-02-05 17:42:44 -0800 | [diff] [blame] | 351 | bool BpRefBase::onIncStrongAttempted(uint32_t /*flags*/, const void* /*id*/) |
The Android Open Source Project | edbf3b6 | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 352 | { |
| 353 | return mRemote ? mRefs->attemptIncStrong(this) : false; |
| 354 | } |
| 355 | |
| 356 | // --------------------------------------------------------------------------- |
| 357 | |
| 358 | }; // namespace android |