Home
last modified time | relevance | path

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

123456789

/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 …]
DTestExecutorService.java89 public T get(long timeout, TimeUnit unit) in get() argument
99 public long getDelay(TimeUnit unit) { in getDelay() argument
100 if (unit == TimeUnit.MILLISECONDS) { in getDelay()
141 public boolean awaitTermination(long timeout, TimeUnit unit) { in awaitTermination() argument
168 TimeUnit unit) { in invokeAll() argument
178 public <T> T invokeAny(Collection<? extends Callable<T>> tasks, long timeout, TimeUnit unit) { in invokeAny() argument
183 public ScheduledFuture<?> schedule(Runnable command, long delay, TimeUnit unit) { in schedule() argument
185 long scheduledTime = getNextExecutionTime(delay, unit); in schedule()
196 public <V> ScheduledFuture<V> schedule(Callable<V> callable, long delay, TimeUnit unit) { in schedule() argument
202 TimeUnit unit) { in scheduleAtFixedRate() argument
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/util/concurrency/
DRepeatableExecutorImpl.java38 public Runnable executeRepeatedly(Runnable r, long initDelay, long delay, TimeUnit unit) { in executeRepeatedly() argument
39 ExecutionToken token = new ExecutionToken(r, delay, unit); in executeRepeatedly()
40 token.start(initDelay, unit); in executeRepeatedly()
51 ExecutionToken(Runnable r, long delay, TimeUnit unit) { in ExecutionToken() argument
54 mUnit = unit; in ExecutionToken()
68 public void start(long startDelay, TimeUnit unit) { in start() argument
70 mCancel = mExecutor.executeDelayed(this, startDelay, unit); in start()
DExecutorImpl.java44 public Runnable executeDelayed(Runnable r, long delay, TimeUnit unit) { in executeDelayed() argument
47 mHandler.sendMessageDelayed(m, unit.toMillis(delay)); in executeDelayed()
53 public Runnable executeAtTime(Runnable r, long uptimeMillis, TimeUnit unit) { in executeAtTime() argument
56 mHandler.sendMessageAtTime(m, unit.toMillis(uptimeMillis)); in executeAtTime()
DDelayableExecutor.java44 Runnable executeDelayed(Runnable r, long delay, TimeUnit unit); in executeDelayed() argument
64 Runnable executeAtTime(Runnable r, long uptimeMillis, TimeUnit unit); in executeAtTime() argument
/frameworks/av/media/libmediatranscoding/transcoder/tests/
DAndroid.bp50 // MediaSampleReaderNDK unit test
57 // MediaSampleQueue unit test
64 // MediaTrackTranscoder unit test
71 // VideoTrackTranscoder unit test
78 // PassthroughTrackTranscoder unit test
85 // MediaSampleWriter unit test
92 // HDR Transcode unit test
99 // MediaTranscoder unit test
DREADME.md3 #### Transcoder unit tests :
4 To run all transcoder unit tests, run the supplied script from this folder:
10 To run individual unit test modules, use atest:
/frameworks/base/libs/hwui/
DAndroid.bp662 // unit tests
681 "tests/unit/main.cpp",
682 "tests/unit/ABitmapTests.cpp",
683 "tests/unit/CacheManagerTests.cpp",
684 "tests/unit/CanvasContextTests.cpp",
685 "tests/unit/CanvasOpTests.cpp",
686 "tests/unit/CanvasFrontendTests.cpp",
687 "tests/unit/CommonPoolTests.cpp",
688 "tests/unit/DamageAccumulatorTests.cpp",
689 "tests/unit/DeferredLayerUpdaterTests.cpp",
[all …]
/frameworks/base/services/tests/servicestests/src/com/android/server/people/data/
DMockScheduledExecutorService.java84 public ScheduledFuture<?> schedule(Runnable command, long delay, TimeUnit unit) { in schedule() argument
85 Preconditions.checkState(unit == TimeUnit.MILLISECONDS); in schedule()
86 MockScheduledFuture<?> future = new MockScheduledFuture<>(command, delay, unit); in schedule()
92 public <V> ScheduledFuture<V> schedule(Callable<V> callable, long delay, TimeUnit unit) { in schedule() argument
98 TimeUnit unit) { in scheduleAtFixedRate() argument
99 return new MockScheduledFuture<>(command, period, unit); in scheduleAtFixedRate()
104 long delay, TimeUnit unit) { in scheduleWithFixedDelay() argument
129 public boolean awaitTermination(long timeout, TimeUnit unit) throws InterruptedException { in awaitTermination() argument
166 TimeUnit unit) throws InterruptedException { in invokeAll() argument
177 public <T> T invokeAny(Collection<? extends Callable<T>> tasks, long timeout, TimeUnit unit) in invokeAny() argument
[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/av/media/libmediatranscoding/tests/
DAndroid.bp1 // Build the unit tests for libmediatranscoding.
47 // TranscodingClientManager unit test
57 // TranscodingSessionController unit test
67 // AdjustableMaxPriorityQueue unit test
77 // TranscodingLogger unit test
/frameworks/base/core/java/android/text/format/
DFormatter.java126 final int unit = ((flags & FLAG_IEC_UNITS) != 0) ? 1024 : 1000; in formatBytes() local
133 mult = unit; in formatBytes()
134 result = result / unit; in formatBytes()
138 mult *= unit; in formatBytes()
139 result = result / unit; in formatBytes()
143 mult *= unit; in formatBytes()
144 result = result / unit; in formatBytes()
148 mult *= unit; in formatBytes()
149 result = result / unit; in formatBytes()
153 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/services/mediatranscoding/tests/
DAndroid.bp1 // Build the unit tests for MediaTranscodingService
49 // MediaTranscodingService unit test using simulated transcoder
57 // MediaTranscodingService unit test using real transcoder
65 // MediaTranscodingService unit test related to resource management
/frameworks/av/media/libstagefright/rtsp/
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()
DAHEVCAssembler.cpp402 sp<ABuffer> unit = new ABuffer(nalSize); in addSingleTimeAggregationPacket() local
403 memcpy(unit->data(), &data[2], nalSize); in addSingleTimeAggregationPacket()
405 CopyTimes(unit, buffer); in addSingleTimeAggregationPacket()
407 addSingleNALUnit(unit); in addSingleTimeAggregationPacket()
543 sp<ABuffer> unit = new ABuffer(totalSize); in addFragmentedNALUnit() local
544 CopyTimes(unit, *queue->begin()); in addFragmentedNALUnit()
546 unit->data()[0] = (nalType << 1); in addFragmentedNALUnit()
547 unit->data()[1] = tid; in addFragmentedNALUnit()
560 memcpy(unit->data() + offset, buffer->data() + 3, buffer->size() - 3); in addFragmentedNALUnit()
567 unit->setRange(0, totalSize); in addFragmentedNALUnit()
[all …]
DAAVCAssembler.cpp390 sp<ABuffer> unit = new ABuffer(nalSize); in addSingleTimeAggregationPacket() local
391 memcpy(unit->data(), &data[2], nalSize); in addSingleTimeAggregationPacket()
393 CopyTimes(unit, buffer); in addSingleTimeAggregationPacket()
395 addSingleNALUnit(unit); in addSingleTimeAggregationPacket()
518 sp<ABuffer> unit = new ABuffer(totalSize); in addFragmentedNALUnit() local
519 CopyTimes(unit, *queue->begin()); in addFragmentedNALUnit()
521 unit->data()[0] = (nri << 5) | nalType; in addFragmentedNALUnit()
535 memcpy(unit->data() + offset, buffer->data() + 2, buffer->size() - 2); in addFragmentedNALUnit()
544 unit->setRange(0, totalSize); in addFragmentedNALUnit()
547 unit->meta()->setInt32("cvo", cvo); in addFragmentedNALUnit()
[all …]
/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/tests/servicestests/src/com/android/server/apphibernation/
DHibernationStateDiskStoreTest.java143 public ScheduledFuture<?> schedule(Runnable command, long delay, TimeUnit unit) { in schedule() argument
149 public <V> ScheduledFuture<V> schedule(Callable<V> callable, long delay, TimeUnit unit) { in schedule() argument
155 long period, TimeUnit unit) { in scheduleAtFixedRate() argument
161 long delay, TimeUnit unit) { in scheduleWithFixedDelay() argument
186 public boolean awaitTermination(long timeout, TimeUnit unit) throws InterruptedException { in awaitTermination() argument
213 TimeUnit unit) throws InterruptedException { in invokeAll() argument
224 public <T> T invokeAny(Collection<? extends Callable<T>> tasks, long timeout, TimeUnit unit) in invokeAny() argument
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/utils/
DStringUtil.java137 final RelativeUnit unit; in formatRelativeTime() local
142 unit = RelativeUnit.MINUTES; in formatRelativeTime()
146 unit = RelativeUnit.HOURS; in formatRelativeTime()
150 unit = RelativeUnit.DAYS; in formatRelativeTime()
162 return formatter.format(value, RelativeDateTimeFormatter.Direction.LAST, unit); in formatRelativeTime()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/util/concurrency/
DFakeExecutor.java145 public Runnable executeDelayed(Runnable r, long delay, TimeUnit unit) { in executeDelayed() argument
149 return executeAtTime(r, mClock.uptimeMillis() + unit.toMillis(delay)); in executeDelayed()
153 public Runnable executeAtTime(Runnable r, long uptime, TimeUnit unit) { in executeAtTime() argument
154 long uptimeMillis = unit.toMillis(uptime); in executeAtTime()
/frameworks/base/services/core/java/com/android/server/location/contexthub/
DContextHubServiceTransaction.java118 /* package */ long getTimeout(TimeUnit unit) { in getTimeout() argument
121 return unit.convert(30L, TimeUnit.SECONDS); in getTimeout()
128 return unit.convert(5L, TimeUnit.SECONDS); in getTimeout()
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/
DResourceHelper.java544 int unit; field in ResourceHelper.UnitEntry
547 UnitEntry(String name, int type, int unit, float scale) { in UnitEntry() argument
550 this.unit = unit; in UnitEntry()
706 for (UnitEntry unit : sUnitNames) {
707 if (unit.name.equals(str)) {
708 applyUnit(unit, outValue, outScale);
716 private static void applyUnit(UnitEntry unit, TypedValue outValue, float[] outScale) {
717 outValue.type = unit.type;
720 outValue.data = unit.unit << TypedValue.COMPLEX_UNIT_SHIFT;
721 outScale[0] = unit.scale;
/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/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()

123456789