blob: 9b6360ef726a8527d1e62963eb966b5791dd0858 [file] [log] [blame]
Mathias Agopiand0566bc2011-11-17 17:49:17 -08001/*
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
Mathias Agopian841cde52012-03-01 15:44:37 -080017#define ATRACE_TAG ATRACE_TAG_GRAPHICS
18
Mathias Agopiand0566bc2011-11-17 17:49:17 -080019#include <stdint.h>
20#include <sys/types.h>
21
Mathias Agopiana4cb35a2012-08-20 20:07:34 -070022#include <cutils/compiler.h>
23
Mathias Agopiancb9732a2012-04-03 17:48:03 -070024#include <gui/BitTube.h>
Mathias Agopiand0566bc2011-11-17 17:49:17 -080025#include <gui/IDisplayEventConnection.h>
26#include <gui/DisplayEventReceiver.h>
27
28#include <utils/Errors.h>
Mathias Agopian921e6ac2012-07-23 23:11:29 -070029#include <utils/String8.h>
Mathias Agopian841cde52012-03-01 15:44:37 -080030#include <utils/Trace.h>
Mathias Agopiand0566bc2011-11-17 17:49:17 -080031
Mathias Agopiand0566bc2011-11-17 17:49:17 -080032#include "EventThread.h"
33#include "SurfaceFlinger.h"
34
35// ---------------------------------------------------------------------------
Mathias Agopiand0566bc2011-11-17 17:49:17 -080036namespace android {
Mathias Agopiand0566bc2011-11-17 17:49:17 -080037// ---------------------------------------------------------------------------
Ruchi Kandoief472ec2014-04-02 12:50:06 -070038// time to wait between VSYNC requests before sending a VSYNC OFF power hint: 40msec.
39const long vsyncHintOffDelay = 40000000;
40
41static void vsyncOffCallback(union sigval val) {
42 EventThread *ev = (EventThread *)val.sival_ptr;
43 ev->sendVsyncHintOff();
44 return;
45}
Mathias Agopiand0566bc2011-11-17 17:49:17 -080046
Jamie Gennisfaf77cc2013-07-30 15:10:32 -070047EventThread::EventThread(const sp<VSyncSource>& src)
48 : mVSyncSource(src),
Mathias Agopian22ffb112012-04-10 21:04:02 -070049 mUseSoftwareVSync(false),
Jamie Gennisfaf77cc2013-07-30 15:10:32 -070050 mVsyncEnabled(false),
Ruchi Kandoief472ec2014-04-02 12:50:06 -070051 mDebugVsyncEnabled(false),
52 mVsyncHintSent(false) {
Mathias Agopianff28e202012-09-20 23:24:19 -070053
Jesse Hall9e663de2013-08-16 14:28:37 -070054 for (int32_t i=0 ; i<DisplayDevice::NUM_BUILTIN_DISPLAY_TYPES ; i++) {
Mathias Agopianff28e202012-09-20 23:24:19 -070055 mVSyncEvent[i].header.type = DisplayEventReceiver::DISPLAY_EVENT_VSYNC;
56 mVSyncEvent[i].header.id = 0;
57 mVSyncEvent[i].header.timestamp = 0;
58 mVSyncEvent[i].vsync.count = 0;
59 }
Ruchi Kandoief472ec2014-04-02 12:50:06 -070060 struct sigevent se;
61 se.sigev_notify = SIGEV_THREAD;
62 se.sigev_value.sival_ptr = this;
63 se.sigev_notify_function = vsyncOffCallback;
64 se.sigev_notify_attributes = NULL;
65 timer_create(CLOCK_MONOTONIC, &se, &mTimerId);
66}
67
68void EventThread::sendVsyncHintOff() {
69 Mutex::Autolock _l(mLock);
70 mPowerHAL.vsyncHint(false);
71 mVsyncHintSent = false;
72}
73
74void EventThread::sendVsyncHintOnLocked() {
75 struct itimerspec ts;
76 if(!mVsyncHintSent) {
77 mPowerHAL.vsyncHint(true);
78 mVsyncHintSent = true;
79 }
80 ts.it_value.tv_sec = 0;
81 ts.it_value.tv_nsec = vsyncHintOffDelay;
82 ts.it_interval.tv_sec = 0;
83 ts.it_interval.tv_nsec = 0;
84 timer_settime(mTimerId, 0, &ts, NULL);
Mathias Agopiand0566bc2011-11-17 17:49:17 -080085}
86
87void EventThread::onFirstRef() {
88 run("EventThread", PRIORITY_URGENT_DISPLAY + PRIORITY_MORE_FAVORABLE);
89}
90
Mathias Agopiancb9732a2012-04-03 17:48:03 -070091sp<EventThread::Connection> EventThread::createEventConnection() const {
92 return new Connection(const_cast<EventThread*>(this));
Mathias Agopian8aedd472012-01-24 16:39:14 -080093}
94
Mathias Agopiand0566bc2011-11-17 17:49:17 -080095status_t EventThread::registerDisplayEventConnection(
Mathias Agopiancb9732a2012-04-03 17:48:03 -070096 const sp<EventThread::Connection>& connection) {
Mathias Agopiand0566bc2011-11-17 17:49:17 -080097 Mutex::Autolock _l(mLock);
Mathias Agopiancb9732a2012-04-03 17:48:03 -070098 mDisplayEventConnections.add(connection);
Mathias Agopian7d886472012-06-14 23:39:35 -070099 mCondition.broadcast();
Mathias Agopiand0566bc2011-11-17 17:49:17 -0800100 return NO_ERROR;
101}
102
Mathias Agopian478ae5e2011-12-06 17:22:19 -0800103void EventThread::removeDisplayEventConnection(
Mathias Agopiancb9732a2012-04-03 17:48:03 -0700104 const wp<EventThread::Connection>& connection) {
Mathias Agopian23748662011-12-05 14:33:34 -0800105 Mutex::Autolock _l(mLock);
Mathias Agopiancb9732a2012-04-03 17:48:03 -0700106 mDisplayEventConnections.remove(connection);
Mathias Agopian478ae5e2011-12-06 17:22:19 -0800107}
108
109void EventThread::setVsyncRate(uint32_t count,
Mathias Agopiancb9732a2012-04-03 17:48:03 -0700110 const sp<EventThread::Connection>& connection) {
Mathias Agopian478ae5e2011-12-06 17:22:19 -0800111 if (int32_t(count) >= 0) { // server must protect against bad params
112 Mutex::Autolock _l(mLock);
Mathias Agopiancb9732a2012-04-03 17:48:03 -0700113 const int32_t new_count = (count == 0) ? -1 : count;
114 if (connection->count != new_count) {
115 connection->count = new_count;
Mathias Agopian7d886472012-06-14 23:39:35 -0700116 mCondition.broadcast();
Mathias Agopian478ae5e2011-12-06 17:22:19 -0800117 }
118 }
119}
120
121void EventThread::requestNextVsync(
Mathias Agopiancb9732a2012-04-03 17:48:03 -0700122 const sp<EventThread::Connection>& connection) {
Mathias Agopian478ae5e2011-12-06 17:22:19 -0800123 Mutex::Autolock _l(mLock);
Mathias Agopiancb9732a2012-04-03 17:48:03 -0700124 if (connection->count < 0) {
125 connection->count = 0;
Mathias Agopian7d886472012-06-14 23:39:35 -0700126 mCondition.broadcast();
Mathias Agopian478ae5e2011-12-06 17:22:19 -0800127 }
Mathias Agopian23748662011-12-05 14:33:34 -0800128}
129
Mathias Agopian22ffb112012-04-10 21:04:02 -0700130void EventThread::onScreenReleased() {
131 Mutex::Autolock _l(mLock);
Mathias Agopian22ffb112012-04-10 21:04:02 -0700132 if (!mUseSoftwareVSync) {
Mathias Agopian7d886472012-06-14 23:39:35 -0700133 // disable reliance on h/w vsync
134 mUseSoftwareVSync = true;
135 mCondition.broadcast();
Mathias Agopian22ffb112012-04-10 21:04:02 -0700136 }
Mathias Agopian22ffb112012-04-10 21:04:02 -0700137}
138
139void EventThread::onScreenAcquired() {
140 Mutex::Autolock _l(mLock);
Mathias Agopian7d886472012-06-14 23:39:35 -0700141 if (mUseSoftwareVSync) {
142 // resume use of h/w vsync
143 mUseSoftwareVSync = false;
144 mCondition.broadcast();
145 }
Mathias Agopian22ffb112012-04-10 21:04:02 -0700146}
147
Jamie Gennisfaf77cc2013-07-30 15:10:32 -0700148void EventThread::onVSyncEvent(nsecs_t timestamp) {
Mathias Agopian3eb38cb2012-04-03 22:09:52 -0700149 Mutex::Autolock _l(mLock);
Jamie Gennisfaf77cc2013-07-30 15:10:32 -0700150 mVSyncEvent[0].header.type = DisplayEventReceiver::DISPLAY_EVENT_VSYNC;
151 mVSyncEvent[0].header.id = 0;
152 mVSyncEvent[0].header.timestamp = timestamp;
153 mVSyncEvent[0].vsync.count++;
154 mCondition.broadcast();
Mathias Agopian3eb38cb2012-04-03 22:09:52 -0700155}
156
Mathias Agopian148994e2012-09-19 17:31:36 -0700157void EventThread::onHotplugReceived(int type, bool connected) {
Jesse Hall9e663de2013-08-16 14:28:37 -0700158 ALOGE_IF(type >= DisplayDevice::NUM_BUILTIN_DISPLAY_TYPES,
Jesse Hall7adb0f82013-03-06 16:13:49 -0800159 "received hotplug event for an invalid display (id=%d)", type);
Mathias Agopianff28e202012-09-20 23:24:19 -0700160
Mathias Agopian148994e2012-09-19 17:31:36 -0700161 Mutex::Autolock _l(mLock);
Jesse Hall9e663de2013-08-16 14:28:37 -0700162 if (type < DisplayDevice::NUM_BUILTIN_DISPLAY_TYPES) {
Mathias Agopianff28e202012-09-20 23:24:19 -0700163 DisplayEventReceiver::Event event;
164 event.header.type = DisplayEventReceiver::DISPLAY_EVENT_HOTPLUG;
165 event.header.id = type;
166 event.header.timestamp = systemTime();
167 event.hotplug.connected = connected;
168 mPendingEvents.add(event);
169 mCondition.broadcast();
170 }
Mathias Agopian148994e2012-09-19 17:31:36 -0700171}
172
Mathias Agopiand0566bc2011-11-17 17:49:17 -0800173bool EventThread::threadLoop() {
Mathias Agopianb4d18ed2012-09-20 23:14:05 -0700174 DisplayEventReceiver::Event event;
Mathias Agopiana4cb35a2012-08-20 20:07:34 -0700175 Vector< sp<EventThread::Connection> > signalConnections;
Mathias Agopianb4d18ed2012-09-20 23:14:05 -0700176 signalConnections = waitForEvent(&event);
Mathias Agopian3eb38cb2012-04-03 22:09:52 -0700177
Mathias Agopian148994e2012-09-19 17:31:36 -0700178 // dispatch events to listeners...
Mathias Agopiana4cb35a2012-08-20 20:07:34 -0700179 const size_t count = signalConnections.size();
Mathias Agopiand0566bc2011-11-17 17:49:17 -0800180 for (size_t i=0 ; i<count ; i++) {
Mathias Agopiana4cb35a2012-08-20 20:07:34 -0700181 const sp<Connection>& conn(signalConnections[i]);
Mathias Agopianb4d18ed2012-09-20 23:14:05 -0700182 // now see if we still need to report this event
183 status_t err = conn->postEvent(event);
Mathias Agopiana4cb35a2012-08-20 20:07:34 -0700184 if (err == -EAGAIN || err == -EWOULDBLOCK) {
185 // The destination doesn't accept events anymore, it's probably
186 // full. For now, we just drop the events on the floor.
Mathias Agopianb4d18ed2012-09-20 23:14:05 -0700187 // FIXME: Note that some events cannot be dropped and would have
188 // to be re-sent later.
189 // Right-now we don't have the ability to do this.
190 ALOGW("EventThread: dropping event (%08x) for connection %p",
191 event.header.type, conn.get());
Mathias Agopiana4cb35a2012-08-20 20:07:34 -0700192 } else if (err < 0) {
193 // handle any other error on the pipe as fatal. the only
194 // reasonable thing to do is to clean-up this connection.
195 // The most common error we'll get here is -EPIPE.
196 removeDisplayEventConnection(signalConnections[i]);
Mathias Agopiand0566bc2011-11-17 17:49:17 -0800197 }
198 }
Mathias Agopiand0566bc2011-11-17 17:49:17 -0800199 return true;
200}
201
Andy McFadden6bf552e2012-08-30 16:34:41 -0700202// This will return when (1) a vsync event has been received, and (2) there was
203// at least one connection interested in receiving it when we started waiting.
Mathias Agopianf6bbd442012-08-21 15:47:28 -0700204Vector< sp<EventThread::Connection> > EventThread::waitForEvent(
205 DisplayEventReceiver::Event* event)
206{
207 Mutex::Autolock _l(mLock);
Mathias Agopianf6bbd442012-08-21 15:47:28 -0700208 Vector< sp<EventThread::Connection> > signalConnections;
209
210 do {
Mathias Agopian148994e2012-09-19 17:31:36 -0700211 bool eventPending = false;
Mathias Agopianf6bbd442012-08-21 15:47:28 -0700212 bool waitForVSync = false;
Mathias Agopianf6bbd442012-08-21 15:47:28 -0700213
Mathias Agopianff28e202012-09-20 23:24:19 -0700214 size_t vsyncCount = 0;
215 nsecs_t timestamp = 0;
Jesse Hall9e663de2013-08-16 14:28:37 -0700216 for (int32_t i=0 ; i<DisplayDevice::NUM_BUILTIN_DISPLAY_TYPES ; i++) {
Mathias Agopianff28e202012-09-20 23:24:19 -0700217 timestamp = mVSyncEvent[i].header.timestamp;
218 if (timestamp) {
219 // we have a vsync event to dispatch
220 *event = mVSyncEvent[i];
221 mVSyncEvent[i].header.timestamp = 0;
222 vsyncCount = mVSyncEvent[i].vsync.count;
223 break;
224 }
225 }
226
227 if (!timestamp) {
228 // no vsync event, see if there are some other event
Mathias Agopian148994e2012-09-19 17:31:36 -0700229 eventPending = !mPendingEvents.isEmpty();
230 if (eventPending) {
231 // we have some other event to dispatch
232 *event = mPendingEvents[0];
233 mPendingEvents.removeAt(0);
234 }
235 }
236
Mathias Agopianf6bbd442012-08-21 15:47:28 -0700237 // find out connections waiting for events
238 size_t count = mDisplayEventConnections.size();
239 for (size_t i=0 ; i<count ; i++) {
240 sp<Connection> connection(mDisplayEventConnections[i].promote());
241 if (connection != NULL) {
Mathias Agopianb4d18ed2012-09-20 23:14:05 -0700242 bool added = false;
Mathias Agopianf6bbd442012-08-21 15:47:28 -0700243 if (connection->count >= 0) {
244 // we need vsync events because at least
245 // one connection is waiting for it
246 waitForVSync = true;
247 if (timestamp) {
248 // we consume the event only if it's time
249 // (ie: we received a vsync event)
250 if (connection->count == 0) {
251 // fired this time around
252 connection->count = -1;
253 signalConnections.add(connection);
Mathias Agopianb4d18ed2012-09-20 23:14:05 -0700254 added = true;
Mathias Agopianf6bbd442012-08-21 15:47:28 -0700255 } else if (connection->count == 1 ||
256 (vsyncCount % connection->count) == 0) {
257 // continuous event, and time to report it
258 signalConnections.add(connection);
Mathias Agopianb4d18ed2012-09-20 23:14:05 -0700259 added = true;
Mathias Agopianf6bbd442012-08-21 15:47:28 -0700260 }
261 }
262 }
Mathias Agopianb4d18ed2012-09-20 23:14:05 -0700263
264 if (eventPending && !timestamp && !added) {
265 // we don't have a vsync event to process
266 // (timestamp==0), but we have some pending
267 // messages.
268 signalConnections.add(connection);
269 }
Mathias Agopianf6bbd442012-08-21 15:47:28 -0700270 } else {
271 // we couldn't promote this reference, the connection has
272 // died, so clean-up!
273 mDisplayEventConnections.removeAt(i);
274 --i; --count;
275 }
276 }
277
278 // Here we figure out if we need to enable or disable vsyncs
279 if (timestamp && !waitForVSync) {
280 // we received a VSYNC but we have no clients
281 // don't report it, and disable VSYNC events
282 disableVSyncLocked();
283 } else if (!timestamp && waitForVSync) {
Andy McFadden6bf552e2012-08-30 16:34:41 -0700284 // we have at least one client, so we want vsync enabled
285 // (TODO: this function is called right after we finish
286 // notifying clients of a vsync, so this call will be made
287 // at the vsync rate, e.g. 60fps. If we can accurately
288 // track the current state we could avoid making this call
289 // so often.)
Mathias Agopianf6bbd442012-08-21 15:47:28 -0700290 enableVSyncLocked();
291 }
292
Andy McFadden6bf552e2012-08-30 16:34:41 -0700293 // note: !timestamp implies signalConnections.isEmpty(), because we
294 // don't populate signalConnections if there's no vsync pending
Mathias Agopian148994e2012-09-19 17:31:36 -0700295 if (!timestamp && !eventPending) {
Mathias Agopianf6bbd442012-08-21 15:47:28 -0700296 // wait for something to happen
Andy McFadden6bf552e2012-08-30 16:34:41 -0700297 if (waitForVSync) {
298 // This is where we spend most of our time, waiting
299 // for vsync events and new client registrations.
300 //
301 // If the screen is off, we can't use h/w vsync, so we
302 // use a 16ms timeout instead. It doesn't need to be
303 // precise, we just need to keep feeding our clients.
304 //
305 // We don't want to stall if there's a driver bug, so we
306 // use a (long) timeout when waiting for h/w vsync, and
307 // generate fake events when necessary.
308 bool softwareSync = mUseSoftwareVSync;
309 nsecs_t timeout = softwareSync ? ms2ns(16) : ms2ns(1000);
310 if (mCondition.waitRelative(mLock, timeout) == TIMED_OUT) {
311 if (!softwareSync) {
312 ALOGW("Timed out waiting for hw vsync; faking it");
313 }
Mathias Agopianff28e202012-09-20 23:24:19 -0700314 // FIXME: how do we decide which display id the fake
315 // vsync came from ?
316 mVSyncEvent[0].header.type = DisplayEventReceiver::DISPLAY_EVENT_VSYNC;
Jesse Hall9e663de2013-08-16 14:28:37 -0700317 mVSyncEvent[0].header.id = DisplayDevice::DISPLAY_PRIMARY;
Mathias Agopianff28e202012-09-20 23:24:19 -0700318 mVSyncEvent[0].header.timestamp = systemTime(SYSTEM_TIME_MONOTONIC);
319 mVSyncEvent[0].vsync.count++;
Mathias Agopianf6bbd442012-08-21 15:47:28 -0700320 }
321 } else {
Andy McFadden6bf552e2012-08-30 16:34:41 -0700322 // Nobody is interested in vsync, so we just want to sleep.
323 // h/w vsync should be disabled, so this will wait until we
324 // get a new connection, or an existing connection becomes
325 // interested in receiving vsync again.
Mathias Agopianf6bbd442012-08-21 15:47:28 -0700326 mCondition.wait(mLock);
327 }
328 }
329 } while (signalConnections.isEmpty());
330
331 // here we're guaranteed to have a timestamp and some connections to signal
Andy McFadden6bf552e2012-08-30 16:34:41 -0700332 // (The connections might have dropped out of mDisplayEventConnections
333 // while we were asleep, but we'll still have strong references to them.)
Mathias Agopianf6bbd442012-08-21 15:47:28 -0700334 return signalConnections;
335}
336
Mathias Agopian22ffb112012-04-10 21:04:02 -0700337void EventThread::enableVSyncLocked() {
338 if (!mUseSoftwareVSync) {
339 // never enable h/w VSYNC when screen is off
Jamie Gennisfaf77cc2013-07-30 15:10:32 -0700340 if (!mVsyncEnabled) {
341 mVsyncEnabled = true;
342 mVSyncSource->setCallback(static_cast<VSyncSource::Callback*>(this));
343 mVSyncSource->setVSyncEnabled(true);
Jamie Gennisfaf77cc2013-07-30 15:10:32 -0700344 }
Mathias Agopian22ffb112012-04-10 21:04:02 -0700345 }
Mathias Agopiane2c4f4e2012-04-10 18:25:31 -0700346 mDebugVsyncEnabled = true;
Ruchi Kandoief472ec2014-04-02 12:50:06 -0700347 sendVsyncHintOnLocked();
Mathias Agopiane2c4f4e2012-04-10 18:25:31 -0700348}
349
Mathias Agopian22ffb112012-04-10 21:04:02 -0700350void EventThread::disableVSyncLocked() {
Jamie Gennisfaf77cc2013-07-30 15:10:32 -0700351 if (mVsyncEnabled) {
352 mVsyncEnabled = false;
353 mVSyncSource->setVSyncEnabled(false);
Jamie Gennisfaf77cc2013-07-30 15:10:32 -0700354 mDebugVsyncEnabled = false;
355 }
Mathias Agopiane2c4f4e2012-04-10 18:25:31 -0700356}
357
Mathias Agopian74d211a2013-04-22 16:55:35 +0200358void EventThread::dump(String8& result) const {
Mathias Agopiand0566bc2011-11-17 17:49:17 -0800359 Mutex::Autolock _l(mLock);
Mathias Agopiane2c4f4e2012-04-10 18:25:31 -0700360 result.appendFormat("VSYNC state: %s\n",
361 mDebugVsyncEnabled?"enabled":"disabled");
Mathias Agopian22ffb112012-04-10 21:04:02 -0700362 result.appendFormat(" soft-vsync: %s\n",
363 mUseSoftwareVSync?"enabled":"disabled");
Greg Hackmann86efcc02014-03-07 12:44:02 -0800364 result.appendFormat(" numListeners=%zu,\n events-delivered: %u\n",
Mathias Agopianff28e202012-09-20 23:24:19 -0700365 mDisplayEventConnections.size(),
Jesse Hall9e663de2013-08-16 14:28:37 -0700366 mVSyncEvent[DisplayDevice::DISPLAY_PRIMARY].vsync.count);
Mathias Agopiane2c4f4e2012-04-10 18:25:31 -0700367 for (size_t i=0 ; i<mDisplayEventConnections.size() ; i++) {
368 sp<Connection> connection =
369 mDisplayEventConnections.itemAt(i).promote();
370 result.appendFormat(" %p: count=%d\n",
371 connection.get(), connection!=NULL ? connection->count : 0);
372 }
Mathias Agopiand0566bc2011-11-17 17:49:17 -0800373}
374
375// ---------------------------------------------------------------------------
376
Mathias Agopiancb9732a2012-04-03 17:48:03 -0700377EventThread::Connection::Connection(
378 const sp<EventThread>& eventThread)
379 : count(-1), mEventThread(eventThread), mChannel(new BitTube())
380{
381}
382
383EventThread::Connection::~Connection() {
Mathias Agopianf6bbd442012-08-21 15:47:28 -0700384 // do nothing here -- clean-up will happen automatically
385 // when the main thread wakes up
Mathias Agopiancb9732a2012-04-03 17:48:03 -0700386}
387
388void EventThread::Connection::onFirstRef() {
389 // NOTE: mEventThread doesn't hold a strong reference on us
390 mEventThread->registerDisplayEventConnection(this);
391}
392
393sp<BitTube> EventThread::Connection::getDataChannel() const {
394 return mChannel;
395}
396
397void EventThread::Connection::setVsyncRate(uint32_t count) {
398 mEventThread->setVsyncRate(count, this);
399}
400
401void EventThread::Connection::requestNextVsync() {
402 mEventThread->requestNextVsync(this);
403}
404
405status_t EventThread::Connection::postEvent(
406 const DisplayEventReceiver::Event& event) {
407 ssize_t size = DisplayEventReceiver::sendEvents(mChannel, &event, 1);
408 return size < 0 ? status_t(size) : status_t(NO_ERROR);
409}
410
411// ---------------------------------------------------------------------------
412
Mathias Agopiand0566bc2011-11-17 17:49:17 -0800413}; // namespace android