blob: ef10f0db260ae6f9d3bd0126a3b950b613fe0796 [file] [log] [blame]
Igor Murashkinae500e52013-04-22 14:03:54 -07001/*
2 * Copyright (C) 2013 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#ifndef ANDROID_SERVERS_CAMERA3_STREAM_INTERFACE_H
18#define ANDROID_SERVERS_CAMERA3_STREAM_INTERFACE_H
19
20#include <utils/RefBase.h>
Shuzhen Wang68ac7ad2019-01-30 14:03:28 -080021
22#include <camera/CameraMetadata.h>
Igor Murashkinae500e52013-04-22 14:03:54 -070023#include "Camera3StreamBufferListener.h"
Yin-Chia Yehbe83fa72017-03-30 13:35:36 -070024#include "Camera3StreamBufferFreedListener.h"
Igor Murashkinae500e52013-04-22 14:03:54 -070025
Igor Murashkinae500e52013-04-22 14:03:54 -070026namespace android {
27
28namespace camera3 {
29
Emilian Peevf4816702020-04-03 15:44:51 -070030typedef enum camera_buffer_status {
31 CAMERA_BUFFER_STATUS_OK = 0,
32 CAMERA_BUFFER_STATUS_ERROR = 1
33} camera_buffer_status_t;
34
35typedef enum camera_stream_type {
36 CAMERA_STREAM_OUTPUT = 0,
37 CAMERA_STREAM_INPUT = 1,
38 CAMERA_NUM_STREAM_TYPES
39} camera_stream_type_t;
40
41typedef enum camera_stream_rotation {
42 /* No rotation */
43 CAMERA_STREAM_ROTATION_0 = 0,
44
45 /* Rotate by 90 degree counterclockwise */
46 CAMERA_STREAM_ROTATION_90 = 1,
47
48 /* Rotate by 180 degree counterclockwise */
49 CAMERA_STREAM_ROTATION_180 = 2,
50
51 /* Rotate by 270 degree counterclockwise */
52 CAMERA_STREAM_ROTATION_270 = 3
53} camera_stream_rotation_t;
54
55typedef struct camera_stream {
56 camera_stream_type_t stream_type;
57 uint32_t width;
58 uint32_t height;
59 int format;
60 uint32_t usage;
61 uint32_t max_buffers;
62 android_dataspace_t data_space;
63 camera_stream_rotation_t rotation;
64 const char* physical_camera_id;
Jayant Chowdhary13f9b2f2020-12-02 22:46:15 -080065
66 std::unordered_set<int32_t> sensor_pixel_modes_used;
Emilian Peev2295df72021-11-12 18:14:10 -080067 int dynamic_range_profile;
Emilian Peevf4816702020-04-03 15:44:51 -070068} camera_stream_t;
69
70typedef struct camera_stream_buffer {
71 camera_stream_t *stream;
72 buffer_handle_t *buffer;
73 camera_buffer_status_t status;
74 int acquire_fence;
75 int release_fence;
76} camera_stream_buffer_t;
77
Shuzhen Wang83bff122020-11-20 15:51:39 -080078struct Size {
79 uint32_t width;
80 uint32_t height;
81 explicit Size(uint32_t w = 0, uint32_t h = 0) : width(w), height(h){}
82};
83
Zhijun He125684a2015-12-26 15:07:30 -080084enum {
85 /**
86 * This stream set ID indicates that the set ID is invalid, and this stream doesn't intend to
87 * share buffers with any other stream. It is illegal to register this kind of stream to
88 * Camera3BufferManager.
89 */
90 CAMERA3_STREAM_SET_ID_INVALID = -1,
91
92 /**
93 * Invalid output stream ID.
94 */
95 CAMERA3_STREAM_ID_INVALID = -1,
96};
97
Eino-Ville Talvalaf1e98d82013-09-06 09:32:43 -070098class StatusTracker;
99
Emilian Peev40ead602017-09-26 15:46:36 +0100100// OutputStreamInfo describes the property of a camera stream.
101class OutputStreamInfo {
102 public:
103 int width;
104 int height;
105 int format;
106 android_dataspace dataSpace;
107 uint64_t consumerUsage;
108 bool finalized = false;
Emilian Peevcc0b7952020-01-07 13:54:47 -0800109 bool supportsOffline = false;
Jayant Chowdhary13f9b2f2020-12-02 22:46:15 -0800110 std::unordered_set<int32_t> sensorPixelModesUsed;
Emilian Peev2295df72021-11-12 18:14:10 -0800111 int dynamicRangeProfile;
Emilian Peev40ead602017-09-26 15:46:36 +0100112 OutputStreamInfo() :
113 width(-1), height(-1), format(-1), dataSpace(HAL_DATASPACE_UNKNOWN),
Emilian Peev2295df72021-11-12 18:14:10 -0800114 consumerUsage(0),
115 dynamicRangeProfile(ANDROID_REQUEST_AVAILABLE_DYNAMIC_RANGE_PROFILES_MAP_STANDARD) {}
Emilian Peev40ead602017-09-26 15:46:36 +0100116 OutputStreamInfo(int _width, int _height, int _format, android_dataspace _dataSpace,
Emilian Peev2295df72021-11-12 18:14:10 -0800117 uint64_t _consumerUsage, const std::unordered_set<int32_t>& _sensorPixelModesUsed,
118 int _dynamicRangeProfile) :
Emilian Peev40ead602017-09-26 15:46:36 +0100119 width(_width), height(_height), format(_format),
Jayant Chowdhary13f9b2f2020-12-02 22:46:15 -0800120 dataSpace(_dataSpace), consumerUsage(_consumerUsage),
Emilian Peev2295df72021-11-12 18:14:10 -0800121 sensorPixelModesUsed(_sensorPixelModesUsed), dynamicRangeProfile(_dynamicRangeProfile){}
Emilian Peev40ead602017-09-26 15:46:36 +0100122};
123
Igor Murashkinae500e52013-04-22 14:03:54 -0700124/**
125 * An interface for managing a single stream of input and/or output data from
126 * the camera device.
127 */
128class Camera3StreamInterface : public virtual RefBase {
129 public:
Ruben Brunkc78ac262015-08-13 17:58:46 -0700130
131 enum {
132 ALLOCATE_PIPELINE_MAX = 0, // Allocate max buffers used by a given surface
133 };
134
Igor Murashkinae500e52013-04-22 14:03:54 -0700135 /**
136 * Get the stream's ID
137 */
138 virtual int getId() const = 0;
139
140 /**
Zhijun He125684a2015-12-26 15:07:30 -0800141 * Get the output stream set id.
142 */
143 virtual int getStreamSetId() const = 0;
144
145 /**
Shuzhen Wang99080502021-03-07 21:08:20 -0800146 * Is this stream part of a multi-resolution stream set
147 */
148 virtual bool isMultiResolution() const = 0;
149
150 /**
151 * Get the HAL stream group id for a multi-resolution stream set
152 */
153 virtual int getHalStreamGroupId() const = 0;
154
155 /**
Igor Murashkinae500e52013-04-22 14:03:54 -0700156 * Get the stream's dimensions and format
157 */
158 virtual uint32_t getWidth() const = 0;
159 virtual uint32_t getHeight() const = 0;
160 virtual int getFormat() const = 0;
Emilian Peev2295df72021-11-12 18:14:10 -0800161 virtual int getDynamicRangeProfile() const = 0;
Eino-Ville Talvalad46a6b92015-05-14 17:26:24 -0700162 virtual android_dataspace getDataSpace() const = 0;
Emilian Peev710c1422017-08-30 11:19:38 +0100163 virtual void setFormatOverride(bool formatOverriden) = 0;
Eino-Ville Talvala91cd3f82017-08-21 16:12:50 -0700164 virtual bool isFormatOverridden() const = 0;
165 virtual int getOriginalFormat() const = 0;
166 virtual void setDataSpaceOverride(bool dataSpaceOverriden) = 0;
167 virtual bool isDataSpaceOverridden() const = 0;
168 virtual android_dataspace getOriginalDataSpace() const = 0;
Shuzhen Wang316781a2020-08-18 18:11:01 -0700169 virtual int getMaxHalBuffers() const = 0;
170 virtual int getMaxTotalBuffers() const = 0;
Igor Murashkinae500e52013-04-22 14:03:54 -0700171
172 /**
Yin-Chia Yeh5fd603e2019-11-20 11:22:27 -0800173 * Offline processing
174 */
175 virtual void setOfflineProcessingSupport(bool support) = 0;
176 virtual bool getOfflineProcessingSupport() const = 0;
177
178 /**
Emilian Peevf4816702020-04-03 15:44:51 -0700179 * Get a handle for the stream, without starting stream configuration.
Eino-Ville Talvala0b1cb142016-12-19 16:29:17 -0800180 */
Emilian Peevf4816702020-04-03 15:44:51 -0700181 virtual camera_stream* asHalStream() = 0;
Eino-Ville Talvala0b1cb142016-12-19 16:29:17 -0800182
183 /**
Igor Murashkinae500e52013-04-22 14:03:54 -0700184 * Start the stream configuration process. Returns a handle to the stream's
Emilian Peevf4816702020-04-03 15:44:51 -0700185 * information to be passed into the device's configure_streams call.
Igor Murashkinae500e52013-04-22 14:03:54 -0700186 *
187 * Until finishConfiguration() is called, no other methods on the stream may
Emilian Peevf4816702020-04-03 15:44:51 -0700188 * be called. The usage and max_buffers fields of camera_stream may be
Igor Murashkinae500e52013-04-22 14:03:54 -0700189 * modified between start/finishConfiguration, but may not be changed after
Emilian Peevf4816702020-04-03 15:44:51 -0700190 * that. The priv field of camera_stream may be modified at any time after
Igor Murashkinae500e52013-04-22 14:03:54 -0700191 * startConfiguration.
192 *
193 * Returns NULL in case of error starting configuration.
194 */
Emilian Peevf4816702020-04-03 15:44:51 -0700195 virtual camera_stream* startConfiguration() = 0;
Igor Murashkinae500e52013-04-22 14:03:54 -0700196
197 /**
198 * Check if the stream is mid-configuration (start has been called, but not
199 * finish). Used for lazy completion of configuration.
200 */
201 virtual bool isConfiguring() const = 0;
202
203 /**
204 * Completes the stream configuration process. During this call, the stream
205 * may call the device's register_stream_buffers() method. The stream
206 * information structure returned by startConfiguration() may no longer be
207 * modified after this call, but can still be read until the destruction of
208 * the stream.
209 *
Yin-Chia Yeh573a2702019-04-17 10:08:55 -0700210 * streamReconfigured: set to true when a stream is being reconfigured.
211 *
Igor Murashkinae500e52013-04-22 14:03:54 -0700212 * Returns:
213 * OK on a successful configuration
214 * NO_INIT in case of a serious error from the HAL device
215 * NO_MEMORY in case of an error registering buffers
216 * INVALID_OPERATION in case connecting to the consumer failed
217 */
Yin-Chia Yeh573a2702019-04-17 10:08:55 -0700218 virtual status_t finishConfiguration(/*out*/bool* streamReconfigured = nullptr) = 0;
Igor Murashkinae500e52013-04-22 14:03:54 -0700219
220 /**
Eino-Ville Talvala17543512014-08-06 14:32:02 -0700221 * Cancels the stream configuration process. This returns the stream to the
222 * initial state, allowing it to be configured again later.
223 * This is done if the HAL rejects the proposed combined stream configuration
224 */
225 virtual status_t cancelConfiguration() = 0;
226
227 /**
Eino-Ville Talvala4d44cad2015-04-11 13:15:45 -0700228 * Determine whether the stream has already become in-use (has received
229 * a valid filled buffer), which determines if a stream can still have
230 * prepareNextBuffer called on it.
231 */
232 virtual bool isUnpreparable() = 0;
233
234 /**
Emilian Peevf0348ae2021-01-13 13:39:45 -0800235 * Mark the stream as unpreparable.
236 */
237 virtual void markUnpreparable() = 0;
238
239 /**
Eino-Ville Talvala4d44cad2015-04-11 13:15:45 -0700240 * Start stream preparation. May only be called in the CONFIGURED state,
Ruben Brunkc78ac262015-08-13 17:58:46 -0700241 * when no valid buffers have yet been returned to this stream. Prepares
242 * up to maxCount buffers, or the maximum number of buffers needed by the
243 * pipeline if maxCount is ALLOCATE_PIPELINE_MAX.
Eino-Ville Talvala4d44cad2015-04-11 13:15:45 -0700244 *
245 * If no prepartion is necessary, returns OK and does not transition to
246 * PREPARING state. Otherwise, returns NOT_ENOUGH_DATA and transitions
247 * to PREPARING.
248 *
Shuzhen Wangb3a0fb52018-09-13 17:24:08 -0700249 * blockRequest specifies whether prepare will block upcoming capture
250 * request. This flag should only be set to false if the caller guarantees
251 * the whole buffer preparation process is done before capture request
252 * comes in.
253 *
Eino-Ville Talvala4d44cad2015-04-11 13:15:45 -0700254 * Returns:
255 * OK if no more buffers need to be preallocated
256 * NOT_ENOUGH_DATA if calls to prepareNextBuffer are needed to finish
257 * buffer pre-allocation, and transitions to the PREPARING state.
258 * NO_INIT in case of a serious error from the HAL device
259 * INVALID_OPERATION if called when not in CONFIGURED state, or a
260 * valid buffer has already been returned to this stream.
261 */
Shuzhen Wangb3a0fb52018-09-13 17:24:08 -0700262 virtual status_t startPrepare(int maxCount, bool blockRequest) = 0;
Eino-Ville Talvala4d44cad2015-04-11 13:15:45 -0700263
264 /**
Shuzhen Wangb3a0fb52018-09-13 17:24:08 -0700265 * Check if the request on a stream is blocked by prepare.
Eino-Ville Talvala4d44cad2015-04-11 13:15:45 -0700266 */
Shuzhen Wangb3a0fb52018-09-13 17:24:08 -0700267 virtual bool isBlockedByPrepare() const = 0;
Eino-Ville Talvala4d44cad2015-04-11 13:15:45 -0700268
269 /**
270 * Continue stream buffer preparation by allocating the next
271 * buffer for this stream. May only be called in the PREPARED state.
272 *
273 * Returns OK and transitions to the CONFIGURED state if all buffers
274 * are allocated after the call concludes. Otherwise returns NOT_ENOUGH_DATA.
275 *
276 * Returns:
277 * OK if no more buffers need to be preallocated, and transitions
278 * to the CONFIGURED state.
279 * NOT_ENOUGH_DATA if more calls to prepareNextBuffer are needed to finish
280 * buffer pre-allocation.
281 * NO_INIT in case of a serious error from the HAL device
282 * INVALID_OPERATION if called when not in CONFIGURED state, or a
283 * valid buffer has already been returned to this stream.
284 */
285 virtual status_t prepareNextBuffer() = 0;
286
287 /**
288 * Cancel stream preparation early. In case allocation needs to be
289 * stopped, this method transitions the stream back to the CONFIGURED state.
290 * Buffers that have been allocated with prepareNextBuffer remain that way,
291 * but a later use of prepareNextBuffer will require just as many
292 * calls as if the earlier prepare attempt had not existed.
293 *
294 * Returns:
295 * OK if cancellation succeeded, and transitions to the CONFIGURED state
296 * INVALID_OPERATION if not in the PREPARING state
297 * NO_INIT in case of a serious error from the HAL device
298 */
299 virtual status_t cancelPrepare() = 0;
300
301 /**
Eino-Ville Talvalab25e3c82015-07-15 16:04:27 -0700302 * Tear down memory for this stream. This frees all unused gralloc buffers
303 * allocated for this stream, but leaves it ready for operation afterward.
304 *
305 * May only be called in the CONFIGURED state, and keeps the stream in
306 * the CONFIGURED state.
307 *
308 * Returns:
309 * OK if teardown succeeded.
310 * INVALID_OPERATION if not in the CONFIGURED state
311 * NO_INIT in case of a serious error from the HAL device
312 */
313 virtual status_t tearDown() = 0;
314
315 /**
Emilian Peevf4816702020-04-03 15:44:51 -0700316 * Fill in the camera_stream_buffer with the next valid buffer for this
Igor Murashkinae500e52013-04-22 14:03:54 -0700317 * stream, to hand over to the HAL.
318 *
Shuzhen Wangbee0f0a2017-01-24 14:51:37 -0800319 * Multiple surfaces could share the same HAL stream, but a request may
320 * be only for a subset of surfaces. In this case, the
321 * Camera3StreamInterface object needs the surface ID information to acquire
322 * buffers for those surfaces. For the case of single surface for a HAL
323 * stream, surface_ids parameter has no effect.
324 *
Igor Murashkinae500e52013-04-22 14:03:54 -0700325 * This method may only be called once finishConfiguration has been called.
326 * For bidirectional streams, this method applies to the output-side
327 * buffers.
328 *
329 */
Emilian Peevf4816702020-04-03 15:44:51 -0700330 virtual status_t getBuffer(camera_stream_buffer *buffer,
Yin-Chia Yehb3a80b12018-09-04 12:13:05 -0700331 nsecs_t waitBufferTimeout,
Shuzhen Wangbee0f0a2017-01-24 14:51:37 -0800332 const std::vector<size_t>& surface_ids = std::vector<size_t>()) = 0;
Igor Murashkinae500e52013-04-22 14:03:54 -0700333
Yin-Chia Yeh14ef48d2020-02-10 15:06:37 -0800334 struct OutstandingBuffer {
335 camera_stream_buffer* outBuffer;
336
337 /**
338 * Multiple surfaces could share the same HAL stream, but a request may
339 * be only for a subset of surfaces. In this case, the
340 * Camera3StreamInterface object needs the surface ID information to acquire
341 * buffers for those surfaces. For the case of single surface for a HAL
342 * stream, surface_ids parameter has no effect.
343 */
344 std::vector<size_t> surface_ids;
345 };
346 /**
347 * Similar to getBuffer() except this method fills multiple buffers.
348 */
349 virtual status_t getBuffers(std::vector<OutstandingBuffer>* buffers,
350 nsecs_t waitBufferTimeout) = 0;
351
Igor Murashkinae500e52013-04-22 14:03:54 -0700352 /**
353 * Return a buffer to the stream after use by the HAL.
354 *
Yin-Chia Yeh58b1b4e2018-10-15 12:18:36 -0700355 * Multiple surfaces could share the same HAL stream, but a request may
356 * be only for a subset of surfaces. In this case, the
357 * Camera3StreamInterface object needs the surface ID information to attach
358 * buffers for those surfaces. For the case of single surface for a HAL
359 * stream, surface_ids parameter has no effect.
360 *
Igor Murashkinae500e52013-04-22 14:03:54 -0700361 * This method may only be called for buffers provided by getBuffer().
362 * For bidirectional streams, this method applies to the output-side buffers
363 */
Emilian Peevf4816702020-04-03 15:44:51 -0700364 virtual status_t returnBuffer(const camera_stream_buffer &buffer,
Shuzhen Wang90708ea2021-11-04 11:40:49 -0700365 nsecs_t timestamp, nsecs_t readoutTimestamp, bool timestampIncreasing = true,
Emilian Peev538c90e2018-12-17 18:03:19 +0000366 const std::vector<size_t>& surface_ids = std::vector<size_t>(),
Emilian Peev5104fe92021-10-21 14:27:09 -0700367 uint64_t frameNumber = 0, int32_t transform = -1) = 0;
Igor Murashkinae500e52013-04-22 14:03:54 -0700368
369 /**
Emilian Peevf4816702020-04-03 15:44:51 -0700370 * Fill in the camera_stream_buffer with the next valid buffer for this
Igor Murashkinae500e52013-04-22 14:03:54 -0700371 * stream, to hand over to the HAL.
372 *
373 * This method may only be called once finishConfiguration has been called.
374 * For bidirectional streams, this method applies to the input-side
375 * buffers.
376 *
Eino-Ville Talvalaba435252017-06-21 16:07:25 -0700377 * Normally this call will block until the handed out buffer count is less than the stream
378 * max buffer count; if respectHalLimit is set to false, this is ignored.
Igor Murashkinae500e52013-04-22 14:03:54 -0700379 */
Shuzhen Wang83bff122020-11-20 15:51:39 -0800380 virtual status_t getInputBuffer(camera_stream_buffer *buffer,
381 Size *size, bool respectHalLimit = true) = 0;
Igor Murashkinae500e52013-04-22 14:03:54 -0700382
383 /**
384 * Return a buffer to the stream after use by the HAL.
385 *
386 * This method may only be called for buffers provided by getBuffer().
387 * For bidirectional streams, this method applies to the input-side buffers
388 */
Emilian Peevf4816702020-04-03 15:44:51 -0700389 virtual status_t returnInputBuffer(const camera_stream_buffer &buffer) = 0;
Igor Murashkinae500e52013-04-22 14:03:54 -0700390
391 /**
Chien-Yu Chen618ff8a2015-03-13 11:27:17 -0700392 * Get the buffer producer of the input buffer queue.
393 *
394 * This method only applies to input streams.
395 */
396 virtual status_t getInputBufferProducer(sp<IGraphicBufferProducer> *producer) = 0;
397
398 /**
Igor Murashkinae500e52013-04-22 14:03:54 -0700399 * Whether any of the stream's buffers are currently in use by the HAL,
400 * including buffers that have been returned but not yet had their
401 * release fence signaled.
402 */
403 virtual bool hasOutstandingBuffers() const = 0;
404
Yin-Chia Yehd5cd5ff2018-10-01 14:43:04 -0700405 /**
406 * Get number of buffers currently handed out to HAL
407 */
408 virtual size_t getOutstandingBuffersCount() const = 0;
409
Igor Murashkinae500e52013-04-22 14:03:54 -0700410 enum {
411 TIMEOUT_NEVER = -1
412 };
Eino-Ville Talvalaf1e98d82013-09-06 09:32:43 -0700413
Igor Murashkinae500e52013-04-22 14:03:54 -0700414 /**
Eino-Ville Talvalaf1e98d82013-09-06 09:32:43 -0700415 * Set the state tracker to use for signaling idle transitions.
Igor Murashkinae500e52013-04-22 14:03:54 -0700416 */
Eino-Ville Talvalaf1e98d82013-09-06 09:32:43 -0700417 virtual status_t setStatusTracker(sp<StatusTracker> statusTracker) = 0;
Igor Murashkinae500e52013-04-22 14:03:54 -0700418
419 /**
420 * Disconnect stream from its non-HAL endpoint. After this,
421 * start/finishConfiguration must be called before the stream can be used
422 * again. This cannot be called if the stream has outstanding dequeued
423 * buffers.
424 */
425 virtual status_t disconnect() = 0;
426
427 /**
Chien-Yu Chene8c535e2016-04-14 12:18:26 -0700428 * Return if the buffer queue of the stream is abandoned.
429 */
430 virtual bool isAbandoned() const = 0;
431
432 /**
Igor Murashkinae500e52013-04-22 14:03:54 -0700433 * Debug dump of the stream's state.
434 */
435 virtual void dump(int fd, const Vector<String16> &args) const = 0;
436
437 virtual void addBufferListener(
438 wp<Camera3StreamBufferListener> listener) = 0;
439 virtual void removeBufferListener(
440 const sp<Camera3StreamBufferListener>& listener) = 0;
Yin-Chia Yehbe83fa72017-03-30 13:35:36 -0700441
442 /**
443 * Setting listner will remove previous listener (if exists)
444 * Only allow set listener during stream configuration because stream is guaranteed to be IDLE
445 * at this state, so setBufferFreedListener won't collide with onBufferFreed callbacks.
446 * Client is responsible to keep the listener object alive throughout the lifecycle of this
447 * Camera3Stream.
448 */
Yin-Chia Yehdb1e8642017-07-14 15:19:30 -0700449 virtual void setBufferFreedListener(wp<Camera3StreamBufferFreedListener> listener) = 0;
Emilian Peev538c90e2018-12-17 18:03:19 +0000450
451 /**
452 * Notify buffer stream listeners about incoming request with particular frame number.
453 */
Shuzhen Wang68ac7ad2019-01-30 14:03:28 -0800454 virtual void fireBufferRequestForFrameNumber(uint64_t frameNumber,
455 const CameraMetadata& settings) = 0;
Igor Murashkinae500e52013-04-22 14:03:54 -0700456};
457
458} // namespace camera3
459
460} // namespace android
461
462#endif