blob: 90ac1c2535c96367eeaf7b72b283bc4a4da10c59 [file] [log] [blame]
Jiwen 'Steve' Caid9f2abe2018-10-20 17:03:13 -07001/*
2 * Copyright (C) 2018 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
Fan Xu55b26a62018-12-19 11:03:14 -080017#include <array>
Fan Xufe097c72018-12-07 15:46:51 -080018#include <iomanip>
Fan Xu55b26a62018-12-19 11:03:14 -080019#include <random>
Fan Xufe097c72018-12-07 15:46:51 -080020#include <sstream>
21
Fan Xu93c94902018-11-01 12:22:05 -070022#include <android/hardware_buffer.h>
Jiwen 'Steve' Caid9f2abe2018-10-20 17:03:13 -070023#include <bufferhub/BufferHubService.h>
Fan Xu18d90ea2018-11-06 15:46:44 -080024#include <cutils/native_handle.h>
Fan Xu93c94902018-11-01 12:22:05 -070025#include <log/log.h>
Fan Xu55b26a62018-12-19 11:03:14 -080026#include <openssl/hmac.h>
Fan Xufe097c72018-12-07 15:46:51 -080027#include <system/graphics-base.h>
Fan Xuefce32e2018-12-12 14:34:16 -080028#include <ui/BufferHubDefs.h>
Fan Xufe097c72018-12-07 15:46:51 -080029
30using ::android::BufferHubDefs::MetadataHeader;
31using ::android::hardware::Void;
Jiwen 'Steve' Caid9f2abe2018-10-20 17:03:13 -070032
33namespace android {
34namespace frameworks {
35namespace bufferhub {
36namespace V1_0 {
37namespace implementation {
38
Fan Xu55b26a62018-12-19 11:03:14 -080039BufferHubService::BufferHubService() {
40 std::mt19937_64 randomEngine;
41 randomEngine.seed(time(nullptr));
42
43 mKey = randomEngine();
44}
45
Fan Xu93c94902018-11-01 12:22:05 -070046Return<void> BufferHubService::allocateBuffer(const HardwareBufferDescription& description,
47 const uint32_t userMetadataSize,
Fan Xuca70b7b2018-10-31 13:20:12 -070048 allocateBuffer_cb _hidl_cb) {
Fan Xu93c94902018-11-01 12:22:05 -070049 AHardwareBuffer_Desc desc;
50 memcpy(&desc, &description, sizeof(AHardwareBuffer_Desc));
51
52 std::shared_ptr<BufferNode> node =
53 std::make_shared<BufferNode>(desc.width, desc.height, desc.layers, desc.format,
Fan Xu1c16df52018-11-19 16:27:27 -080054 desc.usage, userMetadataSize,
55 BufferHubIdGenerator::getInstance().getId());
Tianyu Jiang727ede42019-02-01 11:44:51 -080056 if (node == nullptr || !node->isValid()) {
Fan Xu93c94902018-11-01 12:22:05 -070057 ALOGE("%s: creating BufferNode failed.", __FUNCTION__);
Fan Xuf8f4a452018-11-29 16:26:30 -080058 _hidl_cb(/*status=*/BufferHubStatus::ALLOCATION_FAILED, /*bufferClient=*/nullptr,
59 /*bufferTraits=*/{});
Fan Xu93c94902018-11-01 12:22:05 -070060 return Void();
61 }
62
Fan Xu18d90ea2018-11-06 15:46:44 -080063 sp<BufferClient> client = BufferClient::create(this, node);
Fan Xu93c94902018-11-01 12:22:05 -070064 // Add it to list for bookkeeping and dumpsys.
Fan Xucd74d782018-11-26 13:51:25 -080065 std::lock_guard<std::mutex> lock(mClientSetMutex);
66 mClientSet.emplace(client);
Fan Xu93c94902018-11-01 12:22:05 -070067
Tianyu Jiang8adb3192019-01-29 10:54:24 -080068 // Allocate memory for bufferInfo of type hidl_handle on the stack. See
69 // http://aosp/286282 for the usage of NATIVE_HANDLE_DECLARE_STORAGE.
70 NATIVE_HANDLE_DECLARE_STORAGE(bufferInfoStorage, BufferHubDefs::kBufferInfoNumFds,
71 BufferHubDefs::kBufferInfoNumInts);
72 hidl_handle bufferInfo =
Tianyu Jiang727ede42019-02-01 11:44:51 -080073 buildBufferInfo(bufferInfoStorage, node->id(), node->addNewActiveClientsBitToMask(),
74 node->userMetadataSize(), node->metadata().ashmemFd(),
Tianyu Jiang8adb3192019-01-29 10:54:24 -080075 node->eventFd().get());
Fan Xuf8f4a452018-11-29 16:26:30 -080076 BufferTraits bufferTraits = {/*bufferDesc=*/description,
Tianyu Jiang727ede42019-02-01 11:44:51 -080077 /*bufferHandle=*/hidl_handle(node->bufferHandle()),
Tianyu Jiang8adb3192019-01-29 10:54:24 -080078 /*bufferInfo=*/std::move(bufferInfo)};
Fan Xuf8f4a452018-11-29 16:26:30 -080079
80 _hidl_cb(/*status=*/BufferHubStatus::NO_ERROR, /*bufferClient=*/client,
Tianyu Jiang8adb3192019-01-29 10:54:24 -080081 /*bufferTraits=*/std::move(bufferTraits));
Jiwen 'Steve' Caid9f2abe2018-10-20 17:03:13 -070082 return Void();
83}
84
Fan Xu467e08f2018-11-09 15:58:51 -080085Return<void> BufferHubService::importBuffer(const hidl_handle& tokenHandle,
Fan Xuca70b7b2018-10-31 13:20:12 -070086 importBuffer_cb _hidl_cb) {
Fan Xu55b26a62018-12-19 11:03:14 -080087 if (!tokenHandle.getNativeHandle() || tokenHandle->numFds != 0 || tokenHandle->numInts <= 1) {
Fan Xu467e08f2018-11-09 15:58:51 -080088 // nullptr handle or wrong format
Fan Xuf8f4a452018-11-29 16:26:30 -080089 _hidl_cb(/*status=*/BufferHubStatus::INVALID_TOKEN, /*bufferClient=*/nullptr,
90 /*bufferTraits=*/{});
Fan Xu467e08f2018-11-09 15:58:51 -080091 return Void();
92 }
93
Fan Xu55b26a62018-12-19 11:03:14 -080094 int tokenId = tokenHandle->data[0];
Fan Xu467e08f2018-11-09 15:58:51 -080095
96 wp<BufferClient> originClientWp;
97 {
Fan Xu55b26a62018-12-19 11:03:14 -080098 std::lock_guard<std::mutex> lock(mTokenMutex);
99 auto iter = mTokenMap.find(tokenId);
Fan Xu467e08f2018-11-09 15:58:51 -0800100 if (iter == mTokenMap.end()) {
Fan Xu55b26a62018-12-19 11:03:14 -0800101 // Token Id not exist
102 ALOGD("%s: token #%d not found.", __FUNCTION__, tokenId);
Fan Xuf8f4a452018-11-29 16:26:30 -0800103 _hidl_cb(/*status=*/BufferHubStatus::INVALID_TOKEN, /*bufferClient=*/nullptr,
104 /*bufferTraits=*/{});
Fan Xu467e08f2018-11-09 15:58:51 -0800105 return Void();
106 }
107
Fan Xu55b26a62018-12-19 11:03:14 -0800108 const std::vector<uint8_t>& tokenHMAC = iter->second.first;
109
110 int numIntsForHMAC = (int)ceil(tokenHMAC.size() * sizeof(uint8_t) / (double)sizeof(int));
111 if (tokenHandle->numInts - 1 != numIntsForHMAC) {
112 // HMAC size not match
113 ALOGD("%s: token #%d HMAC size not match. Expected: %d Actual: %d", __FUNCTION__,
114 tokenId, numIntsForHMAC, tokenHandle->numInts - 1);
115 _hidl_cb(/*status=*/BufferHubStatus::INVALID_TOKEN, /*bufferClient=*/nullptr,
116 /*bufferTraits=*/{});
117 return Void();
118 }
119
120 size_t hmacSize = tokenHMAC.size() * sizeof(uint8_t);
121 if (memcmp(tokenHMAC.data(), &tokenHandle->data[1], hmacSize) != 0) {
122 // HMAC not match
123 ALOGD("%s: token #%d HMAC not match.", __FUNCTION__, tokenId);
124 _hidl_cb(/*status=*/BufferHubStatus::INVALID_TOKEN, /*bufferClient=*/nullptr,
125 /*bufferTraits=*/{});
126 return Void();
127 }
128
129 originClientWp = iter->second.second;
Fan Xu467e08f2018-11-09 15:58:51 -0800130 mTokenMap.erase(iter);
131 }
132
133 // Check if original client is dead
134 sp<BufferClient> originClient = originClientWp.promote();
135 if (!originClient) {
136 // Should not happen since token should be removed if already gone
137 ALOGE("%s: original client %p gone!", __FUNCTION__, originClientWp.unsafe_get());
Fan Xuf8f4a452018-11-29 16:26:30 -0800138 _hidl_cb(/*status=*/BufferHubStatus::BUFFER_FREED, /*bufferClient=*/nullptr,
139 /*bufferTraits=*/{});
Fan Xu467e08f2018-11-09 15:58:51 -0800140 return Void();
141 }
142
143 sp<BufferClient> client = new BufferClient(*originClient);
Tianyu Jiang727ede42019-02-01 11:44:51 -0800144 uint32_t clientStateMask = client->getBufferNode()->addNewActiveClientsBitToMask();
Fan Xuf8f4a452018-11-29 16:26:30 -0800145 if (clientStateMask == 0U) {
146 // Reach max client count
147 ALOGE("%s: import failed, BufferNode#%u reached maximum clients.", __FUNCTION__,
148 client->getBufferNode()->id());
149 _hidl_cb(/*status=*/BufferHubStatus::MAX_CLIENT, /*bufferClient=*/nullptr,
150 /*bufferTraits=*/{});
151 return Void();
152 }
Fan Xu467e08f2018-11-09 15:58:51 -0800153
Fan Xucd74d782018-11-26 13:51:25 -0800154 std::lock_guard<std::mutex> lock(mClientSetMutex);
155 mClientSet.emplace(client);
Fan Xuf8f4a452018-11-29 16:26:30 -0800156
157 std::shared_ptr<BufferNode> node = client->getBufferNode();
158
159 HardwareBufferDescription bufferDesc;
Tianyu Jiang727ede42019-02-01 11:44:51 -0800160 memcpy(&bufferDesc, &node->bufferDesc(), sizeof(HardwareBufferDescription));
Fan Xuf8f4a452018-11-29 16:26:30 -0800161
Tianyu Jiang8adb3192019-01-29 10:54:24 -0800162 // Allocate memory for bufferInfo of type hidl_handle on the stack. See
163 // http://aosp/286282 for the usage of NATIVE_HANDLE_DECLARE_STORAGE.
164 NATIVE_HANDLE_DECLARE_STORAGE(bufferInfoStorage, BufferHubDefs::kBufferInfoNumFds,
165 BufferHubDefs::kBufferInfoNumInts);
166 hidl_handle bufferInfo = buildBufferInfo(bufferInfoStorage, node->id(), clientStateMask,
Tianyu Jiang727ede42019-02-01 11:44:51 -0800167 node->userMetadataSize(), node->metadata().ashmemFd(),
168 node->eventFd().get());
Fan Xuf8f4a452018-11-29 16:26:30 -0800169 BufferTraits bufferTraits = {/*bufferDesc=*/bufferDesc,
Tianyu Jiang727ede42019-02-01 11:44:51 -0800170 /*bufferHandle=*/hidl_handle(node->bufferHandle()),
Tianyu Jiang8adb3192019-01-29 10:54:24 -0800171 /*bufferInfo=*/std::move(bufferInfo)};
Fan Xuf8f4a452018-11-29 16:26:30 -0800172
173 _hidl_cb(/*status=*/BufferHubStatus::NO_ERROR, /*bufferClient=*/client,
Tianyu Jiang8adb3192019-01-29 10:54:24 -0800174 /*bufferTraits=*/std::move(bufferTraits));
Fan Xuca70b7b2018-10-31 13:20:12 -0700175 return Void();
Jiwen 'Steve' Caid9f2abe2018-10-20 17:03:13 -0700176}
177
Fan Xufe097c72018-12-07 15:46:51 -0800178Return<void> BufferHubService::debug(const hidl_handle& fd, const hidl_vec<hidl_string>& args) {
179 if (fd.getNativeHandle() == nullptr || fd->numFds < 1) {
180 ALOGE("%s: missing fd for writing.", __FUNCTION__);
181 return Void();
182 }
183
184 FILE* out = fdopen(dup(fd->data[0]), "w");
185
186 if (args.size() != 0) {
187 fprintf(out,
188 "Note: lshal bufferhub currently does not support args. Input arguments are "
189 "ignored.\n");
190 }
191
192 std::ostringstream stream;
193
194 // Get the number of clients of each buffer.
195 // Map from bufferId to bufferNode_clientCount pair.
196 std::map<int, std::pair<const std::shared_ptr<BufferNode>, uint32_t>> clientCount;
197 {
198 std::lock_guard<std::mutex> lock(mClientSetMutex);
199 for (auto iter = mClientSet.begin(); iter != mClientSet.end(); ++iter) {
200 sp<BufferClient> client = iter->promote();
201 if (client != nullptr) {
202 const std::shared_ptr<BufferNode> node = client->getBufferNode();
203 auto mapIter = clientCount.find(node->id());
204 if (mapIter != clientCount.end()) {
205 ++mapIter->second.second;
206 } else {
207 clientCount.emplace(node->id(),
208 std::pair<std::shared_ptr<BufferNode>, uint32_t>(node, 1U));
209 }
210 }
211 }
212 }
213
214 stream << "Active Buffers:\n";
215 stream << std::right;
216 stream << std::setw(6) << "Id";
217 stream << " ";
Tianyu Jiang0f69e5e2019-01-23 17:17:59 -0800218 stream << std::setw(9) << "#Clients";
Fan Xufe097c72018-12-07 15:46:51 -0800219 stream << " ";
220 stream << std::setw(14) << "Geometry";
221 stream << " ";
222 stream << std::setw(6) << "Format";
223 stream << " ";
224 stream << std::setw(10) << "Usage";
225 stream << " ";
226 stream << std::setw(10) << "State";
227 stream << " ";
Jiwen 'Steve' Caif653d0b2019-01-15 10:52:20 -0800228 stream << std::setw(8) << "Index";
Fan Xufe097c72018-12-07 15:46:51 -0800229 stream << std::endl;
230
231 for (auto iter = clientCount.begin(); iter != clientCount.end(); ++iter) {
232 const std::shared_ptr<BufferNode> node = std::move(iter->second.first);
233 const uint32_t clientCount = iter->second.second;
Tianyu Jiang727ede42019-02-01 11:44:51 -0800234 AHardwareBuffer_Desc desc = node->bufferDesc();
Fan Xufe097c72018-12-07 15:46:51 -0800235
236 MetadataHeader* metadataHeader =
Tianyu Jiang727ede42019-02-01 11:44:51 -0800237 const_cast<BufferHubMetadata*>(&node->metadata())->metadataHeader();
Fan Xufe097c72018-12-07 15:46:51 -0800238 const uint32_t state = metadataHeader->buffer_state.load(std::memory_order_acquire);
239 const uint64_t index = metadataHeader->queue_index;
240
241 stream << std::right;
242 stream << std::setw(6) << /*Id=*/node->id();
243 stream << " ";
Tianyu Jiang0f69e5e2019-01-23 17:17:59 -0800244 stream << std::setw(9) << /*#Clients=*/clientCount;
Fan Xufe097c72018-12-07 15:46:51 -0800245 stream << " ";
246 if (desc.format == HAL_PIXEL_FORMAT_BLOB) {
247 std::string size = std::to_string(desc.width) + " B";
248 stream << std::setw(14) << /*Geometry=*/size;
249 } else {
250 std::string dimensions = std::to_string(desc.width) + "x" +
251 std::to_string(desc.height) + "x" + std::to_string(desc.layers);
252 stream << std::setw(14) << /*Geometry=*/dimensions;
253 }
254 stream << " ";
255 stream << std::setw(6) << /*Format=*/desc.format;
256 stream << " ";
257 stream << "0x" << std::hex << std::setfill('0');
258 stream << std::setw(8) << /*Usage=*/desc.usage;
259 stream << std::dec << std::setfill(' ');
260 stream << " ";
261 stream << "0x" << std::hex << std::setfill('0');
262 stream << std::setw(8) << /*State=*/state;
Jiwen 'Steve' Caif653d0b2019-01-15 10:52:20 -0800263 stream << std::dec << std::setfill(' ');
Fan Xufe097c72018-12-07 15:46:51 -0800264 stream << " ";
265 stream << std::setw(8) << /*Index=*/index;
266 stream << std::endl;
267 }
268
269 stream << std::endl;
270
271 // Get the number of tokens of each buffer.
272 // Map from bufferId to tokenCount
273 std::map<int, uint32_t> tokenCount;
274 {
Fan Xu55b26a62018-12-19 11:03:14 -0800275 std::lock_guard<std::mutex> lock(mTokenMutex);
Fan Xufe097c72018-12-07 15:46:51 -0800276 for (auto iter = mTokenMap.begin(); iter != mTokenMap.end(); ++iter) {
Fan Xu55b26a62018-12-19 11:03:14 -0800277 sp<BufferClient> client = iter->second.second.promote();
Fan Xufe097c72018-12-07 15:46:51 -0800278 if (client != nullptr) {
279 const std::shared_ptr<BufferNode> node = client->getBufferNode();
280 auto mapIter = tokenCount.find(node->id());
281 if (mapIter != tokenCount.end()) {
282 ++mapIter->second;
283 } else {
284 tokenCount.emplace(node->id(), 1U);
285 }
286 }
287 }
288 }
289
290 stream << "Unused Tokens:\n";
291 stream << std::right;
292 stream << std::setw(8) << "Buffer Id";
293 stream << " ";
Tianyu Jiang0f69e5e2019-01-23 17:17:59 -0800294 stream << std::setw(7) << "#Tokens";
Fan Xufe097c72018-12-07 15:46:51 -0800295 stream << std::endl;
296
297 for (auto iter = tokenCount.begin(); iter != tokenCount.end(); ++iter) {
298 stream << std::right;
299 stream << std::setw(8) << /*Buffer Id=*/iter->first;
300 stream << " ";
Tianyu Jiang0f69e5e2019-01-23 17:17:59 -0800301 stream << std::setw(7) << /*#Tokens=*/iter->second;
Fan Xufe097c72018-12-07 15:46:51 -0800302 stream << std::endl;
303 }
304
305 fprintf(out, "%s", stream.str().c_str());
306
307 fclose(out);
308 return Void();
309}
310
Fan Xud6cd6ba2018-11-15 16:46:55 -0800311hidl_handle BufferHubService::registerToken(const wp<BufferClient>& client) {
Fan Xu55b26a62018-12-19 11:03:14 -0800312 // Find next available token id
313 std::lock_guard<std::mutex> lock(mTokenMutex);
Fan Xu18d90ea2018-11-06 15:46:44 -0800314 do {
Fan Xu55b26a62018-12-19 11:03:14 -0800315 ++mLastTokenId;
316 } while (mTokenMap.find(mLastTokenId) != mTokenMap.end());
Fan Xu18d90ea2018-11-06 15:46:44 -0800317
Fan Xu55b26a62018-12-19 11:03:14 -0800318 std::array<uint8_t, EVP_MAX_MD_SIZE> hmac;
319 uint32_t hmacSize = 0U;
320
321 HMAC(/*evp_md=*/EVP_sha256(), /*key=*/&mKey, /*key_len=*/kKeyLen,
322 /*data=*/(uint8_t*)&mLastTokenId, /*data_len=*/mTokenIdSize,
323 /*out=*/hmac.data(), /*out_len=*/&hmacSize);
324
325 int numIntsForHMAC = (int)ceil(hmacSize / (double)sizeof(int));
326 native_handle_t* handle = native_handle_create(/*numFds=*/0, /*numInts=*/1 + numIntsForHMAC);
327 handle->data[0] = mLastTokenId;
328 // Set all the the bits of last int to 0 since it might not be fully overwritten
329 handle->data[numIntsForHMAC] = 0;
330 memcpy(&handle->data[1], hmac.data(), hmacSize);
Fan Xu18d90ea2018-11-06 15:46:44 -0800331
332 // returnToken owns the native_handle_t* thus doing lifecycle management
333 hidl_handle returnToken;
334 returnToken.setTo(handle, /*shoudOwn=*/true);
335
Fan Xu55b26a62018-12-19 11:03:14 -0800336 std::vector<uint8_t> hmacVec;
337 hmacVec.resize(hmacSize);
338 memcpy(hmacVec.data(), hmac.data(), hmacSize);
339 mTokenMap.emplace(mLastTokenId, std::pair(hmacVec, client));
340
Fan Xu18d90ea2018-11-06 15:46:44 -0800341 return returnToken;
342}
343
Fan Xua7422fe2018-11-19 15:21:32 -0800344void BufferHubService::onClientClosed(const BufferClient* client) {
345 removeTokenByClient(client);
346
Fan Xucd74d782018-11-26 13:51:25 -0800347 std::lock_guard<std::mutex> lock(mClientSetMutex);
348 auto iter = std::find(mClientSet.begin(), mClientSet.end(), client);
349 if (iter != mClientSet.end()) {
350 mClientSet.erase(iter);
Fan Xua7422fe2018-11-19 15:21:32 -0800351 }
352}
353
Fan Xuefce32e2018-12-12 14:34:16 -0800354// Implementation of this function should be consistent with the definition of bufferInfo handle in
355// ui/BufferHubDefs.h.
Tianyu Jiang8adb3192019-01-29 10:54:24 -0800356hidl_handle BufferHubService::buildBufferInfo(char* bufferInfoStorage, int bufferId,
357 uint32_t clientBitMask, uint32_t userMetadataSize,
358 int metadataFd, int eventFd) {
359 native_handle_t* infoHandle =
360 native_handle_init(bufferInfoStorage, BufferHubDefs::kBufferInfoNumFds,
361 BufferHubDefs::kBufferInfoNumInts);
Fan Xuefce32e2018-12-12 14:34:16 -0800362
Tianyu Jiang8adb3192019-01-29 10:54:24 -0800363 infoHandle->data[0] = metadataFd;
364 infoHandle->data[1] = eventFd;
Fan Xu5cf47bc2019-01-15 15:02:15 -0800365 infoHandle->data[2] = bufferId;
Fan Xuefce32e2018-12-12 14:34:16 -0800366 // Use memcpy to convert to int without missing digit.
367 // TOOD(b/121345852): use bit_cast to unpack bufferInfo when C++20 becomes available.
Fan Xu5cf47bc2019-01-15 15:02:15 -0800368 memcpy(&infoHandle->data[3], &clientBitMask, sizeof(clientBitMask));
369 memcpy(&infoHandle->data[4], &userMetadataSize, sizeof(userMetadataSize));
Fan Xuefce32e2018-12-12 14:34:16 -0800370
371 hidl_handle bufferInfo;
Tianyu Jiang8adb3192019-01-29 10:54:24 -0800372 bufferInfo.setTo(infoHandle, /*shouldOwn=*/false);
Fan Xuefce32e2018-12-12 14:34:16 -0800373
374 return bufferInfo;
375}
376
Fan Xua7422fe2018-11-19 15:21:32 -0800377void BufferHubService::removeTokenByClient(const BufferClient* client) {
Fan Xu55b26a62018-12-19 11:03:14 -0800378 std::lock_guard<std::mutex> lock(mTokenMutex);
Fan Xua7422fe2018-11-19 15:21:32 -0800379 auto iter = mTokenMap.begin();
380 while (iter != mTokenMap.end()) {
Fan Xu55b26a62018-12-19 11:03:14 -0800381 if (iter->second.second == client) {
Fan Xua7422fe2018-11-19 15:21:32 -0800382 auto oldIter = iter;
383 ++iter;
384 mTokenMap.erase(oldIter);
385 } else {
386 ++iter;
387 }
388 }
389}
390
Jiwen 'Steve' Caid9f2abe2018-10-20 17:03:13 -0700391} // namespace implementation
392} // namespace V1_0
393} // namespace bufferhub
394} // namespace frameworks
395} // namespace android