Alex Vakulenko | e4eec20 | 2017-01-27 14:41:04 -0800 | [diff] [blame] | 1 | #include "buffer_hub.h" |
| 2 | |
Corey Tabaka | cd52dd9 | 2017-04-07 18:03:57 -0700 | [diff] [blame] | 3 | #include <inttypes.h> |
Alex Vakulenko | 4fe6058 | 2017-02-02 11:35:59 -0800 | [diff] [blame] | 4 | #include <log/log.h> |
Alex Vakulenko | e4eec20 | 2017-01-27 14:41:04 -0800 | [diff] [blame] | 5 | #include <poll.h> |
| 6 | #include <utils/Trace.h> |
| 7 | |
| 8 | #include <iomanip> |
| 9 | #include <sstream> |
| 10 | #include <string> |
| 11 | #include <thread> |
| 12 | |
| 13 | #include <pdx/default_transport/service_endpoint.h> |
| 14 | #include <private/dvr/bufferhub_rpc.h> |
| 15 | #include "consumer_channel.h" |
| 16 | #include "producer_channel.h" |
| 17 | #include "producer_queue_channel.h" |
| 18 | |
| 19 | using android::pdx::Channel; |
Corey Tabaka | 1db8a5d | 2017-03-22 02:12:52 -0700 | [diff] [blame] | 20 | using android::pdx::ErrorStatus; |
Alex Vakulenko | e4eec20 | 2017-01-27 14:41:04 -0800 | [diff] [blame] | 21 | using android::pdx::Message; |
Corey Tabaka | 1db8a5d | 2017-03-22 02:12:52 -0700 | [diff] [blame] | 22 | using android::pdx::Status; |
Alex Vakulenko | e4eec20 | 2017-01-27 14:41:04 -0800 | [diff] [blame] | 23 | using android::pdx::default_transport::Endpoint; |
Corey Tabaka | 52ea25c | 2017-09-13 18:02:48 -0700 | [diff] [blame] | 24 | using android::pdx::rpc::DispatchRemoteMethod; |
Alex Vakulenko | e4eec20 | 2017-01-27 14:41:04 -0800 | [diff] [blame] | 25 | |
| 26 | namespace android { |
| 27 | namespace dvr { |
| 28 | |
| 29 | BufferHubService::BufferHubService() |
| 30 | : BASE("BufferHub", Endpoint::Create(BufferHubRPC::kClientPath)) {} |
| 31 | |
| 32 | BufferHubService::~BufferHubService() {} |
| 33 | |
Corey Tabaka | 1db8a5d | 2017-03-22 02:12:52 -0700 | [diff] [blame] | 34 | bool BufferHubService::IsInitialized() const { return BASE::IsInitialized(); } |
Alex Vakulenko | e4eec20 | 2017-01-27 14:41:04 -0800 | [diff] [blame] | 35 | |
| 36 | std::string BufferHubService::DumpState(size_t /*max_length*/) { |
| 37 | std::ostringstream stream; |
| 38 | auto channels = GetChannels<BufferHubChannel>(); |
| 39 | |
| 40 | std::sort(channels.begin(), channels.end(), |
| 41 | [](const std::shared_ptr<BufferHubChannel>& a, |
| 42 | const std::shared_ptr<BufferHubChannel>& b) { |
| 43 | return a->buffer_id() < b->buffer_id(); |
| 44 | }); |
| 45 | |
| 46 | stream << "Active Producer Buffers:\n"; |
| 47 | stream << std::right; |
| 48 | stream << std::setw(6) << "Id"; |
| 49 | stream << " "; |
| 50 | stream << std::setw(9) << "Consumers"; |
| 51 | stream << " "; |
| 52 | stream << std::setw(14) << "Geometry"; |
| 53 | stream << " "; |
| 54 | stream << std::setw(6) << "Format"; |
| 55 | stream << " "; |
Corey Tabaka | 52ea25c | 2017-09-13 18:02:48 -0700 | [diff] [blame] | 56 | stream << std::setw(10) << "Usage"; |
| 57 | stream << " "; |
| 58 | stream << std::setw(9) << "Pending"; |
| 59 | stream << " "; |
| 60 | stream << std::setw(18) << "State"; |
| 61 | stream << " "; |
| 62 | stream << std::setw(18) << "Signaled"; |
| 63 | stream << " "; |
| 64 | stream << std::setw(10) << "Index"; |
Alex Vakulenko | e4eec20 | 2017-01-27 14:41:04 -0800 | [diff] [blame] | 65 | stream << std::endl; |
| 66 | |
| 67 | for (const auto& channel : channels) { |
| 68 | if (channel->channel_type() == BufferHubChannel::kProducerType) { |
| 69 | BufferHubChannel::BufferInfo info = channel->GetBufferInfo(); |
| 70 | |
| 71 | stream << std::right; |
| 72 | stream << std::setw(6) << info.id; |
| 73 | stream << " "; |
| 74 | stream << std::setw(9) << info.consumer_count; |
| 75 | stream << " "; |
| 76 | if (info.format == HAL_PIXEL_FORMAT_BLOB) { |
| 77 | std::string size = std::to_string(info.width) + " B"; |
| 78 | stream << std::setw(14) << size; |
| 79 | } else { |
Hendrik Wagenaar | 108e84f | 2017-05-07 22:19:17 -0700 | [diff] [blame] | 80 | std::string dimensions = std::to_string(info.width) + "x" + |
| 81 | std::to_string(info.height) + "x" + |
| 82 | std::to_string(info.layer_count); |
Alex Vakulenko | e4eec20 | 2017-01-27 14:41:04 -0800 | [diff] [blame] | 83 | stream << std::setw(14) << dimensions; |
| 84 | } |
| 85 | stream << " "; |
| 86 | stream << std::setw(6) << info.format; |
| 87 | stream << " "; |
| 88 | stream << "0x" << std::hex << std::setfill('0'); |
Jiwen 'Steve' Cai | 0057fdd | 2017-05-02 11:21:18 -0700 | [diff] [blame] | 89 | stream << std::setw(8) << info.usage; |
Alex Vakulenko | e4eec20 | 2017-01-27 14:41:04 -0800 | [diff] [blame] | 90 | stream << std::dec << std::setfill(' '); |
| 91 | stream << " "; |
Corey Tabaka | 52ea25c | 2017-09-13 18:02:48 -0700 | [diff] [blame] | 92 | stream << std::setw(9) << info.pending_count; |
Alex Vakulenko | e4eec20 | 2017-01-27 14:41:04 -0800 | [diff] [blame] | 93 | stream << " "; |
Corey Tabaka | 52ea25c | 2017-09-13 18:02:48 -0700 | [diff] [blame] | 94 | stream << "0x" << std::hex << std::setfill('0'); |
| 95 | stream << std::setw(16) << info.state; |
| 96 | stream << " "; |
| 97 | stream << "0x" << std::setw(16) << info.signaled_mask; |
| 98 | stream << std::dec << std::setfill(' '); |
| 99 | stream << " "; |
| 100 | stream << std::setw(8) << info.index; |
Alex Vakulenko | e4eec20 | 2017-01-27 14:41:04 -0800 | [diff] [blame] | 101 | stream << std::endl; |
| 102 | } |
| 103 | } |
| 104 | |
| 105 | stream << std::endl; |
| 106 | stream << "Active Producer Queues:\n"; |
| 107 | stream << std::right << std::setw(6) << "Id"; |
Corey Tabaka | 8a4e6a9 | 2017-04-20 13:42:02 -0700 | [diff] [blame] | 108 | stream << std::right << std::setw(12) << " Capacity"; |
Alex Vakulenko | e4eec20 | 2017-01-27 14:41:04 -0800 | [diff] [blame] | 109 | stream << std::right << std::setw(12) << " Consumers"; |
| 110 | stream << " UsageSetMask"; |
| 111 | stream << " UsageClearMask"; |
| 112 | stream << " UsageDenySetMask"; |
| 113 | stream << " UsageDenyClearMask"; |
| 114 | stream << " "; |
| 115 | stream << std::endl; |
| 116 | |
| 117 | for (const auto& channel : channels) { |
| 118 | if (channel->channel_type() == BufferHubChannel::kProducerQueueType) { |
| 119 | BufferHubChannel::BufferInfo info = channel->GetBufferInfo(); |
| 120 | |
| 121 | stream << std::dec << std::setfill(' '); |
| 122 | stream << std::right << std::setw(6) << info.id; |
| 123 | stream << std::right << std::setw(12) << info.capacity; |
| 124 | stream << std::right << std::setw(12) << info.consumer_count; |
| 125 | stream << std::setw(5) << std::setfill(' ') << "0x"; |
| 126 | stream << std::hex << std::setfill('0'); |
Jiwen 'Steve' Cai | 0057fdd | 2017-05-02 11:21:18 -0700 | [diff] [blame] | 127 | stream << std::setw(8) << info.usage_policy.usage_set_mask; |
Alex Vakulenko | e4eec20 | 2017-01-27 14:41:04 -0800 | [diff] [blame] | 128 | stream << std::setw(7) << std::setfill(' ') << "0x"; |
| 129 | stream << std::hex << std::setfill('0'); |
Jiwen 'Steve' Cai | 0057fdd | 2017-05-02 11:21:18 -0700 | [diff] [blame] | 130 | stream << std::setw(8) << info.usage_policy.usage_clear_mask; |
Alex Vakulenko | e4eec20 | 2017-01-27 14:41:04 -0800 | [diff] [blame] | 131 | stream << std::setw(9) << std::setfill(' ') << "0x"; |
| 132 | stream << std::hex << std::setfill('0'); |
Jiwen 'Steve' Cai | 0057fdd | 2017-05-02 11:21:18 -0700 | [diff] [blame] | 133 | stream << std::setw(8) << info.usage_policy.usage_deny_set_mask; |
Alex Vakulenko | e4eec20 | 2017-01-27 14:41:04 -0800 | [diff] [blame] | 134 | stream << std::setw(11) << std::setfill(' ') << "0x"; |
| 135 | stream << std::hex << std::setfill('0'); |
Jiwen 'Steve' Cai | 0057fdd | 2017-05-02 11:21:18 -0700 | [diff] [blame] | 136 | stream << std::setw(8) << info.usage_policy.usage_deny_clear_mask; |
Corey Tabaka | cd52dd9 | 2017-04-07 18:03:57 -0700 | [diff] [blame] | 137 | stream << std::hex << std::setfill('0'); |
| 138 | stream << std::endl; |
Alex Vakulenko | e4eec20 | 2017-01-27 14:41:04 -0800 | [diff] [blame] | 139 | } |
| 140 | } |
| 141 | |
| 142 | stream << std::endl; |
| 143 | stream << "Active Consumer Queues:\n"; |
| 144 | stream << std::dec << std::setfill(' '); |
| 145 | stream << std::right << std::setw(6) << "Id"; |
| 146 | stream << std::right << std::setw(12) << " Imported"; |
| 147 | stream << " "; |
| 148 | stream << std::endl; |
| 149 | |
| 150 | for (const auto& channel : channels) { |
| 151 | if (channel->channel_type() == BufferHubChannel::kConsumerQueueType) { |
| 152 | BufferHubChannel::BufferInfo info = channel->GetBufferInfo(); |
| 153 | |
| 154 | stream << std::right << std::setw(6) << info.id; |
| 155 | stream << std::right << std::setw(12) << info.capacity; |
Corey Tabaka | cd52dd9 | 2017-04-07 18:03:57 -0700 | [diff] [blame] | 156 | stream << std::endl; |
Alex Vakulenko | e4eec20 | 2017-01-27 14:41:04 -0800 | [diff] [blame] | 157 | } |
| 158 | } |
| 159 | |
Corey Tabaka | 52ea25c | 2017-09-13 18:02:48 -0700 | [diff] [blame] | 160 | stream << std::endl; |
| 161 | stream << "Orphaned Consumer Buffers:\n"; |
| 162 | stream << std::right; |
| 163 | stream << std::setw(6) << "Id"; |
| 164 | stream << " "; |
Jiwen 'Steve' Cai | 2f26033 | 2018-02-15 18:39:47 -0800 | [diff] [blame^] | 165 | stream << std::setw(14) << "Info"; |
Corey Tabaka | 52ea25c | 2017-09-13 18:02:48 -0700 | [diff] [blame] | 166 | stream << std::endl; |
| 167 | |
| 168 | for (const auto& channel : channels) { |
| 169 | BufferHubChannel::BufferInfo info = channel->GetBufferInfo(); |
| 170 | // consumer_count is tracked by producer. When it's zero, producer must have |
| 171 | // already hung up and the consumer is orphaned. |
| 172 | if (channel->channel_type() == BufferHubChannel::kConsumerType && |
| 173 | info.consumer_count == 0) { |
| 174 | stream << std::right; |
| 175 | stream << std::setw(6) << info.id; |
| 176 | stream << " "; |
| 177 | |
| 178 | stream << std::setw(14) << "Orphaned."; |
| 179 | stream << (" channel_id=" + std::to_string(channel->channel_id())); |
| 180 | stream << std::endl; |
| 181 | } |
| 182 | } |
| 183 | |
Alex Vakulenko | e4eec20 | 2017-01-27 14:41:04 -0800 | [diff] [blame] | 184 | return stream.str(); |
| 185 | } |
| 186 | |
| 187 | void BufferHubService::HandleImpulse(Message& message) { |
| 188 | ATRACE_NAME("BufferHubService::HandleImpulse"); |
| 189 | if (auto channel = message.GetChannel<BufferHubChannel>()) |
| 190 | channel->HandleImpulse(message); |
| 191 | } |
| 192 | |
Alex Vakulenko | f0a7bd0 | 2017-03-31 18:06:19 -0700 | [diff] [blame] | 193 | pdx::Status<void> BufferHubService::HandleMessage(Message& message) { |
Alex Vakulenko | e4eec20 | 2017-01-27 14:41:04 -0800 | [diff] [blame] | 194 | ATRACE_NAME("BufferHubService::HandleMessage"); |
| 195 | auto channel = message.GetChannel<BufferHubChannel>(); |
| 196 | |
| 197 | ALOGD_IF( |
| 198 | TRACE, |
| 199 | "BufferHubService::HandleMessage: channel=%p channel_id=%d opcode=%d", |
| 200 | channel.get(), message.GetChannelId(), message.GetOp()); |
| 201 | |
| 202 | // If the channel is already set up, let it handle the message. |
| 203 | if (channel && !channel->HandleMessage(message)) |
| 204 | return DefaultHandleMessage(message); |
| 205 | |
| 206 | // This channel has not been set up yet, the following are valid operations. |
| 207 | switch (message.GetOp()) { |
| 208 | case BufferHubRPC::CreateBuffer::Opcode: |
| 209 | DispatchRemoteMethod<BufferHubRPC::CreateBuffer>( |
| 210 | *this, &BufferHubService::OnCreateBuffer, message); |
Alex Vakulenko | f0a7bd0 | 2017-03-31 18:06:19 -0700 | [diff] [blame] | 211 | return {}; |
Alex Vakulenko | e4eec20 | 2017-01-27 14:41:04 -0800 | [diff] [blame] | 212 | |
Alex Vakulenko | e4eec20 | 2017-01-27 14:41:04 -0800 | [diff] [blame] | 213 | case BufferHubRPC::CreateProducerQueue::Opcode: |
| 214 | DispatchRemoteMethod<BufferHubRPC::CreateProducerQueue>( |
| 215 | *this, &BufferHubService::OnCreateProducerQueue, message); |
Alex Vakulenko | f0a7bd0 | 2017-03-31 18:06:19 -0700 | [diff] [blame] | 216 | return {}; |
Alex Vakulenko | e4eec20 | 2017-01-27 14:41:04 -0800 | [diff] [blame] | 217 | |
| 218 | default: |
| 219 | return DefaultHandleMessage(message); |
| 220 | } |
| 221 | } |
| 222 | |
Corey Tabaka | cd52dd9 | 2017-04-07 18:03:57 -0700 | [diff] [blame] | 223 | Status<void> BufferHubService::OnCreateBuffer(Message& message, uint32_t width, |
| 224 | uint32_t height, uint32_t format, |
Jiwen 'Steve' Cai | 0057fdd | 2017-05-02 11:21:18 -0700 | [diff] [blame] | 225 | uint64_t usage, |
Hendrik Wagenaar | 4d3590f | 2017-05-06 22:36:04 -0700 | [diff] [blame] | 226 | size_t meta_size_bytes) { |
Alex Vakulenko | e4eec20 | 2017-01-27 14:41:04 -0800 | [diff] [blame] | 227 | // Use the producer channel id as the global buffer id. |
| 228 | const int buffer_id = message.GetChannelId(); |
| 229 | ALOGD_IF(TRACE, |
Corey Tabaka | cd52dd9 | 2017-04-07 18:03:57 -0700 | [diff] [blame] | 230 | "BufferHubService::OnCreateBuffer: buffer_id=%d width=%u height=%u " |
Hendrik Wagenaar | 4d3590f | 2017-05-06 22:36:04 -0700 | [diff] [blame] | 231 | "format=%u usage=%" PRIx64 " meta_size_bytes=%zu", |
| 232 | buffer_id, width, height, format, usage, meta_size_bytes); |
Alex Vakulenko | e4eec20 | 2017-01-27 14:41:04 -0800 | [diff] [blame] | 233 | |
| 234 | // See if this channel is already attached to a buffer. |
| 235 | if (const auto channel = message.GetChannel<BufferHubChannel>()) { |
| 236 | ALOGE("BufferHubService::OnCreateBuffer: Buffer already created: buffer=%d", |
| 237 | buffer_id); |
Corey Tabaka | cd52dd9 | 2017-04-07 18:03:57 -0700 | [diff] [blame] | 238 | return ErrorStatus(EALREADY); |
Alex Vakulenko | e4eec20 | 2017-01-27 14:41:04 -0800 | [diff] [blame] | 239 | } |
Hendrik Wagenaar | 108e84f | 2017-05-07 22:19:17 -0700 | [diff] [blame] | 240 | const uint32_t kDefaultLayerCount = 1; |
| 241 | auto status = ProducerChannel::Create(this, buffer_id, width, height, |
| 242 | kDefaultLayerCount, format, usage, |
| 243 | meta_size_bytes); |
Corey Tabaka | cd52dd9 | 2017-04-07 18:03:57 -0700 | [diff] [blame] | 244 | if (status) { |
| 245 | message.SetChannel(status.take()); |
| 246 | return {}; |
Alex Vakulenko | e4eec20 | 2017-01-27 14:41:04 -0800 | [diff] [blame] | 247 | } else { |
Corey Tabaka | cd52dd9 | 2017-04-07 18:03:57 -0700 | [diff] [blame] | 248 | ALOGE("BufferHubService::OnCreateBuffer: Failed to create producer: %s", |
| 249 | status.GetErrorMessage().c_str()); |
| 250 | return status.error_status(); |
Alex Vakulenko | e4eec20 | 2017-01-27 14:41:04 -0800 | [diff] [blame] | 251 | } |
| 252 | } |
| 253 | |
Corey Tabaka | 1db8a5d | 2017-03-22 02:12:52 -0700 | [diff] [blame] | 254 | Status<QueueInfo> BufferHubService::OnCreateProducerQueue( |
Jiwen 'Steve' Cai | 6bffc67 | 2017-05-18 23:05:05 -0700 | [diff] [blame] | 255 | pdx::Message& message, const ProducerQueueConfig& producer_config, |
Corey Tabaka | cd52dd9 | 2017-04-07 18:03:57 -0700 | [diff] [blame] | 256 | const UsagePolicy& usage_policy) { |
Alex Vakulenko | e4eec20 | 2017-01-27 14:41:04 -0800 | [diff] [blame] | 257 | // Use the producer channel id as the global queue id. |
| 258 | const int queue_id = message.GetChannelId(); |
| 259 | ALOGD_IF(TRACE, "BufferHubService::OnCreateProducerQueue: queue_id=%d", |
| 260 | queue_id); |
| 261 | |
| 262 | // See if this channel is already attached to another object. |
| 263 | if (const auto channel = message.GetChannel<BufferHubChannel>()) { |
| 264 | ALOGE("BufferHubService::OnCreateProducerQueue: already created: queue=%d", |
| 265 | queue_id); |
Corey Tabaka | 1db8a5d | 2017-03-22 02:12:52 -0700 | [diff] [blame] | 266 | return ErrorStatus(EALREADY); |
Alex Vakulenko | e4eec20 | 2017-01-27 14:41:04 -0800 | [diff] [blame] | 267 | } |
| 268 | |
Jiwen 'Steve' Cai | 6bffc67 | 2017-05-18 23:05:05 -0700 | [diff] [blame] | 269 | auto status = ProducerQueueChannel::Create(this, queue_id, producer_config, |
Corey Tabaka | cd52dd9 | 2017-04-07 18:03:57 -0700 | [diff] [blame] | 270 | usage_policy); |
| 271 | if (status) { |
| 272 | message.SetChannel(status.take()); |
Jiwen 'Steve' Cai | 6bffc67 | 2017-05-18 23:05:05 -0700 | [diff] [blame] | 273 | return {{producer_config, queue_id}}; |
Alex Vakulenko | e4eec20 | 2017-01-27 14:41:04 -0800 | [diff] [blame] | 274 | } else { |
| 275 | ALOGE("BufferHubService::OnCreateBuffer: Failed to create producer!!"); |
Corey Tabaka | cd52dd9 | 2017-04-07 18:03:57 -0700 | [diff] [blame] | 276 | return status.error_status(); |
Alex Vakulenko | e4eec20 | 2017-01-27 14:41:04 -0800 | [diff] [blame] | 277 | } |
| 278 | } |
| 279 | |
Alex Vakulenko | e4eec20 | 2017-01-27 14:41:04 -0800 | [diff] [blame] | 280 | void BufferHubChannel::SignalAvailable() { |
| 281 | ATRACE_NAME("BufferHubChannel::SignalAvailable"); |
Corey Tabaka | 3079cb7 | 2017-01-19 15:07:26 -0800 | [diff] [blame] | 282 | ALOGD_IF(TRACE, |
| 283 | "BufferHubChannel::SignalAvailable: channel_id=%d buffer_id=%d", |
| 284 | channel_id(), buffer_id()); |
Jiwen 'Steve' Cai | 2f26033 | 2018-02-15 18:39:47 -0800 | [diff] [blame^] | 285 | signaled_ = true; |
| 286 | const auto status = service_->ModifyChannelEvents(channel_id_, 0, POLLIN); |
| 287 | ALOGE_IF(!status, |
| 288 | "BufferHubChannel::SignalAvailable: failed to signal availability " |
| 289 | "channel_id=%d: %s", |
| 290 | channel_id_, status.GetErrorMessage().c_str()); |
Alex Vakulenko | e4eec20 | 2017-01-27 14:41:04 -0800 | [diff] [blame] | 291 | } |
| 292 | |
| 293 | void BufferHubChannel::ClearAvailable() { |
| 294 | ATRACE_NAME("BufferHubChannel::ClearAvailable"); |
Corey Tabaka | 3079cb7 | 2017-01-19 15:07:26 -0800 | [diff] [blame] | 295 | ALOGD_IF(TRACE, |
| 296 | "BufferHubChannel::ClearAvailable: channel_id=%d buffer_id=%d", |
| 297 | channel_id(), buffer_id()); |
Jiwen 'Steve' Cai | 2f26033 | 2018-02-15 18:39:47 -0800 | [diff] [blame^] | 298 | signaled_ = false; |
| 299 | const auto status = service_->ModifyChannelEvents(channel_id_, POLLIN, 0); |
| 300 | ALOGE_IF(!status, |
| 301 | "BufferHubChannel::ClearAvailable: failed to clear availability " |
| 302 | "channel_id=%d: %s", |
| 303 | channel_id_, status.GetErrorMessage().c_str()); |
Alex Vakulenko | e4eec20 | 2017-01-27 14:41:04 -0800 | [diff] [blame] | 304 | } |
| 305 | |
| 306 | void BufferHubChannel::Hangup() { |
| 307 | ATRACE_NAME("BufferHubChannel::Hangup"); |
Corey Tabaka | 3079cb7 | 2017-01-19 15:07:26 -0800 | [diff] [blame] | 308 | ALOGD_IF(TRACE, "BufferHubChannel::Hangup: channel_id=%d buffer_id=%d", |
| 309 | channel_id(), buffer_id()); |
Jiwen 'Steve' Cai | 2f26033 | 2018-02-15 18:39:47 -0800 | [diff] [blame^] | 310 | const auto status = service_->ModifyChannelEvents(channel_id_, 0, POLLHUP); |
| 311 | ALOGE_IF( |
| 312 | !status, |
| 313 | "BufferHubChannel::Hangup: failed to signal hangup channel_id=%d: %s", |
| 314 | channel_id_, status.GetErrorMessage().c_str()); |
Alex Vakulenko | e4eec20 | 2017-01-27 14:41:04 -0800 | [diff] [blame] | 315 | } |
| 316 | |
| 317 | } // namespace dvr |
| 318 | } // namespace android |