The Android Open Source Project | 89fa4ad | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 1 | /* |
| 2 | ** |
| 3 | ** Copyright (C) 2008 The Android Open Source Project |
| 4 | ** |
| 5 | ** Licensed under the Apache License, Version 2.0 (the "License"); |
| 6 | ** you may not use this file except in compliance with the License. |
| 7 | ** You may obtain a copy of the License at |
| 8 | ** |
| 9 | ** http://www.apache.org/licenses/LICENSE-2.0 |
| 10 | ** |
| 11 | ** Unless required by applicable law or agreed to in writing, software |
| 12 | ** distributed under the License is distributed on an "AS IS" BASIS, |
| 13 | ** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 14 | ** See the License for the specific language governing permissions and |
| 15 | ** limitations under the License. |
| 16 | */ |
| 17 | |
Mark Salyzyn | 34fb296 | 2014-06-18 16:30:56 -0700 | [diff] [blame] | 18 | #include <inttypes.h> |
The Android Open Source Project | 89fa4ad | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 19 | #include <stdint.h> |
| 20 | #include <sys/types.h> |
Mark Salyzyn | 34fb296 | 2014-06-18 16:30:56 -0700 | [diff] [blame] | 21 | |
Mathias Agopian | 7562408 | 2009-05-19 19:08:10 -0700 | [diff] [blame] | 22 | #include <binder/Parcel.h> |
Chris Watkins | 99f3160 | 2015-03-20 13:06:33 -0700 | [diff] [blame] | 23 | #include <media/IDataSource.h> |
Andreas Huber | 1b86fe0 | 2014-01-29 11:13:26 -0800 | [diff] [blame] | 24 | #include <media/IMediaHTTPService.h> |
The Android Open Source Project | 89fa4ad | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 25 | #include <media/IMediaMetadataRetriever.h> |
Andreas Huber | af8791e | 2011-03-21 10:25:44 -0700 | [diff] [blame] | 26 | #include <utils/String8.h> |
Sangkyu Lee | d01c148 | 2013-02-08 16:26:39 +0900 | [diff] [blame] | 27 | #include <utils/KeyedVector.h> |
The Android Open Source Project | 89fa4ad | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 28 | |
Dave Sparks | ec4dde7 | 2009-11-23 16:51:15 -0800 | [diff] [blame] | 29 | // The binder is supposed to propagate the scheduler group across |
| 30 | // the binder interface so that remote calls are executed with |
| 31 | // the same priority as local calls. This is currently not working |
| 32 | // so this change puts in a temporary hack to fix the issue with |
| 33 | // metadata retrieval which can be a huge CPU hit if done on a |
| 34 | // foreground thread. |
| 35 | #ifndef DISABLE_GROUP_SCHEDULE_HACK |
| 36 | |
Dave Sparks | f311c55 | 2009-11-23 19:51:33 -0800 | [diff] [blame] | 37 | #undef LOG_TAG |
Dave Sparks | ec4dde7 | 2009-11-23 16:51:15 -0800 | [diff] [blame] | 38 | #define LOG_TAG "IMediaMetadataRetriever" |
| 39 | #include <utils/Log.h> |
| 40 | #include <cutils/sched_policy.h> |
| 41 | |
| 42 | namespace android { |
| 43 | |
| 44 | static void sendSchedPolicy(Parcel& data) |
| 45 | { |
| 46 | SchedPolicy policy; |
Glenn Kasten | 0512ab5 | 2011-05-04 17:58:57 -0700 | [diff] [blame] | 47 | get_sched_policy(gettid(), &policy); |
Dave Sparks | ec4dde7 | 2009-11-23 16:51:15 -0800 | [diff] [blame] | 48 | data.writeInt32(policy); |
| 49 | } |
| 50 | |
| 51 | static void setSchedPolicy(const Parcel& data) |
| 52 | { |
| 53 | SchedPolicy policy = (SchedPolicy) data.readInt32(); |
Glenn Kasten | 0512ab5 | 2011-05-04 17:58:57 -0700 | [diff] [blame] | 54 | set_sched_policy(gettid(), policy); |
Dave Sparks | ec4dde7 | 2009-11-23 16:51:15 -0800 | [diff] [blame] | 55 | } |
| 56 | static void restoreSchedPolicy() |
| 57 | { |
Glenn Kasten | 0512ab5 | 2011-05-04 17:58:57 -0700 | [diff] [blame] | 58 | set_sched_policy(gettid(), SP_FOREGROUND); |
Dave Sparks | ec4dde7 | 2009-11-23 16:51:15 -0800 | [diff] [blame] | 59 | } |
| 60 | }; // end namespace android |
| 61 | #endif |
| 62 | |
The Android Open Source Project | 89fa4ad | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 63 | namespace android { |
| 64 | |
| 65 | enum { |
| 66 | DISCONNECT = IBinder::FIRST_CALL_TRANSACTION, |
| 67 | SET_DATA_SOURCE_URL, |
| 68 | SET_DATA_SOURCE_FD, |
Chris Watkins | 99f3160 | 2015-03-20 13:06:33 -0700 | [diff] [blame] | 69 | SET_DATA_SOURCE_CALLBACK, |
James Dong | 16afe2f | 2010-12-02 17:42:08 -0800 | [diff] [blame] | 70 | GET_FRAME_AT_TIME, |
Dave Sparks | ec4dde7 | 2009-11-23 16:51:15 -0800 | [diff] [blame] | 71 | EXTRACT_ALBUM_ART, |
The Android Open Source Project | 89fa4ad | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 72 | EXTRACT_METADATA, |
| 73 | }; |
| 74 | |
| 75 | class BpMediaMetadataRetriever: public BpInterface<IMediaMetadataRetriever> |
| 76 | { |
| 77 | public: |
| 78 | BpMediaMetadataRetriever(const sp<IBinder>& impl) |
| 79 | : BpInterface<IMediaMetadataRetriever>(impl) |
| 80 | { |
| 81 | } |
| 82 | |
| 83 | // disconnect from media metadata retriever service |
| 84 | void disconnect() |
| 85 | { |
| 86 | Parcel data, reply; |
| 87 | data.writeInterfaceToken(IMediaMetadataRetriever::getInterfaceDescriptor()); |
| 88 | remote()->transact(DISCONNECT, data, &reply); |
| 89 | } |
| 90 | |
Andreas Huber | af8791e | 2011-03-21 10:25:44 -0700 | [diff] [blame] | 91 | status_t setDataSource( |
Andreas Huber | 1b86fe0 | 2014-01-29 11:13:26 -0800 | [diff] [blame] | 92 | const sp<IMediaHTTPService> &httpService, |
| 93 | const char *srcUrl, |
| 94 | const KeyedVector<String8, String8> *headers) |
The Android Open Source Project | 89fa4ad | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 95 | { |
| 96 | Parcel data, reply; |
| 97 | data.writeInterfaceToken(IMediaMetadataRetriever::getInterfaceDescriptor()); |
Andreas Huber | 1b86fe0 | 2014-01-29 11:13:26 -0800 | [diff] [blame] | 98 | data.writeInt32(httpService != NULL); |
| 99 | if (httpService != NULL) { |
Marco Nelissen | 06b4606 | 2014-11-14 07:58:25 -0800 | [diff] [blame] | 100 | data.writeStrongBinder(IInterface::asBinder(httpService)); |
Andreas Huber | 1b86fe0 | 2014-01-29 11:13:26 -0800 | [diff] [blame] | 101 | } |
The Android Open Source Project | 89fa4ad | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 102 | data.writeCString(srcUrl); |
Andreas Huber | af8791e | 2011-03-21 10:25:44 -0700 | [diff] [blame] | 103 | |
| 104 | if (headers == NULL) { |
| 105 | data.writeInt32(0); |
| 106 | } else { |
| 107 | // serialize the headers |
Glenn Kasten | e03dd22 | 2014-01-28 11:04:39 -0800 | [diff] [blame] | 108 | data.writeInt64(headers->size()); |
Andreas Huber | af8791e | 2011-03-21 10:25:44 -0700 | [diff] [blame] | 109 | for (size_t i = 0; i < headers->size(); ++i) { |
| 110 | data.writeString8(headers->keyAt(i)); |
| 111 | data.writeString8(headers->valueAt(i)); |
| 112 | } |
| 113 | } |
| 114 | |
The Android Open Source Project | 89fa4ad | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 115 | remote()->transact(SET_DATA_SOURCE_URL, data, &reply); |
| 116 | return reply.readInt32(); |
| 117 | } |
| 118 | |
| 119 | status_t setDataSource(int fd, int64_t offset, int64_t length) |
| 120 | { |
| 121 | Parcel data, reply; |
| 122 | data.writeInterfaceToken(IMediaMetadataRetriever::getInterfaceDescriptor()); |
| 123 | data.writeFileDescriptor(fd); |
| 124 | data.writeInt64(offset); |
| 125 | data.writeInt64(length); |
| 126 | remote()->transact(SET_DATA_SOURCE_FD, data, &reply); |
| 127 | return reply.readInt32(); |
| 128 | } |
| 129 | |
Chris Watkins | 99f3160 | 2015-03-20 13:06:33 -0700 | [diff] [blame] | 130 | status_t setDataSource(const sp<IDataSource>& source) |
| 131 | { |
| 132 | Parcel data, reply; |
| 133 | data.writeInterfaceToken(IMediaMetadataRetriever::getInterfaceDescriptor()); |
| 134 | data.writeStrongBinder(IInterface::asBinder(source)); |
| 135 | remote()->transact(SET_DATA_SOURCE_CALLBACK, data, &reply); |
| 136 | return reply.readInt32(); |
| 137 | } |
| 138 | |
James Dong | 16afe2f | 2010-12-02 17:42:08 -0800 | [diff] [blame] | 139 | sp<IMemory> getFrameAtTime(int64_t timeUs, int option) |
The Android Open Source Project | 89fa4ad | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 140 | { |
Mark Salyzyn | 34fb296 | 2014-06-18 16:30:56 -0700 | [diff] [blame] | 141 | ALOGV("getTimeAtTime: time(%" PRId64 " us) and option(%d)", timeUs, option); |
The Android Open Source Project | 89fa4ad | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 142 | Parcel data, reply; |
| 143 | data.writeInterfaceToken(IMediaMetadataRetriever::getInterfaceDescriptor()); |
James Dong | 16afe2f | 2010-12-02 17:42:08 -0800 | [diff] [blame] | 144 | data.writeInt64(timeUs); |
| 145 | data.writeInt32(option); |
Dave Sparks | ec4dde7 | 2009-11-23 16:51:15 -0800 | [diff] [blame] | 146 | #ifndef DISABLE_GROUP_SCHEDULE_HACK |
| 147 | sendSchedPolicy(data); |
| 148 | #endif |
James Dong | 16afe2f | 2010-12-02 17:42:08 -0800 | [diff] [blame] | 149 | remote()->transact(GET_FRAME_AT_TIME, data, &reply); |
The Android Open Source Project | 89fa4ad | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 150 | status_t ret = reply.readInt32(); |
| 151 | if (ret != NO_ERROR) { |
| 152 | return NULL; |
| 153 | } |
| 154 | return interface_cast<IMemory>(reply.readStrongBinder()); |
| 155 | } |
| 156 | |
| 157 | sp<IMemory> extractAlbumArt() |
| 158 | { |
| 159 | Parcel data, reply; |
| 160 | data.writeInterfaceToken(IMediaMetadataRetriever::getInterfaceDescriptor()); |
Dave Sparks | ec4dde7 | 2009-11-23 16:51:15 -0800 | [diff] [blame] | 161 | #ifndef DISABLE_GROUP_SCHEDULE_HACK |
| 162 | sendSchedPolicy(data); |
| 163 | #endif |
| 164 | remote()->transact(EXTRACT_ALBUM_ART, data, &reply); |
The Android Open Source Project | 89fa4ad | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 165 | status_t ret = reply.readInt32(); |
| 166 | if (ret != NO_ERROR) { |
| 167 | return NULL; |
| 168 | } |
| 169 | return interface_cast<IMemory>(reply.readStrongBinder()); |
| 170 | } |
| 171 | |
| 172 | const char* extractMetadata(int keyCode) |
| 173 | { |
| 174 | Parcel data, reply; |
| 175 | data.writeInterfaceToken(IMediaMetadataRetriever::getInterfaceDescriptor()); |
Dave Sparks | ec4dde7 | 2009-11-23 16:51:15 -0800 | [diff] [blame] | 176 | #ifndef DISABLE_GROUP_SCHEDULE_HACK |
| 177 | sendSchedPolicy(data); |
| 178 | #endif |
The Android Open Source Project | 89fa4ad | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 179 | data.writeInt32(keyCode); |
| 180 | remote()->transact(EXTRACT_METADATA, data, &reply); |
| 181 | status_t ret = reply.readInt32(); |
| 182 | if (ret != NO_ERROR) { |
| 183 | return NULL; |
| 184 | } |
Sangkyu Lee | d01c148 | 2013-02-08 16:26:39 +0900 | [diff] [blame] | 185 | const char* str = reply.readCString(); |
| 186 | if (str != NULL) { |
| 187 | String8 value(str); |
| 188 | if (mMetadata.indexOfKey(keyCode) < 0) { |
| 189 | mMetadata.add(keyCode, value); |
| 190 | } else { |
| 191 | mMetadata.replaceValueFor(keyCode, value); |
| 192 | } |
| 193 | return mMetadata.valueFor(keyCode).string(); |
| 194 | } else { |
| 195 | return NULL; |
| 196 | } |
The Android Open Source Project | 89fa4ad | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 197 | } |
Sangkyu Lee | d01c148 | 2013-02-08 16:26:39 +0900 | [diff] [blame] | 198 | |
| 199 | private: |
| 200 | KeyedVector<int, String8> mMetadata; |
The Android Open Source Project | 89fa4ad | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 201 | }; |
| 202 | |
niko | 56f0cc5 | 2009-06-22 08:49:52 -0700 | [diff] [blame] | 203 | IMPLEMENT_META_INTERFACE(MediaMetadataRetriever, "android.media.IMediaMetadataRetriever"); |
The Android Open Source Project | 89fa4ad | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 204 | |
| 205 | // ---------------------------------------------------------------------- |
| 206 | |
The Android Open Source Project | 89fa4ad | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 207 | status_t BnMediaMetadataRetriever::onTransact( |
| 208 | uint32_t code, const Parcel& data, Parcel* reply, uint32_t flags) |
| 209 | { |
| 210 | switch (code) { |
| 211 | case DISCONNECT: { |
| 212 | CHECK_INTERFACE(IMediaMetadataRetriever, data, reply); |
| 213 | disconnect(); |
| 214 | return NO_ERROR; |
| 215 | } break; |
| 216 | case SET_DATA_SOURCE_URL: { |
| 217 | CHECK_INTERFACE(IMediaMetadataRetriever, data, reply); |
Andreas Huber | 1b86fe0 | 2014-01-29 11:13:26 -0800 | [diff] [blame] | 218 | |
| 219 | sp<IMediaHTTPService> httpService; |
| 220 | if (data.readInt32()) { |
| 221 | httpService = |
| 222 | interface_cast<IMediaHTTPService>(data.readStrongBinder()); |
| 223 | } |
| 224 | |
The Android Open Source Project | 89fa4ad | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 225 | const char* srcUrl = data.readCString(); |
Andreas Huber | af8791e | 2011-03-21 10:25:44 -0700 | [diff] [blame] | 226 | |
Wei Jia | 2afac0c | 2016-01-07 12:13:07 -0800 | [diff] [blame^] | 227 | if (httpService == NULL || srcUrl == NULL) { |
| 228 | reply->writeInt32(BAD_VALUE); |
| 229 | return NO_ERROR; |
| 230 | } |
| 231 | |
Andreas Huber | af8791e | 2011-03-21 10:25:44 -0700 | [diff] [blame] | 232 | KeyedVector<String8, String8> headers; |
Glenn Kasten | e03dd22 | 2014-01-28 11:04:39 -0800 | [diff] [blame] | 233 | size_t numHeaders = (size_t) data.readInt64(); |
| 234 | for (size_t i = 0; i < numHeaders; ++i) { |
Andreas Huber | af8791e | 2011-03-21 10:25:44 -0700 | [diff] [blame] | 235 | String8 key = data.readString8(); |
| 236 | String8 value = data.readString8(); |
| 237 | headers.add(key, value); |
| 238 | } |
| 239 | |
| 240 | reply->writeInt32( |
Andreas Huber | 1b86fe0 | 2014-01-29 11:13:26 -0800 | [diff] [blame] | 241 | setDataSource( |
| 242 | httpService, srcUrl, numHeaders > 0 ? &headers : NULL)); |
Andreas Huber | af8791e | 2011-03-21 10:25:44 -0700 | [diff] [blame] | 243 | |
The Android Open Source Project | 89fa4ad | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 244 | return NO_ERROR; |
| 245 | } break; |
| 246 | case SET_DATA_SOURCE_FD: { |
| 247 | CHECK_INTERFACE(IMediaMetadataRetriever, data, reply); |
Taiju Tsuiki | 55203e2 | 2015-04-21 17:36:22 +0900 | [diff] [blame] | 248 | int fd = data.readFileDescriptor(); |
The Android Open Source Project | 89fa4ad | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 249 | int64_t offset = data.readInt64(); |
| 250 | int64_t length = data.readInt64(); |
| 251 | reply->writeInt32(setDataSource(fd, offset, length)); |
| 252 | return NO_ERROR; |
| 253 | } break; |
Chris Watkins | 99f3160 | 2015-03-20 13:06:33 -0700 | [diff] [blame] | 254 | case SET_DATA_SOURCE_CALLBACK: { |
| 255 | CHECK_INTERFACE(IMediaMetadataRetriever, data, reply); |
| 256 | sp<IDataSource> source = |
| 257 | interface_cast<IDataSource>(data.readStrongBinder()); |
Wei Jia | 2afac0c | 2016-01-07 12:13:07 -0800 | [diff] [blame^] | 258 | if (source == NULL) { |
| 259 | reply->writeInt32(BAD_VALUE); |
| 260 | } else { |
| 261 | reply->writeInt32(setDataSource(source)); |
| 262 | } |
Chris Watkins | 99f3160 | 2015-03-20 13:06:33 -0700 | [diff] [blame] | 263 | return NO_ERROR; |
| 264 | } break; |
James Dong | 16afe2f | 2010-12-02 17:42:08 -0800 | [diff] [blame] | 265 | case GET_FRAME_AT_TIME: { |
The Android Open Source Project | 89fa4ad | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 266 | CHECK_INTERFACE(IMediaMetadataRetriever, data, reply); |
James Dong | 16afe2f | 2010-12-02 17:42:08 -0800 | [diff] [blame] | 267 | int64_t timeUs = data.readInt64(); |
| 268 | int option = data.readInt32(); |
Mark Salyzyn | 34fb296 | 2014-06-18 16:30:56 -0700 | [diff] [blame] | 269 | ALOGV("getTimeAtTime: time(%" PRId64 " us) and option(%d)", timeUs, option); |
Dave Sparks | ec4dde7 | 2009-11-23 16:51:15 -0800 | [diff] [blame] | 270 | #ifndef DISABLE_GROUP_SCHEDULE_HACK |
| 271 | setSchedPolicy(data); |
| 272 | #endif |
James Dong | 16afe2f | 2010-12-02 17:42:08 -0800 | [diff] [blame] | 273 | sp<IMemory> bitmap = getFrameAtTime(timeUs, option); |
The Android Open Source Project | 89fa4ad | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 274 | if (bitmap != 0) { // Don't send NULL across the binder interface |
| 275 | reply->writeInt32(NO_ERROR); |
Marco Nelissen | 06b4606 | 2014-11-14 07:58:25 -0800 | [diff] [blame] | 276 | reply->writeStrongBinder(IInterface::asBinder(bitmap)); |
The Android Open Source Project | 89fa4ad | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 277 | } else { |
| 278 | reply->writeInt32(UNKNOWN_ERROR); |
| 279 | } |
Dave Sparks | ec4dde7 | 2009-11-23 16:51:15 -0800 | [diff] [blame] | 280 | #ifndef DISABLE_GROUP_SCHEDULE_HACK |
| 281 | restoreSchedPolicy(); |
| 282 | #endif |
The Android Open Source Project | 89fa4ad | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 283 | return NO_ERROR; |
| 284 | } break; |
Dave Sparks | ec4dde7 | 2009-11-23 16:51:15 -0800 | [diff] [blame] | 285 | case EXTRACT_ALBUM_ART: { |
The Android Open Source Project | 89fa4ad | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 286 | CHECK_INTERFACE(IMediaMetadataRetriever, data, reply); |
Dave Sparks | ec4dde7 | 2009-11-23 16:51:15 -0800 | [diff] [blame] | 287 | #ifndef DISABLE_GROUP_SCHEDULE_HACK |
| 288 | setSchedPolicy(data); |
| 289 | #endif |
The Android Open Source Project | 89fa4ad | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 290 | sp<IMemory> albumArt = extractAlbumArt(); |
| 291 | if (albumArt != 0) { // Don't send NULL across the binder interface |
| 292 | reply->writeInt32(NO_ERROR); |
Marco Nelissen | 06b4606 | 2014-11-14 07:58:25 -0800 | [diff] [blame] | 293 | reply->writeStrongBinder(IInterface::asBinder(albumArt)); |
The Android Open Source Project | 89fa4ad | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 294 | } else { |
| 295 | reply->writeInt32(UNKNOWN_ERROR); |
| 296 | } |
Dave Sparks | ec4dde7 | 2009-11-23 16:51:15 -0800 | [diff] [blame] | 297 | #ifndef DISABLE_GROUP_SCHEDULE_HACK |
| 298 | restoreSchedPolicy(); |
| 299 | #endif |
The Android Open Source Project | 89fa4ad | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 300 | return NO_ERROR; |
| 301 | } break; |
| 302 | case EXTRACT_METADATA: { |
| 303 | CHECK_INTERFACE(IMediaMetadataRetriever, data, reply); |
Dave Sparks | ec4dde7 | 2009-11-23 16:51:15 -0800 | [diff] [blame] | 304 | #ifndef DISABLE_GROUP_SCHEDULE_HACK |
| 305 | setSchedPolicy(data); |
| 306 | #endif |
The Android Open Source Project | 89fa4ad | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 307 | int keyCode = data.readInt32(); |
| 308 | const char* value = extractMetadata(keyCode); |
| 309 | if (value != NULL) { // Don't send NULL across the binder interface |
| 310 | reply->writeInt32(NO_ERROR); |
| 311 | reply->writeCString(value); |
| 312 | } else { |
| 313 | reply->writeInt32(UNKNOWN_ERROR); |
| 314 | } |
Dave Sparks | ec4dde7 | 2009-11-23 16:51:15 -0800 | [diff] [blame] | 315 | #ifndef DISABLE_GROUP_SCHEDULE_HACK |
| 316 | restoreSchedPolicy(); |
| 317 | #endif |
The Android Open Source Project | 89fa4ad | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 318 | return NO_ERROR; |
| 319 | } break; |
| 320 | default: |
| 321 | return BBinder::onTransact(code, data, reply, flags); |
| 322 | } |
| 323 | } |
| 324 | |
| 325 | // ---------------------------------------------------------------------------- |
| 326 | |
Glenn Kasten | 40bc906 | 2015-03-20 09:09:33 -0700 | [diff] [blame] | 327 | } // namespace android |