blob: ad656129979f8d3cefd55b1d35ebd3112c0ddde0 [file] [log] [blame]
Vlad Popa2900c0a2022-10-24 13:38:00 +02001/*
2**
3** Copyright 2022, The Android Open Source Project
4**
5** Licensed under the Apache License, Version 2.0 (the "License");
6** you may not use this file except in compliance with the License.
7** You may obtain a copy of the License at
8**
9** http://www.apache.org/licenses/LICENSE-2.0
10**
11** Unless required by applicable law or agreed to in writing, software
12** distributed under the License is distributed on an "AS IS" BASIS,
13** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14** See the License for the specific language governing permissions and
15** limitations under the License.
16*/
17
18// #define LOG_NDEBUG 0
19#define LOG_TAG "SoundDoseManager"
20
21#include "SoundDoseManager.h"
22
Vlad Popa1d5f0d52022-12-18 12:21:26 +010023#if !defined(BACKEND_NDK)
24#define BACKEND_NDK
25#endif
26
27#include "android/media/SoundDoseRecord.h"
Vlad Popa2900c0a2022-10-24 13:38:00 +020028#include <android-base/stringprintf.h>
Vlad Popa1d5f0d52022-12-18 12:21:26 +010029#include <media/AidlConversionCppNdk.h>
30#include <cinttypes>
Vlad Popa2900c0a2022-10-24 13:38:00 +020031#include <time.h>
Vlad Popa4defd0b2022-11-06 14:22:31 +010032#include <utils/Log.h>
Vlad Popa2900c0a2022-10-24 13:38:00 +020033
34namespace android {
35
Vlad Popa1d5f0d52022-12-18 12:21:26 +010036using aidl::android::media::audio::common::AudioDevice;
37using aidl::android::media::audio::common::AudioDeviceAddress;
38
Vlad Popa2900c0a2022-10-24 13:38:00 +020039namespace {
40
41int64_t getMonotonicSecond() {
42 struct timespec now_ts;
43 if (clock_gettime(CLOCK_MONOTONIC, &now_ts) != 0) {
44 ALOGE("%s: cannot get timestamp", __func__);
45 return -1;
46 }
47 return now_ts.tv_sec;
48}
49
50} // namespace
51
Vlad Popaf09e93f2022-10-31 16:27:12 +010052sp<audio_utils::MelProcessor> SoundDoseManager::getOrCreateProcessorForDevice(
Vlad Popa4defd0b2022-11-06 14:22:31 +010053 audio_port_handle_t deviceId, audio_io_handle_t streamHandle, uint32_t sampleRate,
54 size_t channelCount, audio_format_t format) {
Vlad Popa2900c0a2022-10-24 13:38:00 +020055 std::lock_guard _l(mLock);
56
Vlad Popa1d5f0d52022-12-18 12:21:26 +010057 if (mHalSoundDose != nullptr) {
58 ALOGW("%s: using HAL MEL computation, no MelProcessor needed.", __func__);
59 return nullptr;
60 }
61
Vlad Popaf09e93f2022-10-31 16:27:12 +010062 auto streamProcessor = mActiveProcessors.find(streamHandle);
63 sp<audio_utils::MelProcessor> processor;
Vlad Popa4defd0b2022-11-06 14:22:31 +010064 if (streamProcessor != mActiveProcessors.end() &&
65 (processor = streamProcessor->second.promote())) {
Vlad Popa2900c0a2022-10-24 13:38:00 +020066 ALOGV("%s: found callback for stream %d", __func__, streamHandle);
Vlad Popaf09e93f2022-10-31 16:27:12 +010067 processor->setDeviceId(deviceId);
Vlad Popae3fd1c22022-11-07 21:03:18 +010068 processor->setOutputRs2(mRs2Value);
Vlad Popaf09e93f2022-10-31 16:27:12 +010069 return processor;
Vlad Popa2900c0a2022-10-24 13:38:00 +020070 } else {
71 ALOGV("%s: creating new callback for device %d", __func__, streamHandle);
Vlad Popa4defd0b2022-11-06 14:22:31 +010072 sp<audio_utils::MelProcessor> melProcessor = sp<audio_utils::MelProcessor>::make(
73 sampleRate, channelCount, format, *this, deviceId, mRs2Value);
Vlad Popaf09e93f2022-10-31 16:27:12 +010074 mActiveProcessors[streamHandle] = melProcessor;
75 return melProcessor;
Vlad Popa2900c0a2022-10-24 13:38:00 +020076 }
77}
78
Vlad Popa1d5f0d52022-12-18 12:21:26 +010079bool SoundDoseManager::setHalSoundDoseInterface(const std::shared_ptr<ISoundDose>& halSoundDose) {
80 ALOGV("%s", __func__);
81
82 {
83 std::lock_guard _l(mLock);
84
85 mHalSoundDose = halSoundDose;
86 if (halSoundDose == nullptr) {
87 ALOGI("%s: passed ISoundDose object is null, switching to internal CSD", __func__);
88 return false;
89 }
90
91 if (!mHalSoundDose->setOutputRs2(mRs2Value).isOk()) {
92 ALOGW("%s: Cannot set RS2 value for momentary exposure %f",
93 __func__,
94 mRs2Value);
95 }
96
97 // initialize the HAL sound dose callback lazily
98 if (mHalSoundDoseCallback == nullptr) {
99 mHalSoundDoseCallback =
100 ndk::SharedRefBase::make<HalSoundDoseCallback>(this);
101 }
102 }
103
104 auto status = halSoundDose->registerSoundDoseCallback(mHalSoundDoseCallback);
105 if (!status.isOk()) {
106 // Not a warning since this can happen if the callback was registered before
107 ALOGI("%s: Cannot register HAL sound dose callback with status message: %s",
108 __func__,
109 status.getMessage());
110 }
111
112 return true;
113}
114
Vlad Popa4defd0b2022-11-06 14:22:31 +0100115void SoundDoseManager::setOutputRs2(float rs2Value) {
Vlad Popa2900c0a2022-10-24 13:38:00 +0200116 ALOGV("%s", __func__);
Vlad Popaf09e93f2022-10-31 16:27:12 +0100117 std::lock_guard _l(mLock);
118
Vlad Popa1d5f0d52022-12-18 12:21:26 +0100119 if (mHalSoundDose != nullptr) {
120 // using the HAL sound dose interface
Vlad Popa3c3995d2023-01-13 11:10:05 +0100121 if (!mHalSoundDose->setOutputRs2(rs2Value).isOk()) {
122 ALOGE("%s: Cannot set RS2 value for momentary exposure %f", __func__, rs2Value);
123 return;
Vlad Popa1d5f0d52022-12-18 12:21:26 +0100124 }
Vlad Popa3c3995d2023-01-13 11:10:05 +0100125 mRs2Value = rs2Value;
Vlad Popa1d5f0d52022-12-18 12:21:26 +0100126 return;
127 }
Vlad Popae3fd1c22022-11-07 21:03:18 +0100128
Vlad Popaf09e93f2022-10-31 16:27:12 +0100129 for (auto& streamProcessor : mActiveProcessors) {
130 sp<audio_utils::MelProcessor> processor = streamProcessor.second.promote();
131 if (processor != nullptr) {
Vlad Popa3c3995d2023-01-13 11:10:05 +0100132 status_t result = processor->setOutputRs2(rs2Value);
Vlad Popaf09e93f2022-10-31 16:27:12 +0100133 if (result != NO_ERROR) {
Vlad Popa3c3995d2023-01-13 11:10:05 +0100134 ALOGW("%s: could not set RS2 value %f for stream %d", __func__, rs2Value,
Vlad Popaf09e93f2022-10-31 16:27:12 +0100135 streamProcessor.first);
Vlad Popa3c3995d2023-01-13 11:10:05 +0100136 return;
Vlad Popaf09e93f2022-10-31 16:27:12 +0100137 }
Vlad Popa3c3995d2023-01-13 11:10:05 +0100138 mRs2Value = rs2Value;
Vlad Popaf09e93f2022-10-31 16:27:12 +0100139 }
140 }
141}
142
Vlad Popa4defd0b2022-11-06 14:22:31 +0100143void SoundDoseManager::removeStreamProcessor(audio_io_handle_t streamHandle) {
Vlad Popaf09e93f2022-10-31 16:27:12 +0100144 std::lock_guard _l(mLock);
145 auto callbackToRemove = mActiveProcessors.find(streamHandle);
Vlad Popa4defd0b2022-11-06 14:22:31 +0100146 if (callbackToRemove != mActiveProcessors.end()) {
Vlad Popaf09e93f2022-10-31 16:27:12 +0100147 mActiveProcessors.erase(callbackToRemove);
148 }
149}
150
Vlad Popa1d5f0d52022-12-18 12:21:26 +0100151audio_port_handle_t SoundDoseManager::getIdForAudioDevice(const AudioDevice& audioDevice) const {
152 std::lock_guard _l(mLock);
153
154 audio_devices_t type;
155 std::string address;
156 auto result = aidl::android::aidl2legacy_AudioDevice_audio_device(
157 audioDevice, &type, &address);
158 if (result != NO_ERROR) {
159 ALOGE("%s: could not convert from AudioDevice to AudioDeviceTypeAddr", __func__);
160 return AUDIO_PORT_HANDLE_NONE;
161 }
162
163 auto adt = AudioDeviceTypeAddr(type, address);
164 auto deviceIt = mActiveDevices.find(adt);
165 if (deviceIt == mActiveDevices.end()) {
166 ALOGE("%s: could not find port id for device %s", __func__, adt.toString().c_str());
167 return AUDIO_PORT_HANDLE_NONE;
168 }
169 return deviceIt->second;
170}
171
172void SoundDoseManager::mapAddressToDeviceId(const AudioDeviceTypeAddr& adt,
173 const audio_port_handle_t deviceId) {
174 std::lock_guard _l(mLock);
175 ALOGI("%s: map address: %s to device id: %d", __func__, adt.toString().c_str(), deviceId);
176 mActiveDevices[adt] = deviceId;
177}
178
179void SoundDoseManager::clearMapDeviceIdEntries(audio_port_handle_t deviceId) {
180 std::lock_guard _l(mLock);
181 for (auto activeDevice = mActiveDevices.begin(); activeDevice != mActiveDevices.end();) {
182 if (activeDevice->second == deviceId) {
183 ALOGI("%s: clear mapping addr: %s to deviceId: %d",
184 __func__, activeDevice->first.toString().c_str(), deviceId);
185 activeDevice = mActiveDevices.erase(activeDevice);
186 continue;
187 }
188 ++activeDevice;
189 }
190 return;
191}
192
193ndk::ScopedAStatus SoundDoseManager::HalSoundDoseCallback::onMomentaryExposureWarning(
194 float in_currentDbA, const AudioDevice& in_audioDevice) {
195 auto soundDoseManager = mSoundDoseManager.promote();
196 if (soundDoseManager == nullptr) {
197 return ndk::ScopedAStatus::fromExceptionCode(EX_ILLEGAL_STATE);
198 }
199
Vlad Popa3d6d39d2022-12-21 18:59:16 +0100200 std::shared_ptr<ISoundDose> halSoundDose;
201 soundDoseManager->getHalSoundDose(&halSoundDose);
202 if(halSoundDose == nullptr) {
203 ALOGW("%s: HAL sound dose interface deactivated. Ignoring", __func__);
204 return ndk::ScopedAStatus::fromExceptionCode(EX_ILLEGAL_STATE);
205 }
206
Vlad Popa1d5f0d52022-12-18 12:21:26 +0100207 auto id = soundDoseManager->getIdForAudioDevice(in_audioDevice);
208 if (id == AUDIO_PORT_HANDLE_NONE) {
209 ALOGW("%s: no mapped id for audio device with type %d and address %s",
210 __func__, in_audioDevice.type.type,
211 in_audioDevice.address.get<AudioDeviceAddress::id>().c_str());
212 return ndk::ScopedAStatus::fromExceptionCode(EX_ILLEGAL_ARGUMENT);
213 }
214 soundDoseManager->onMomentaryExposure(in_currentDbA, id);
215
216 return ndk::ScopedAStatus::ok();
217}
218
219ndk::ScopedAStatus SoundDoseManager::HalSoundDoseCallback::onNewMelValues(
220 const ISoundDose::IHalSoundDoseCallback::MelRecord& in_melRecord,
221 const AudioDevice& in_audioDevice) {
222 auto soundDoseManager = mSoundDoseManager.promote();
223 if (soundDoseManager == nullptr) {
224 return ndk::ScopedAStatus::fromExceptionCode(EX_ILLEGAL_STATE);
225 }
Vlad Popa3d6d39d2022-12-21 18:59:16 +0100226
227 std::shared_ptr<ISoundDose> halSoundDose;
228 soundDoseManager->getHalSoundDose(&halSoundDose);
229 if(halSoundDose == nullptr) {
230 ALOGW("%s: HAL sound dose interface deactivated. Ignoring", __func__);
231 return ndk::ScopedAStatus::fromExceptionCode(EX_ILLEGAL_STATE);
232 }
233
Vlad Popa1d5f0d52022-12-18 12:21:26 +0100234 auto id = soundDoseManager->getIdForAudioDevice(in_audioDevice);
235 if (id == AUDIO_PORT_HANDLE_NONE) {
236 ALOGW("%s: no mapped id for audio device with type %d and address %s",
237 __func__, in_audioDevice.type.type,
238 in_audioDevice.address.get<AudioDeviceAddress::id>().c_str());
239 return ndk::ScopedAStatus::fromExceptionCode(EX_ILLEGAL_ARGUMENT);
240 }
241 // TODO: introduce timestamp in onNewMelValues callback
242 soundDoseManager->onNewMelValues(in_melRecord.melValues, 0,
243 in_melRecord.melValues.size(), id);
244
245 return ndk::ScopedAStatus::ok();
246}
247
Vlad Popae3fd1c22022-11-07 21:03:18 +0100248void SoundDoseManager::SoundDose::binderDied(__unused const wp<IBinder>& who) {
249 ALOGV("%s", __func__);
250
251 auto soundDoseManager = mSoundDoseManager.promote();
252 if (soundDoseManager != nullptr) {
253 soundDoseManager->resetSoundDose();
254 }
255}
256
257binder::Status SoundDoseManager::SoundDose::setOutputRs2(float value) {
258 ALOGV("%s", __func__);
259 auto soundDoseManager = mSoundDoseManager.promote();
260 if (soundDoseManager != nullptr) {
261 soundDoseManager->setOutputRs2(value);
262 }
263 return binder::Status::ok();
264}
265
266binder::Status SoundDoseManager::SoundDose::resetCsd(
267 float currentCsd, const std::vector<media::SoundDoseRecord>& records) {
268 ALOGV("%s", __func__);
269 auto soundDoseManager = mSoundDoseManager.promote();
270 if (soundDoseManager != nullptr) {
271 soundDoseManager->resetCsd(currentCsd, records);
272 }
273 return binder::Status::ok();
274}
275
Vlad Popa91930462022-12-20 22:42:48 +0100276binder::Status SoundDoseManager::SoundDose::getOutputRs2(float* value) {
277 ALOGV("%s", __func__);
278 auto soundDoseManager = mSoundDoseManager.promote();
279 if (soundDoseManager != nullptr) {
280 std::lock_guard _l(soundDoseManager->mLock);
281 *value = soundDoseManager->mRs2Value;
282 }
283 return binder::Status::ok();
284}
285
286binder::Status SoundDoseManager::SoundDose::getCsd(float* value) {
287 ALOGV("%s", __func__);
288 auto soundDoseManager = mSoundDoseManager.promote();
289 if (soundDoseManager != nullptr) {
290 *value = soundDoseManager->mMelAggregator->getCsd();
291 }
292 return binder::Status::ok();
293}
294
295binder::Status SoundDoseManager::SoundDose::forceUseFrameworkMel(bool useFrameworkMel) {
296 ALOGV("%s", __func__);
297 auto soundDoseManager = mSoundDoseManager.promote();
298 if (soundDoseManager != nullptr) {
299 soundDoseManager->setUseFrameworkMel(useFrameworkMel);
300 }
301 return binder::Status::ok();
302}
303
304binder::Status SoundDoseManager::SoundDose::forceComputeCsdOnAllDevices(
305 bool computeCsdOnAllDevices) {
306 ALOGV("%s", __func__);
307 auto soundDoseManager = mSoundDoseManager.promote();
308 if (soundDoseManager != nullptr) {
309 soundDoseManager->setComputeCsdOnAllDevices(computeCsdOnAllDevices);
310 }
311 return binder::Status::ok();
312}
313
314void SoundDoseManager::setUseFrameworkMel(bool useFrameworkMel) {
Vlad Popa3d6d39d2022-12-21 18:59:16 +0100315 // invalidate any HAL sound dose interface used
316 setHalSoundDoseInterface(nullptr);
317
Vlad Popa91930462022-12-20 22:42:48 +0100318 std::lock_guard _l(mLock);
319 mUseFrameworkMel = useFrameworkMel;
320}
321
Vlad Popa3d6d39d2022-12-21 18:59:16 +0100322bool SoundDoseManager::forceUseFrameworkMel() const {
Vlad Popa91930462022-12-20 22:42:48 +0100323 std::lock_guard _l(mLock);
324 return mUseFrameworkMel;
325}
326
327void SoundDoseManager::setComputeCsdOnAllDevices(bool computeCsdOnAllDevices) {
328 std::lock_guard _l(mLock);
329 mComputeCsdOnAllDevices = computeCsdOnAllDevices;
330}
331
Vlad Popa3d6d39d2022-12-21 18:59:16 +0100332bool SoundDoseManager::forceComputeCsdOnAllDevices() const {
Vlad Popa91930462022-12-20 22:42:48 +0100333 std::lock_guard _l(mLock);
334 return mComputeCsdOnAllDevices;
335}
336
Vlad Popa3d6d39d2022-12-21 18:59:16 +0100337void SoundDoseManager::getHalSoundDose(std::shared_ptr<ISoundDose>* halSoundDose) const {
338 std::lock_guard _l(mLock);
339 *halSoundDose = mHalSoundDose;
340}
341
Vlad Popae3fd1c22022-11-07 21:03:18 +0100342void SoundDoseManager::resetSoundDose() {
343 std::lock_guard lock(mLock);
344 mSoundDose = nullptr;
345}
346
347void SoundDoseManager::resetCsd(float currentCsd,
348 const std::vector<media::SoundDoseRecord>& records) {
349 std::lock_guard lock(mLock);
350 std::vector<audio_utils::CsdRecord> resetRecords;
351 for (const auto& record : records) {
352 resetRecords.emplace_back(record.timestamp, record.duration, record.value,
353 record.averageMel);
354 }
355
356 mMelAggregator->reset(currentCsd, resetRecords);
357}
358
Vlad Popa4defd0b2022-11-06 14:22:31 +0100359void SoundDoseManager::onNewMelValues(const std::vector<float>& mels, size_t offset, size_t length,
360 audio_port_handle_t deviceId) const {
Vlad Popaf09e93f2022-10-31 16:27:12 +0100361 ALOGV("%s", __func__);
Vlad Popa2900c0a2022-10-24 13:38:00 +0200362
Vlad Popa4defd0b2022-11-06 14:22:31 +0100363 sp<media::ISoundDoseCallback> soundDoseCallback;
364 std::vector<audio_utils::CsdRecord> records;
365 float currentCsd;
366 {
367 std::lock_guard _l(mLock);
Vlad Popa2900c0a2022-10-24 13:38:00 +0200368
Vlad Popa4defd0b2022-11-06 14:22:31 +0100369 int64_t timestampSec = getMonotonicSecond();
370
371 // only for internal callbacks
372 records = mMelAggregator->aggregateAndAddNewMelRecord(audio_utils::MelRecord(
373 deviceId, std::vector<float>(mels.begin() + offset, mels.begin() + offset + length),
374 timestampSec - length));
375
376 currentCsd = mMelAggregator->getCsd();
377 }
378
379 soundDoseCallback = getSoundDoseCallback();
380
381 if (records.size() > 0 && soundDoseCallback != nullptr) {
382 std::vector<media::SoundDoseRecord> newRecordsToReport;
383 for (const auto& record : records) {
384 newRecordsToReport.emplace_back(csdRecordToSoundDoseRecord(record));
385 }
386
387 soundDoseCallback->onNewCsdValue(currentCsd, newRecordsToReport);
388 }
Vlad Popa2900c0a2022-10-24 13:38:00 +0200389}
390
Vlad Popa4defd0b2022-11-06 14:22:31 +0100391sp<media::ISoundDoseCallback> SoundDoseManager::getSoundDoseCallback() const {
392 std::lock_guard _l(mLock);
Vlad Popae3fd1c22022-11-07 21:03:18 +0100393 if (mSoundDose == nullptr) {
394 return nullptr;
395 }
396
397 return mSoundDose->mSoundDoseCallback;
Vlad Popa4defd0b2022-11-06 14:22:31 +0100398}
399
400void SoundDoseManager::onMomentaryExposure(float currentMel, audio_port_handle_t deviceId) const {
401 ALOGV("%s: Momentary exposure for device %d triggered: %f MEL", __func__, deviceId, currentMel);
Vlad Popa63f047e2022-11-05 14:09:19 +0100402
Vlad Popae3fd1c22022-11-07 21:03:18 +0100403 auto soundDoseCallback = getSoundDoseCallback();
Vlad Popa63f047e2022-11-05 14:09:19 +0100404 if (soundDoseCallback != nullptr) {
Vlad Popae3fd1c22022-11-07 21:03:18 +0100405 soundDoseCallback->onMomentaryExposure(currentMel, deviceId);
Vlad Popa63f047e2022-11-05 14:09:19 +0100406 }
407}
408
Vlad Popae3fd1c22022-11-07 21:03:18 +0100409sp<media::ISoundDose> SoundDoseManager::getSoundDoseInterface(
410 const sp<media::ISoundDoseCallback>& callback) {
Vlad Popa63f047e2022-11-05 14:09:19 +0100411 ALOGV("%s: Register ISoundDoseCallback", __func__);
412
413 std::lock_guard _l(mLock);
Vlad Popae3fd1c22022-11-07 21:03:18 +0100414 if (mSoundDose == nullptr) {
415 mSoundDose = sp<SoundDose>::make(this, callback);
416 }
417 return mSoundDose;
Vlad Popaf09e93f2022-10-31 16:27:12 +0100418}
419
Vlad Popa4defd0b2022-11-06 14:22:31 +0100420std::string SoundDoseManager::dump() const {
Vlad Popa2900c0a2022-10-24 13:38:00 +0200421 std::string output;
Vlad Popaf09e93f2022-10-31 16:27:12 +0100422 mMelAggregator->foreachCsd([&output](audio_utils::CsdRecord csdRecord) {
Vlad Popa2900c0a2022-10-24 13:38:00 +0200423 base::StringAppendF(&output,
424 "CSD %f with average MEL %f in interval [%" PRId64 ", %" PRId64 "]",
Vlad Popa4defd0b2022-11-06 14:22:31 +0100425 csdRecord.value, csdRecord.averageMel, csdRecord.timestamp,
Vlad Popa2900c0a2022-10-24 13:38:00 +0200426 csdRecord.timestamp + csdRecord.duration);
427 base::StringAppendF(&output, "\n");
428 });
429
430 base::StringAppendF(&output, "\nCached Mel Records:\n");
Vlad Popaf09e93f2022-10-31 16:27:12 +0100431 mMelAggregator->foreachCachedMel([&output](const audio_utils::MelRecord& melRecord) {
Vlad Popa2900c0a2022-10-24 13:38:00 +0200432 base::StringAppendF(&output, "Continuous MELs for portId=%d, ", melRecord.portId);
433 base::StringAppendF(&output, "starting at timestamp %" PRId64 ": ", melRecord.timestamp);
434
435 for (const auto& mel : melRecord.mels) {
436 base::StringAppendF(&output, "%.2f ", mel);
437 }
438 base::StringAppendF(&output, "\n");
439 });
440
441 return output;
442}
443
444size_t SoundDoseManager::getCachedMelRecordsSize() const {
Vlad Popaf09e93f2022-10-31 16:27:12 +0100445 return mMelAggregator->getCachedMelRecordsSize();
Vlad Popa2900c0a2022-10-24 13:38:00 +0200446}
447
Vlad Popa4defd0b2022-11-06 14:22:31 +0100448media::SoundDoseRecord SoundDoseManager::csdRecordToSoundDoseRecord(
449 const audio_utils::CsdRecord& legacy) {
450 media::SoundDoseRecord soundDoseRecord{};
451 soundDoseRecord.timestamp = legacy.timestamp;
452 soundDoseRecord.duration = legacy.duration;
453 soundDoseRecord.value = legacy.value;
454 soundDoseRecord.averageMel = legacy.averageMel;
455 return soundDoseRecord;
456}
457
Vlad Popa2900c0a2022-10-24 13:38:00 +0200458} // namespace android