Home
last modified time | relevance | path

Searched refs:unit (Results 1 – 25 of 171) sorted by relevance

1234567

/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/
DWap230WspContentTypeTest.java225 WspTypeDecoder unit = new WspTypeDecoder( in testWellKnownShortIntegerMimeTypeValues() local
227 assertTrue(unit.decodeContentType(0)); in testWellKnownShortIntegerMimeTypeValues()
228 String mimeType = unit.getValueString(); in testWellKnownShortIntegerMimeTypeValues()
229 int wellKnownValue = (int) unit.getValue32(); in testWellKnownShortIntegerMimeTypeValues()
232 assertEquals(1, unit.getDecodedDataLength()); in testWellKnownShortIntegerMimeTypeValues()
245 WspTypeDecoder unit = new WspTypeDecoder(data); in testWellKnownLongIntegerMimeTypeValues() local
246 assertTrue(unit.decodeContentType(0)); in testWellKnownLongIntegerMimeTypeValues()
247 String mimeType = unit.getValueString(); in testWellKnownLongIntegerMimeTypeValues()
248 int wellKnownValue = (int) unit.getValue32(); in testWellKnownLongIntegerMimeTypeValues()
251 assertEquals(4, unit.getDecodedDataLength()); in testWellKnownLongIntegerMimeTypeValues()
[all …]
/frameworks/base/libs/hwui/
DAndroid.bp282 // unit tests
302 "tests/unit/main.cpp",
303 "tests/unit/CacheManagerTests.cpp",
304 "tests/unit/CanvasContextTests.cpp",
305 "tests/unit/CommonPoolTests.cpp",
306 "tests/unit/DamageAccumulatorTests.cpp",
307 "tests/unit/DeferredLayerUpdaterTests.cpp",
308 "tests/unit/FatVectorTests.cpp",
309 "tests/unit/GpuMemoryTrackerTests.cpp",
310 "tests/unit/GraphicsStatsServiceTests.cpp",
[all …]
/frameworks/base/core/proto/android/os/
Dprocrank.proto35 // virtual set size, unit KB
38 // resident set size, unit KB
41 // proportional set size, unit KB
44 // unique set size, unit KB
47 // swap size, unit KB
50 // proportional swap size, unit KB
53 // unique swap size, unit KB
56 // zswap size, unit KB
/frameworks/base/core/java/android/text/format/
DFormatter.java125 final int unit = ((flags & FLAG_IEC_UNITS) != 0) ? 1024 : 1000; in formatBytes() local
132 mult = unit; in formatBytes()
133 result = result / unit; in formatBytes()
137 mult *= unit; in formatBytes()
138 result = result / unit; in formatBytes()
142 mult *= unit; in formatBytes()
143 result = result / unit; in formatBytes()
147 mult *= unit; in formatBytes()
148 result = result / unit; in formatBytes()
152 mult *= unit; in formatBytes()
[all …]
DRelativeDateTimeFormatter.java145 android.icu.text.RelativeDateTimeFormatter.RelativeUnit unit; in getRelativeTimeSpanString() local
150 unit = android.icu.text.RelativeDateTimeFormatter.RelativeUnit.SECONDS; in getRelativeTimeSpanString()
153 unit = android.icu.text.RelativeDateTimeFormatter.RelativeUnit.MINUTES; in getRelativeTimeSpanString()
159 unit = android.icu.text.RelativeDateTimeFormatter.RelativeUnit.HOURS; in getRelativeTimeSpanString()
162 unit = android.icu.text.RelativeDateTimeFormatter.RelativeUnit.DAYS; in getRelativeTimeSpanString()
201 unit = android.icu.text.RelativeDateTimeFormatter.RelativeUnit.WEEKS; in getRelativeTimeSpanString()
229 return formatter.format(count, direction, unit); in getRelativeTimeSpanString()
/frameworks/av/media/libstagefright/rtsp/
DAAVCAssembler.cpp162 sp<ABuffer> unit = new ABuffer(nalSize); in addSingleTimeAggregationPacket() local
163 memcpy(unit->data(), &data[2], nalSize); in addSingleTimeAggregationPacket()
165 CopyTimes(unit, buffer); in addSingleTimeAggregationPacket()
167 addSingleNALUnit(unit); in addSingleTimeAggregationPacket()
287 sp<ABuffer> unit = new ABuffer(totalSize); in addFragmentedNALUnit() local
288 CopyTimes(unit, *queue->begin()); in addFragmentedNALUnit()
290 unit->data()[0] = (nri << 5) | nalType; in addFragmentedNALUnit()
302 memcpy(unit->data() + offset, buffer->data() + 2, buffer->size() - 2); in addFragmentedNALUnit()
308 unit->setRange(0, totalSize); in addFragmentedNALUnit()
310 addSingleNALUnit(unit); in addFragmentedNALUnit()
DAH263Assembler.cpp162 const sp<ABuffer> &unit = *it; in submitAccessUnit() local
164 totalSize += unit->size(); in submitAccessUnit()
172 const sp<ABuffer> &unit = *it; in submitAccessUnit() local
175 unit->data(), unit->size()); in submitAccessUnit()
177 offset += unit->size(); in submitAccessUnit()
/frameworks/base/cmds/incident_helper/src/parsers/
DEventLogTagsParser.cpp60 int unit = 0; in Parse() local
62 unit = (int) c; in Parse()
64 unit = toInt(valueDescriptor[2]); in Parse()
66 proto.write(EventLogTag::ValueDescriptor::UNIT, unit); in Parse()
/frameworks/base/services/core/java/com/android/server/location/
DContextHubServiceTransaction.java100 /* package */ long getTimeout(TimeUnit unit) { in getTimeout() argument
103 return unit.convert(30L, TimeUnit.SECONDS); in getTimeout()
110 return unit.convert(5L, TimeUnit.SECONDS); in getTimeout()
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/utils/
DStringUtil.java127 final RelativeUnit unit; in formatRelativeTime() local
132 unit = RelativeUnit.MINUTES; in formatRelativeTime()
136 unit = RelativeUnit.HOURS; in formatRelativeTime()
140 unit = RelativeUnit.DAYS; in formatRelativeTime()
152 return formatter.format(value, RelativeDateTimeFormatter.Direction.LAST, unit); in formatRelativeTime()
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/
DResourceHelper.java531 int unit; field in ResourceHelper.UnitEntry
534 UnitEntry(String name, int type, int unit, float scale) { in UnitEntry() argument
537 this.unit = unit; in UnitEntry()
693 for (UnitEntry unit : sUnitNames) {
694 if (unit.name.equals(str)) {
695 applyUnit(unit, outValue, outScale);
703 private static void applyUnit(UnitEntry unit, TypedValue outValue, float[] outScale) {
704 outValue.type = unit.type;
707 outValue.data = unit.unit << TypedValue.COMPLEX_UNIT_SHIFT;
708 outScale[0] = unit.scale;
/frameworks/base/core/java/android/hardware/camera2/legacy/
DCaptureCollector.java318 TimeUnit unit) in queueRequest() argument
321 long nanos = unit.toNanos(timeout); in queueRequest()
373 public boolean waitForEmpty(long timeout, TimeUnit unit) throws InterruptedException { in waitForEmpty() argument
374 long nanos = unit.toNanos(timeout); in waitForEmpty()
398 public boolean waitForPreviewsEmpty(long timeout, TimeUnit unit) throws InterruptedException { in waitForPreviewsEmpty() argument
399 long nanos = unit.toNanos(timeout); in waitForPreviewsEmpty()
430 public boolean waitForRequestCompleted(RequestHolder holder, long timeout, TimeUnit unit, in waitForRequestCompleted() argument
433 long nanos = unit.toNanos(timeout); in waitForRequestCompleted()
/frameworks/rs/tests/java_api/Refocus/src/com/android/rs/test/
DRefocusFilter.java35 public void logTiming(String implementation, String phase, long time, String unit) { in logTiming() argument
36 timings.add(Pair.create(phase + " (" + unit + ")", Long.valueOf(time))); in logTiming()
37 Log.d(implementation, phase + ":" + time + " " + unit); in logTiming()
/frameworks/av/media/libaudioprocessing/tests/
DAndroid.bp1 // Build the unit tests for libaudioprocessing
28 // resampler unit test
/frameworks/base/services/core/java/com/android/server/notification/
DRankingReconsideration.java64 public long getDelay(TimeUnit unit) { in getDelay() argument
65 return unit.convert(mDelay, TimeUnit.MILLISECONDS); in getDelay()
/frameworks/base/media/tests/EffectsTest/src/com/android/effectstest/
DEffectParameter.java35 public EffectParameter (int min, int max, SeekBar seekBar, TextView textView, String unit) { in EffectParameter() argument
40 mUnit = unit; in EffectParameter()
/frameworks/base/packages/Tethering/tests/unit/
DAndroid.bp17 // Tests in this folder are included both in unit tests and CTS.
72 // Library containing the unit tests. This is used by the coverage test target to pull in the
73 // unit test code. It is not currently used by the tests themselves because all the build
/frameworks/base/tests/utils/testutils/java/com/android/internal/util/test/
DBroadcastInterceptingContext.java58 public abstract void assertNotReceived(long timeout, TimeUnit unit) in assertNotReceived() argument
101 public void assertNotReceived(long timeout, TimeUnit unit) in assertNotReceived() argument
104 final Intent intent = get(timeout, unit); in assertNotReceived()
/frameworks/base/cmds/statsd/src/
Dstats_log_util.h45 int64_t TimeUnitToBucketSizeInMillisGuardrailed(int uid, TimeUnit unit);
48 int64_t TimeUnitToBucketSizeInMillis(TimeUnit unit);
/frameworks/ex/camera2/public/src/com/android/ex/camera2/blocking/
DBlockingSessionCallback.java291 public CameraCaptureSession get(long timeout, TimeUnit unit) throws TimeoutException { in get() argument
292 long timeoutMs = unit.convert(timeout, TimeUnit.MILLISECONDS); in get()
295 "Failed to receive session after " + timeout + " " + unit); in get()
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/
DQSDualTileLabel.java129 public void setTextSize(int unit, float size) { in setTextSize() argument
130 mFirstLine.setTextSize(unit, size); in setTextSize()
131 mSecondLine.setTextSize(unit, size); in setTextSize()
/frameworks/base/media/java/android/media/
DTtmlRenderer.java153 String unit = matcher.group(2); in parseTimeExpression() local
154 if (unit.equals("h")) { in parseTimeExpression()
156 } else if (unit.equals("m")) { in parseTimeExpression()
158 } else if (unit.equals("s")) { in parseTimeExpression()
160 } else if (unit.equals("ms")) { in parseTimeExpression()
162 } else if (unit.equals("f")) { in parseTimeExpression()
164 } else if (unit.equals("t")) { in parseTimeExpression()
/frameworks/native/services/surfaceflinger/EventLog/
DEventLogTags.logtags16 # (<name>|data type[|data unit])
25 # The data unit is a number taken from the following list:
/frameworks/av/media/utils/
DEventLogTags.logtags16 # (<name>|data type[|data unit])
25 # The data unit is a number taken from the following list:
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/unit/
DMediaPlayerMethodUnderTest.java17 package com.android.mediaframeworktest.unit;

1234567