Home
last modified time | relevance | path

Searched refs:durationNs (Results 1 – 8 of 8) sorted by relevance

/frameworks/av/services/audioflinger/datapath/
DTrackMetrics.h147 void updateMinMaxVolume_l(int64_t durationNs, double deviceVolume) in updateMinMaxVolume_l() argument
151 mMaxVolumeDurationNs = durationNs; in updateMinMaxVolume_l()
153 mMaxVolumeDurationNs += durationNs; in updateMinMaxVolume_l()
157 mMinVolumeDurationNs = durationNs; in updateMinMaxVolume_l()
159 mMinVolumeDurationNs += durationNs; in updateMinMaxVolume_l()
190 const int64_t durationNs = mLastVolumeChangeTimeNs == 0 in logVolume_l() local
192 if (durationNs > 0) { in logVolume_l()
195 mDeviceVolume += (mVolume - mDeviceVolume) * durationNs in logVolume_l()
196 / (durationNs + mDeviceTimeNs); in logVolume_l()
197 mDeviceTimeNs += durationNs; in logVolume_l()
[all …]
/frameworks/base/apct-tests/perftests/blobstore/src/com/android/perftests/blob/
DBlobStorePerfTests.java133 long durationNs = 0; in testDirectReads() local
134 while (mState.keepRunning(durationNs)) { in testDirectReads()
139 durationNs = System.nanoTime() - startTimeNs; in testDirectReads()
151 long durationNs = 0; in testBlobStoreReads() local
152 while (mState.keepRunning(durationNs)) { in testBlobStoreReads()
158 durationNs = System.nanoTime() - startTimeNs; in testBlobStoreReads()
170 long durationNs = 0; in testDirectWrites() local
171 while (mState.keepRunning(durationNs)) { in testDirectWrites()
177 durationNs = System.nanoTime() - startTimeNs; in testDirectWrites()
187 long durationNs = 0; in testBlobStoreWrites() local
[all …]
/frameworks/av/services/mediametrics/
DAudioPowerUsage.cpp415 const int64_t durationNs = endCallNs - mDeviceTimeNs; in checkMode() local
417 if (durationNs > 0) { in checkMode()
419 mVoiceVolume * double(volumeDurationNs)) / (double)durationNs; in checkMode()
424 saveAsItems_l(mPrimaryDevice, durationNs, VOICE_CALL_TYPE, mDeviceVolume, in checkMode()
450 const int64_t durationNs = timeNs - mDeviceTimeNs; in checkVoiceVolume() local
452 if (durationNs > 0) { in checkVoiceVolume()
454 mVoiceVolume * double(volumeDurationNs)) / (double)durationNs; in checkVoiceVolume()
486 const int64_t durationNs = endDeviceNs - mDeviceTimeNs; in checkCreatePatch() local
488 if (durationNs > 0) { in checkCreatePatch()
490 mVoiceVolume * double(volumeDurationNs)) / (double)durationNs; in checkCreatePatch()
[all …]
DAudioAnalytics.cpp1816 int64_t durationNs = -1; in onEvent() local
1818 key, AMEDIAMETRICS_PROP_DURATIONNS, &durationNs); in onEvent()
1850 << " duration_opened_ms:" << durationNs in onEvent()
1868 , durationNs in onEvent()
1886 , durationNs in onEvent()
/frameworks/base/core/java/android/hardware/camera2/params/
DStreamConfigurationDuration.java56 final int format, final int width, final int height, final long durationNs) { in StreamConfigurationDuration() argument
60 mDurationNs = checkArgumentNonnegative(durationNs, "durationNs must be non-negative"); in StreamConfigurationDuration()
/frameworks/base/core/java/android/hardware/camera2/marshal/impl/
DMarshalQueryableStreamConfigurationDuration.java66 long durationNs = buffer.getLong(); in unmarshal() local
68 return new StreamConfigurationDuration(format, width, height, durationNs); in unmarshal()
/frameworks/base/apct-tests/perftests/core/src/android/perftests/
DSystemPerfTest.java60 void spinBlock(long durationNs) { in spinBlock() argument
62 while (System.nanoTime() - start < durationNs) {} in spinBlock()
/frameworks/av/media/module/extractors/mkv/
DMatroskaExtractor.cpp2240 long long durationNs = mSegment->GetDuration(); in addTracks() local
2241 AMediaFormat_setInt64(meta, AMEDIAFORMAT_KEY_DURATION, (durationNs + 500) / 1000); in addTracks()