Home
last modified time | relevance | path

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

123456

/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/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/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/
DResourceHelper.java331 int unit; field in ResourceHelper.UnitEntry
334 UnitEntry(String name, int type, int unit, float scale) { in UnitEntry() argument
337 this.unit = unit; in UnitEntry()
493 for (UnitEntry unit : sUnitNames) {
494 if (unit.name.equals(str)) {
495 applyUnit(unit, outValue, outScale);
503 private static void applyUnit(UnitEntry unit, TypedValue outValue, float[] outScale) {
504 outValue.type = unit.type;
507 outValue.data = unit.unit << TypedValue.COMPLEX_UNIT_SHIFT;
508 outScale[0] = unit.scale;
/frameworks/base/core/tests/ConnectivityManagerTest/src/com/android/connectivitymanagertest/
DConnectivityManagerUnitTestRunner.java21 import com.android.connectivitymanagertest.unit.WifiClientTest;
22 import com.android.connectivitymanagertest.unit.WifiSoftAPTest;
/frameworks/base/docs/html/training/activity-testing/
Dactivity-unit-testing.jd25 <p>An {@link android.app.Activity} unit test is an excellent way to quickly
28 system). A unit test generally tests the smallest possible unit of code
30 or network resources. For example, you can write a unit test to check
37 <p>This lesson shows how you can write a unit test to verify that an
49 framework and inject them into your unit tests. To learn more about the mocking
56 isolated testing of a single {@link android.app.Activity}. To create a unit
87 <p id="test_goals">Your unit testing goals might include:</p>
/frameworks/base/core/java/android/hardware/camera2/legacy/
DCaptureCollector.java312 TimeUnit unit) in queueRequest() argument
315 long nanos = unit.toNanos(timeout); in queueRequest()
367 public boolean waitForEmpty(long timeout, TimeUnit unit) throws InterruptedException { in waitForEmpty() argument
368 long nanos = unit.toNanos(timeout); in waitForEmpty()
392 public boolean waitForPreviewsEmpty(long timeout, TimeUnit unit) throws InterruptedException { in waitForPreviewsEmpty() argument
393 long nanos = unit.toNanos(timeout); in waitForPreviewsEmpty()
424 public boolean waitForRequestCompleted(RequestHolder holder, long timeout, TimeUnit unit, in waitForRequestCompleted() argument
427 long nanos = unit.toNanos(timeout); in waitForRequestCompleted()
/frameworks/ex/variablespeed/tests/src/com/android/ex/variablespeed/
DAwaitableCompletionListener.java47 public void awaitOneCallback(long timeout, TimeUnit unit) throws InterruptedException, in awaitOneCallback() argument
49 if (mQueue.poll(timeout, unit) == null) { in awaitOneCallback()
DAwaitableErrorListener.java55 public void awaitOneCallback(long timeout, TimeUnit unit) throws InterruptedException, in awaitOneCallback() argument
57 if (mQueue.poll(timeout, unit) == null) { in awaitOneCallback()
/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/ex/camera2/public/src/com/android/ex/camera2/blocking/
DBlockingSessionCallback.java214 public CameraCaptureSession get(long timeout, TimeUnit unit) throws TimeoutException { in get() argument
215 long timeoutMs = unit.convert(timeout, TimeUnit.MILLISECONDS); in get()
218 "Failed to receive session after " + timeout + " " + unit); in get()
/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/volley/src/com/android/volley/toolbox/
DRequestFuture.java95 public T get(long timeout, TimeUnit unit) in get() argument
97 return doGet(TimeUnit.MILLISECONDS.convert(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/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/unit/
DMediaRecorderMethodUnderTest.java17 package com.android.mediaframeworktest.unit;
DMediaPlayerMethodUnderTest.java17 package com.android.mediaframeworktest.unit;
/frameworks/compile/slang/tests/F_one_definition_rule8/
Dstderr.txt.expect1 error: type 'DifferentDefinition8' in different translation unit (def2.rs v.s. def1.rs) has incompa…
/frameworks/compile/slang/tests/F_one_definition_rule2/
Dstderr.txt.expect1 error: type 'DifferentDefinition2' in different translation unit (def2.rs v.s. def1.rs) has incompa…
/frameworks/compile/slang/tests/F_one_definition_rule4/
Dstderr.txt.expect1 error: type 'DifferentDefinition4' in different translation unit (def2.rs v.s. def1.rs) has incompa…
/frameworks/compile/slang/tests/F_one_definition_rule7/
Dstderr.txt.expect1 error: type 'DifferentDefinition7' in different translation unit (def2.rs v.s. def1.rs) has incompa…
/frameworks/compile/slang/tests/F_one_definition_rule1/
Dstderr.txt.expect1 error: type 'DifferentDefinition1' in different translation unit (def2.rs v.s. def1.rs) has incompa…
/frameworks/compile/slang/tests/F_one_definition_rule3/
Dstderr.txt.expect1 error: type 'DifferentDefinition3' in different translation unit (def2.rs v.s. def1.rs) has incompa…
/frameworks/compile/slang/tests/F_one_definition_rule5/
Dstderr.txt.expect1 error: type 'DifferentDefinition5' in different translation unit (def2.rs v.s. def1.rs) has incompa…
/frameworks/compile/slang/tests/F_one_definition_rule6/
Dstderr.txt.expect1 error: type 'DifferentDefinition6' in different translation unit (def2.rs v.s. def1.rs) has incompa…
/frameworks/native/services/surfaceflinger/EventLog/
DEventLogTags.logtags16 # (<name>|data type[|data unit])
25 # The data unit is a number taken from the following list:

123456