Jeff Brown | 0a0a124 | 2011-12-02 02:25:22 -0800 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (C) 2011 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 | #define LOG_TAG "DisplayEventReceiver" |
| 18 | |
| 19 | //#define LOG_NDEBUG 0 |
| 20 | |
Jeff Brown | 0a0a124 | 2011-12-02 02:25:22 -0800 | [diff] [blame] | 21 | #include "JNIHelp.h" |
| 22 | |
Dan Albert | 46d8444 | 2014-11-18 16:07:51 -0800 | [diff] [blame] | 23 | #include <inttypes.h> |
| 24 | |
Jeff Brown | 0a0a124 | 2011-12-02 02:25:22 -0800 | [diff] [blame] | 25 | #include <android_runtime/AndroidRuntime.h> |
| 26 | #include <utils/Log.h> |
| 27 | #include <utils/Looper.h> |
| 28 | #include <utils/threads.h> |
| 29 | #include <gui/DisplayEventReceiver.h> |
| 30 | #include "android_os_MessageQueue.h" |
| 31 | |
Andreas Gampe | 987f79f | 2014-11-18 17:29:46 -0800 | [diff] [blame] | 32 | #include "core_jni_helpers.h" |
| 33 | |
Jeff Brown | 0a0a124 | 2011-12-02 02:25:22 -0800 | [diff] [blame] | 34 | namespace android { |
| 35 | |
| 36 | // Number of events to read at a time from the DisplayEventReceiver pipe. |
| 37 | // The value should be large enough that we can quickly drain the pipe |
| 38 | // using just a few large reads. |
| 39 | static const size_t EVENT_BUFFER_SIZE = 100; |
| 40 | |
| 41 | static struct { |
| 42 | jclass clazz; |
| 43 | |
| 44 | jmethodID dispatchVsync; |
Jeff Brown | e87bf03 | 2012-09-20 18:30:13 -0700 | [diff] [blame] | 45 | jmethodID dispatchHotplug; |
Jeff Brown | 0a0a124 | 2011-12-02 02:25:22 -0800 | [diff] [blame] | 46 | } gDisplayEventReceiverClassInfo; |
| 47 | |
| 48 | |
Jeff Brown | 80a1de1 | 2012-05-31 16:23:11 -0700 | [diff] [blame] | 49 | class NativeDisplayEventReceiver : public LooperCallback { |
Jeff Brown | 0a0a124 | 2011-12-02 02:25:22 -0800 | [diff] [blame] | 50 | public: |
| 51 | NativeDisplayEventReceiver(JNIEnv* env, |
Jeff Brown | 603b445 | 2012-04-06 17:39:41 -0700 | [diff] [blame] | 52 | jobject receiverObj, const sp<MessageQueue>& messageQueue); |
Jeff Brown | 0a0a124 | 2011-12-02 02:25:22 -0800 | [diff] [blame] | 53 | |
| 54 | status_t initialize(); |
Jeff Brown | 80a1de1 | 2012-05-31 16:23:11 -0700 | [diff] [blame] | 55 | void dispose(); |
Jeff Brown | 0a0a124 | 2011-12-02 02:25:22 -0800 | [diff] [blame] | 56 | status_t scheduleVsync(); |
Jeff Brown | 0a0a124 | 2011-12-02 02:25:22 -0800 | [diff] [blame] | 57 | |
| 58 | protected: |
| 59 | virtual ~NativeDisplayEventReceiver(); |
| 60 | |
| 61 | private: |
| 62 | jobject mReceiverObjGlobal; |
Jeff Brown | 603b445 | 2012-04-06 17:39:41 -0700 | [diff] [blame] | 63 | sp<MessageQueue> mMessageQueue; |
Jeff Brown | 0a0a124 | 2011-12-02 02:25:22 -0800 | [diff] [blame] | 64 | DisplayEventReceiver mReceiver; |
| 65 | bool mWaitingForVsync; |
Jeff Brown | bec0a86 | 2012-03-29 12:42:31 -0700 | [diff] [blame] | 66 | |
Jeff Brown | 80a1de1 | 2012-05-31 16:23:11 -0700 | [diff] [blame] | 67 | virtual int handleEvent(int receiveFd, int events, void* data); |
Jesse Hall | 16823bd | 2012-11-19 10:53:26 -0800 | [diff] [blame] | 68 | bool processPendingEvents(nsecs_t* outTimestamp, int32_t* id, uint32_t* outCount); |
Jeff Brown | e87bf03 | 2012-09-20 18:30:13 -0700 | [diff] [blame] | 69 | void dispatchVsync(nsecs_t timestamp, int32_t id, uint32_t count); |
| 70 | void dispatchHotplug(nsecs_t timestamp, int32_t id, bool connected); |
Jeff Brown | 0a0a124 | 2011-12-02 02:25:22 -0800 | [diff] [blame] | 71 | }; |
| 72 | |
| 73 | |
| 74 | NativeDisplayEventReceiver::NativeDisplayEventReceiver(JNIEnv* env, |
Jeff Brown | 603b445 | 2012-04-06 17:39:41 -0700 | [diff] [blame] | 75 | jobject receiverObj, const sp<MessageQueue>& messageQueue) : |
Jeff Brown | 0a0a124 | 2011-12-02 02:25:22 -0800 | [diff] [blame] | 76 | mReceiverObjGlobal(env->NewGlobalRef(receiverObj)), |
Jeff Brown | 603b445 | 2012-04-06 17:39:41 -0700 | [diff] [blame] | 77 | mMessageQueue(messageQueue), mWaitingForVsync(false) { |
Jeff Brown | 0a0a124 | 2011-12-02 02:25:22 -0800 | [diff] [blame] | 78 | ALOGV("receiver %p ~ Initializing input event receiver.", this); |
| 79 | } |
| 80 | |
| 81 | NativeDisplayEventReceiver::~NativeDisplayEventReceiver() { |
Jeff Brown | 0a0a124 | 2011-12-02 02:25:22 -0800 | [diff] [blame] | 82 | JNIEnv* env = AndroidRuntime::getJNIEnv(); |
| 83 | env->DeleteGlobalRef(mReceiverObjGlobal); |
| 84 | } |
| 85 | |
| 86 | status_t NativeDisplayEventReceiver::initialize() { |
| 87 | status_t result = mReceiver.initCheck(); |
| 88 | if (result) { |
Steve Block | 8564c8d | 2012-01-05 23:22:43 +0000 | [diff] [blame] | 89 | ALOGW("Failed to initialize display event receiver, status=%d", result); |
Jeff Brown | 0a0a124 | 2011-12-02 02:25:22 -0800 | [diff] [blame] | 90 | return result; |
| 91 | } |
| 92 | |
Brian Carlstrom | 82b007d | 2013-12-12 23:12:55 -0800 | [diff] [blame] | 93 | int rc = mMessageQueue->getLooper()->addFd(mReceiver.getFd(), 0, Looper::EVENT_INPUT, |
Jeff Brown | 80a1de1 | 2012-05-31 16:23:11 -0700 | [diff] [blame] | 94 | this, NULL); |
Jeff Brown | 58aedbc | 2012-02-13 20:15:01 -0800 | [diff] [blame] | 95 | if (rc < 0) { |
| 96 | return UNKNOWN_ERROR; |
| 97 | } |
Jeff Brown | 0a0a124 | 2011-12-02 02:25:22 -0800 | [diff] [blame] | 98 | return OK; |
| 99 | } |
| 100 | |
Jeff Brown | 80a1de1 | 2012-05-31 16:23:11 -0700 | [diff] [blame] | 101 | void NativeDisplayEventReceiver::dispose() { |
| 102 | ALOGV("receiver %p ~ Disposing display event receiver.", this); |
| 103 | |
| 104 | if (!mReceiver.initCheck()) { |
| 105 | mMessageQueue->getLooper()->removeFd(mReceiver.getFd()); |
| 106 | } |
| 107 | } |
| 108 | |
Jeff Brown | 0a0a124 | 2011-12-02 02:25:22 -0800 | [diff] [blame] | 109 | status_t NativeDisplayEventReceiver::scheduleVsync() { |
| 110 | if (!mWaitingForVsync) { |
| 111 | ALOGV("receiver %p ~ Scheduling vsync.", this); |
| 112 | |
| 113 | // Drain all pending events. |
Jeff Brown | bec0a86 | 2012-03-29 12:42:31 -0700 | [diff] [blame] | 114 | nsecs_t vsyncTimestamp; |
Jeff Brown | e87bf03 | 2012-09-20 18:30:13 -0700 | [diff] [blame] | 115 | int32_t vsyncDisplayId; |
Jeff Brown | bec0a86 | 2012-03-29 12:42:31 -0700 | [diff] [blame] | 116 | uint32_t vsyncCount; |
Jesse Hall | 16823bd | 2012-11-19 10:53:26 -0800 | [diff] [blame] | 117 | processPendingEvents(&vsyncTimestamp, &vsyncDisplayId, &vsyncCount); |
Jeff Brown | 0a0a124 | 2011-12-02 02:25:22 -0800 | [diff] [blame] | 118 | |
Mathias Agopian | 6779df2 | 2011-12-06 17:22:19 -0800 | [diff] [blame] | 119 | status_t status = mReceiver.requestNextVsync(); |
| 120 | if (status) { |
Steve Block | 8564c8d | 2012-01-05 23:22:43 +0000 | [diff] [blame] | 121 | ALOGW("Failed to request next vsync, status=%d", status); |
Mathias Agopian | 6779df2 | 2011-12-06 17:22:19 -0800 | [diff] [blame] | 122 | return status; |
| 123 | } |
| 124 | |
Jeff Brown | 0a0a124 | 2011-12-02 02:25:22 -0800 | [diff] [blame] | 125 | mWaitingForVsync = true; |
| 126 | } |
| 127 | return OK; |
| 128 | } |
| 129 | |
Jeff Brown | 80a1de1 | 2012-05-31 16:23:11 -0700 | [diff] [blame] | 130 | int NativeDisplayEventReceiver::handleEvent(int receiveFd, int events, void* data) { |
Brian Carlstrom | 82b007d | 2013-12-12 23:12:55 -0800 | [diff] [blame] | 131 | if (events & (Looper::EVENT_ERROR | Looper::EVENT_HANGUP)) { |
Steve Block | 3762c31 | 2012-01-06 19:20:56 +0000 | [diff] [blame] | 132 | ALOGE("Display event receiver pipe was closed or an error occurred. " |
Jeff Brown | 0a0a124 | 2011-12-02 02:25:22 -0800 | [diff] [blame] | 133 | "events=0x%x", events); |
Jeff Brown | 0a0a124 | 2011-12-02 02:25:22 -0800 | [diff] [blame] | 134 | return 0; // remove the callback |
| 135 | } |
| 136 | |
Brian Carlstrom | 82b007d | 2013-12-12 23:12:55 -0800 | [diff] [blame] | 137 | if (!(events & Looper::EVENT_INPUT)) { |
Steve Block | 8564c8d | 2012-01-05 23:22:43 +0000 | [diff] [blame] | 138 | ALOGW("Received spurious callback for unhandled poll event. " |
Jeff Brown | 0a0a124 | 2011-12-02 02:25:22 -0800 | [diff] [blame] | 139 | "events=0x%x", events); |
| 140 | return 1; // keep the callback |
| 141 | } |
| 142 | |
| 143 | // Drain all pending events, keep the last vsync. |
Jeff Brown | bec0a86 | 2012-03-29 12:42:31 -0700 | [diff] [blame] | 144 | nsecs_t vsyncTimestamp; |
Jeff Brown | e87bf03 | 2012-09-20 18:30:13 -0700 | [diff] [blame] | 145 | int32_t vsyncDisplayId; |
Jeff Brown | bec0a86 | 2012-03-29 12:42:31 -0700 | [diff] [blame] | 146 | uint32_t vsyncCount; |
Jesse Hall | 16823bd | 2012-11-19 10:53:26 -0800 | [diff] [blame] | 147 | if (processPendingEvents(&vsyncTimestamp, &vsyncDisplayId, &vsyncCount)) { |
Dan Albert | 46d8444 | 2014-11-18 16:07:51 -0800 | [diff] [blame] | 148 | ALOGV("receiver %p ~ Vsync pulse: timestamp=%" PRId64 ", id=%d, count=%d", |
Jesse Hall | 16823bd | 2012-11-19 10:53:26 -0800 | [diff] [blame] | 149 | this, vsyncTimestamp, vsyncDisplayId, vsyncCount); |
| 150 | mWaitingForVsync = false; |
| 151 | dispatchVsync(vsyncTimestamp, vsyncDisplayId, vsyncCount); |
Jeff Brown | 0a0a124 | 2011-12-02 02:25:22 -0800 | [diff] [blame] | 152 | } |
| 153 | |
Jeff Brown | 58aedbc | 2012-02-13 20:15:01 -0800 | [diff] [blame] | 154 | return 1; // keep the callback |
Jeff Brown | 0a0a124 | 2011-12-02 02:25:22 -0800 | [diff] [blame] | 155 | } |
| 156 | |
Jesse Hall | 16823bd | 2012-11-19 10:53:26 -0800 | [diff] [blame] | 157 | bool NativeDisplayEventReceiver::processPendingEvents( |
Jeff Brown | e87bf03 | 2012-09-20 18:30:13 -0700 | [diff] [blame] | 158 | nsecs_t* outTimestamp, int32_t* outId, uint32_t* outCount) { |
Jesse Hall | 16823bd | 2012-11-19 10:53:26 -0800 | [diff] [blame] | 159 | bool gotVsync = false; |
Jeff Brown | bec0a86 | 2012-03-29 12:42:31 -0700 | [diff] [blame] | 160 | DisplayEventReceiver::Event buf[EVENT_BUFFER_SIZE]; |
| 161 | ssize_t n; |
| 162 | while ((n = mReceiver.getEvents(buf, EVENT_BUFFER_SIZE)) > 0) { |
| 163 | ALOGV("receiver %p ~ Read %d events.", this, int(n)); |
Jesse Hall | 16823bd | 2012-11-19 10:53:26 -0800 | [diff] [blame] | 164 | for (ssize_t i = 0; i < n; i++) { |
| 165 | const DisplayEventReceiver::Event& ev = buf[i]; |
| 166 | switch (ev.header.type) { |
| 167 | case DisplayEventReceiver::DISPLAY_EVENT_VSYNC: |
| 168 | // Later vsync events will just overwrite the info from earlier |
| 169 | // ones. That's fine, we only care about the most recent. |
| 170 | gotVsync = true; |
Jeff Brown | e87bf03 | 2012-09-20 18:30:13 -0700 | [diff] [blame] | 171 | *outTimestamp = ev.header.timestamp; |
| 172 | *outId = ev.header.id; |
| 173 | *outCount = ev.vsync.count; |
Jesse Hall | 16823bd | 2012-11-19 10:53:26 -0800 | [diff] [blame] | 174 | break; |
| 175 | case DisplayEventReceiver::DISPLAY_EVENT_HOTPLUG: |
Jeff Brown | e87bf03 | 2012-09-20 18:30:13 -0700 | [diff] [blame] | 176 | dispatchHotplug(ev.header.timestamp, ev.header.id, ev.hotplug.connected); |
Jesse Hall | 16823bd | 2012-11-19 10:53:26 -0800 | [diff] [blame] | 177 | break; |
| 178 | default: |
| 179 | ALOGW("receiver %p ~ ignoring unknown event type %#x", this, ev.header.type); |
| 180 | break; |
Jeff Brown | e87bf03 | 2012-09-20 18:30:13 -0700 | [diff] [blame] | 181 | } |
Jeff Brown | bec0a86 | 2012-03-29 12:42:31 -0700 | [diff] [blame] | 182 | } |
| 183 | } |
| 184 | if (n < 0) { |
| 185 | ALOGW("Failed to get events from display event receiver, status=%d", status_t(n)); |
| 186 | } |
Jesse Hall | 16823bd | 2012-11-19 10:53:26 -0800 | [diff] [blame] | 187 | return gotVsync; |
Jeff Brown | bec0a86 | 2012-03-29 12:42:31 -0700 | [diff] [blame] | 188 | } |
| 189 | |
Jeff Brown | e87bf03 | 2012-09-20 18:30:13 -0700 | [diff] [blame] | 190 | void NativeDisplayEventReceiver::dispatchVsync(nsecs_t timestamp, int32_t id, uint32_t count) { |
| 191 | JNIEnv* env = AndroidRuntime::getJNIEnv(); |
| 192 | |
| 193 | ALOGV("receiver %p ~ Invoking vsync handler.", this); |
| 194 | env->CallVoidMethod(mReceiverObjGlobal, |
| 195 | gDisplayEventReceiverClassInfo.dispatchVsync, timestamp, id, count); |
| 196 | ALOGV("receiver %p ~ Returned from vsync handler.", this); |
| 197 | |
| 198 | mMessageQueue->raiseAndClearException(env, "dispatchVsync"); |
| 199 | } |
| 200 | |
| 201 | void NativeDisplayEventReceiver::dispatchHotplug(nsecs_t timestamp, int32_t id, bool connected) { |
| 202 | JNIEnv* env = AndroidRuntime::getJNIEnv(); |
| 203 | |
| 204 | ALOGV("receiver %p ~ Invoking hotplug handler.", this); |
| 205 | env->CallVoidMethod(mReceiverObjGlobal, |
| 206 | gDisplayEventReceiverClassInfo.dispatchHotplug, timestamp, id, connected); |
| 207 | ALOGV("receiver %p ~ Returned from hotplug handler.", this); |
| 208 | |
| 209 | mMessageQueue->raiseAndClearException(env, "dispatchHotplug"); |
| 210 | } |
| 211 | |
Jeff Brown | 0a0a124 | 2011-12-02 02:25:22 -0800 | [diff] [blame] | 212 | |
Ashok Bhat | 2728582 | 2013-12-18 18:00:05 +0000 | [diff] [blame] | 213 | static jlong nativeInit(JNIEnv* env, jclass clazz, jobject receiverObj, |
Jeff Brown | 0a0a124 | 2011-12-02 02:25:22 -0800 | [diff] [blame] | 214 | jobject messageQueueObj) { |
Jeff Brown | 603b445 | 2012-04-06 17:39:41 -0700 | [diff] [blame] | 215 | sp<MessageQueue> messageQueue = android_os_MessageQueue_getMessageQueue(env, messageQueueObj); |
| 216 | if (messageQueue == NULL) { |
Jeff Brown | 0a0a124 | 2011-12-02 02:25:22 -0800 | [diff] [blame] | 217 | jniThrowRuntimeException(env, "MessageQueue is not initialized."); |
| 218 | return 0; |
| 219 | } |
| 220 | |
| 221 | sp<NativeDisplayEventReceiver> receiver = new NativeDisplayEventReceiver(env, |
Jeff Brown | 603b445 | 2012-04-06 17:39:41 -0700 | [diff] [blame] | 222 | receiverObj, messageQueue); |
Jeff Brown | 0a0a124 | 2011-12-02 02:25:22 -0800 | [diff] [blame] | 223 | status_t status = receiver->initialize(); |
| 224 | if (status) { |
| 225 | String8 message; |
| 226 | message.appendFormat("Failed to initialize display event receiver. status=%d", status); |
| 227 | jniThrowRuntimeException(env, message.string()); |
| 228 | return 0; |
| 229 | } |
| 230 | |
| 231 | receiver->incStrong(gDisplayEventReceiverClassInfo.clazz); // retain a reference for the object |
Ashok Bhat | 2728582 | 2013-12-18 18:00:05 +0000 | [diff] [blame] | 232 | return reinterpret_cast<jlong>(receiver.get()); |
Jeff Brown | 0a0a124 | 2011-12-02 02:25:22 -0800 | [diff] [blame] | 233 | } |
| 234 | |
Ashok Bhat | 2728582 | 2013-12-18 18:00:05 +0000 | [diff] [blame] | 235 | static void nativeDispose(JNIEnv* env, jclass clazz, jlong receiverPtr) { |
Jeff Brown | 0a0a124 | 2011-12-02 02:25:22 -0800 | [diff] [blame] | 236 | sp<NativeDisplayEventReceiver> receiver = |
| 237 | reinterpret_cast<NativeDisplayEventReceiver*>(receiverPtr); |
Jeff Brown | 80a1de1 | 2012-05-31 16:23:11 -0700 | [diff] [blame] | 238 | receiver->dispose(); |
Jeff Brown | 0a0a124 | 2011-12-02 02:25:22 -0800 | [diff] [blame] | 239 | receiver->decStrong(gDisplayEventReceiverClassInfo.clazz); // drop reference held by the object |
| 240 | } |
| 241 | |
Ashok Bhat | 2728582 | 2013-12-18 18:00:05 +0000 | [diff] [blame] | 242 | static void nativeScheduleVsync(JNIEnv* env, jclass clazz, jlong receiverPtr) { |
Jeff Brown | 0a0a124 | 2011-12-02 02:25:22 -0800 | [diff] [blame] | 243 | sp<NativeDisplayEventReceiver> receiver = |
| 244 | reinterpret_cast<NativeDisplayEventReceiver*>(receiverPtr); |
| 245 | status_t status = receiver->scheduleVsync(); |
| 246 | if (status) { |
| 247 | String8 message; |
| 248 | message.appendFormat("Failed to schedule next vertical sync pulse. status=%d", status); |
| 249 | jniThrowRuntimeException(env, message.string()); |
| 250 | } |
| 251 | } |
| 252 | |
| 253 | |
| 254 | static JNINativeMethod gMethods[] = { |
| 255 | /* name, signature, funcPtr */ |
| 256 | { "nativeInit", |
Ashok Bhat | 2728582 | 2013-12-18 18:00:05 +0000 | [diff] [blame] | 257 | "(Landroid/view/DisplayEventReceiver;Landroid/os/MessageQueue;)J", |
Jeff Brown | 0a0a124 | 2011-12-02 02:25:22 -0800 | [diff] [blame] | 258 | (void*)nativeInit }, |
| 259 | { "nativeDispose", |
Ashok Bhat | 2728582 | 2013-12-18 18:00:05 +0000 | [diff] [blame] | 260 | "(J)V", |
Jeff Brown | 0a0a124 | 2011-12-02 02:25:22 -0800 | [diff] [blame] | 261 | (void*)nativeDispose }, |
Ashok Bhat | 2728582 | 2013-12-18 18:00:05 +0000 | [diff] [blame] | 262 | { "nativeScheduleVsync", "(J)V", |
Jeff Brown | 0a0a124 | 2011-12-02 02:25:22 -0800 | [diff] [blame] | 263 | (void*)nativeScheduleVsync } |
| 264 | }; |
| 265 | |
Jeff Brown | 0a0a124 | 2011-12-02 02:25:22 -0800 | [diff] [blame] | 266 | int register_android_view_DisplayEventReceiver(JNIEnv* env) { |
Andreas Gampe | 987f79f | 2014-11-18 17:29:46 -0800 | [diff] [blame] | 267 | int res = RegisterMethodsOrDie(env, "android/view/DisplayEventReceiver", gMethods, |
| 268 | NELEM(gMethods)); |
Jeff Brown | 0a0a124 | 2011-12-02 02:25:22 -0800 | [diff] [blame] | 269 | |
Andreas Gampe | 987f79f | 2014-11-18 17:29:46 -0800 | [diff] [blame] | 270 | jclass clazz = FindClassOrDie(env, "android/view/DisplayEventReceiver"); |
| 271 | gDisplayEventReceiverClassInfo.clazz = MakeGlobalRefOrDie(env, clazz); |
Jeff Brown | 0a0a124 | 2011-12-02 02:25:22 -0800 | [diff] [blame] | 272 | |
Andreas Gampe | 987f79f | 2014-11-18 17:29:46 -0800 | [diff] [blame] | 273 | gDisplayEventReceiverClassInfo.dispatchVsync = GetMethodIDOrDie(env, |
| 274 | gDisplayEventReceiverClassInfo.clazz, "dispatchVsync", "(JII)V"); |
| 275 | gDisplayEventReceiverClassInfo.dispatchHotplug = GetMethodIDOrDie(env, |
| 276 | gDisplayEventReceiverClassInfo.clazz, "dispatchHotplug", "(JIZ)V"); |
| 277 | |
| 278 | return res; |
Jeff Brown | 0a0a124 | 2011-12-02 02:25:22 -0800 | [diff] [blame] | 279 | } |
| 280 | |
| 281 | } // namespace android |