/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/ |
D | Wap230WspContentTypeTest.java | 225 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/packages/DocumentsUI/tests/src/com/android/documentsui/services/ |
D | TestScheduledExecutorService.java | 67 public boolean awaitTermination(long timeout, TimeUnit unit) throws InterruptedException { in awaitTermination() argument 94 TimeUnit unit) throws InterruptedException { in invokeAll() argument 105 public <T> T invokeAny(Collection<? extends Callable<T>> tasks, long timeout, TimeUnit unit) in invokeAny() argument 116 public ScheduledFuture<?> schedule(Runnable command, long delay, TimeUnit unit) { in schedule() argument 117 TestFuture future = new TestFuture(command, delay, unit); in schedule() 123 public <V> ScheduledFuture<V> schedule(Callable<V> callable, long delay, TimeUnit unit) { in schedule() argument 129 TimeUnit unit) { in scheduleAtFixedRate() argument 135 long delay, TimeUnit unit) { in scheduleWithFixedDelay() argument 157 final TimeUnit unit; field in TestScheduledExecutorService.TestFuture 159 public TestFuture(Runnable runnable, long delay, TimeUnit unit) { in TestFuture() argument [all …]
|
/frameworks/base/docs/html/training/testing/unit-testing/ |
D | index.jd | 2 page.tags=testing,androidjunitrunner,junit,unit test 23 <p>Unit tests are the fundamental tests in your app testing strategy. By creating and running unit 25 Running unit tests after every build helps you to 29 <p>A unit test generally exercises the functionality of the smallest possible unit of code (which 30 could be a method, class, or component) in a repeatable way. You should build unit tests when you 31 need to verify the logic of specific code in your app. For example, if you are unit testing a 32 class, your test might check that the class is in the right state. Typically, the unit of code 33 is tested in isolation; your test affects and monitors changes to that unit only. A 35 can be used to isolate your unit from its dependencies.</p> 41 <p>For testing Android apps, you typically create these types of automated unit tests:</p> [all …]
|
D | local-unit-tests.jd | 2 page.tags=testing,androidjunitrunner,junit,unit test,mock 27 <a href="https://github.com/googlesamples/android-testing/tree/master/unit/BasicSample" 35 <p>If your unit test has no dependencies or only has simple dependencies on Android, you should run 37 you avoid the overhead of loading the target app and unit test code onto a physical device or 38 emulator every time your test is run. Consequently, the execution time for running your unit 46 unit tests at <code><var>module-name</var>/src/test/java/</code>. This directory 53 to simplify your local unit tests. To learn more about using mock objects in 54 your local unit tests, see <a href= 55 "{@docRoot}training/testing/unit-testing/local-unit-tests.html#mocking-dependencies"> 73 <p>Your local unit test class should be written as a JUnit 4 test class. [all …]
|
D | instrumented-unit-tests.jd | 2 page.tags=testing,androidjunitrunner,junit,unit test,mock,instrumentation 30 <a href="https://github.com/googlesamples/android-testing/tree/master/unit/BasicUnitAndroidTest" 38 <p>Instrumented unit tests are tests that run on physical devices and 41 instrumented unit tests if your tests need access to instrumentation 47 <p>Using instrumented unit tests also helps to reduce the effort required to 121 Your instrumented unit test class should be written as a JUnit 4 test class. To learn more about 123 <a href="local-unit-tests.html#build">Create a Local Unit Test Class</a>. 133 <p>The following example shows how you might write an instrumented unit test to test that 186 To organize the execution of your instrumented unit tests, you can group a collection of test 198 To create a test suite for your unit tests, import the JUnit [all …]
|
/frameworks/av/media/libstagefright/rtsp/ |
D | AAVCAssembler.cpp | 162 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()
|
D | AH263Assembler.cpp | 162 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/ |
D | ResourceHelper.java | 441 int unit; field in ResourceHelper.UnitEntry 444 UnitEntry(String name, int type, int unit, float scale) { in UnitEntry() argument 447 this.unit = unit; in UnitEntry() 603 for (UnitEntry unit : sUnitNames) { 604 if (unit.name.equals(str)) { 605 applyUnit(unit, outValue, outScale); 613 private static void applyUnit(UnitEntry unit, TypedValue outValue, float[] outScale) { 614 outValue.type = unit.type; 617 outValue.data = unit.unit << TypedValue.COMPLEX_UNIT_SHIFT; 618 outScale[0] = unit.scale;
|
/frameworks/base/docs/html/training/testing/integration-testing/ |
D | service-testing.jd | 46 <a href="{@docRoot}training/testing/unit-testing/instrumented-unit-tests.html"> 47 instrumented unit tests</a> to verify that the behavior in the {@link android.app.Service} 57 class is a JUnit 4 rule that starts your service before your unit test methods 69 in a separate class and create a corresponding unit test instead. 81 <a href="{@docRoot}training/testing/unit-testing/instrumented-unit-tests.html#build"> 89 <a href="{@docRoot}training/testing/unit-testing/instrumented-unit-tests.html#run">
|
D | content-provider-testing.jd | 67 <a href="{@docRoot}training/testing/unit-testing/local-unit-tests.html#build"> 123 You run integration tests for content providers the same way as instrumented unit tests. To run the 125 href="{@docRoot}training/testing/unit-testing/instrumented-unit-tests.html#run"> 155 Test invalid URIs: Your unit tests should deliberately call the provider with an
|
/frameworks/base/tools/preload2/src/com/android/preload/ |
D | DeviceUtils.java | 48 public static void doShell(IDevice device, String cmdline, long timeout, TimeUnit unit) { in doShell() argument 49 doShell(device, cmdline, new NullShellOutputReceiver(), timeout, unit); in doShell() 56 TimeUnit unit) { in doShellReturnString() argument 58 doShell(device, cmdline, rec, timeout, unit); in doShellReturnString() 66 long timeout, TimeUnit unit) { in doShell() argument 68 device.executeShellCommand(cmdline, receiver, timeout, unit); in doShell()
|
/frameworks/base/core/java/android/hardware/camera2/legacy/ |
D | CaptureCollector.java | 318 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/base/core/tests/ConnectivityManagerTest/src/com/android/connectivitymanagertest/ |
D | ConnectivityManagerUnitTestRunner.java | 21 import com.android.connectivitymanagertest.unit.WifiClientTest; 22 import com.android.connectivitymanagertest.unit.WifiSoftAPTest;
|
/frameworks/base/docs/html/training/testing/start/ |
D | index.jd | 50 unit tests on the JVM or as instrumented tests on an Android device. 65 <dt><b>Local unit tests</b></dt> 70 href="/training/testing/unit-testing/local-unit-tests.html">Building Local 90 "{@docRoot}training/testing/unit-testing/instrumented-unit-tests.html" 91 >Building Instrumented Unit Tests</a>: Build complex unit tests with 116 <p>However, the <em>local unit tests</em> and <em>instrumented tests</em> 154 Instrumented unit tests 217 <p>You should write your unit or integration test class as a <a href= 225 logical unit) in the component that you want to test.</p> 376 <dt><a href="/training/testing/unit-testing/local-unit-tests.html" [all …]
|
/frameworks/base/docs/html/training/auto/testing/ |
D | index.jd | 32 Android Auto head unit, so you can easily run and test Android Auto apps. 80 <img src="{@docRoot}images/training/auto-desktop-head-unit-context-menu-enabled.png" 88 <img src="{@docRoot}images/training/auto-desktop-head-unit-server-running.png" 91 <strong>Figure 2.</strong> Notification that the head unit server is running. 100 setting up a connection to the head unit server over <a href="{@docRoot}tools/help/adb.html">Androi… 108 <li>If the server is not already running, select <strong>Start head unit server</strong> 123 This configuration allows the DHU to connect to the head unit server running on your phone over 128 <li>Start the DHU by running the command <code>desktop-head-unit.exe</code> (on Windows) 129 or <code>./desktop-head-unit</code> (on Mac or Linux) from the 133 $ ./desktop-head-unit</pre> [all …]
|
/frameworks/base/services/core/java/com/android/server/notification/ |
D | RankingReconsideration.java | 64 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/ |
D | EffectParameter.java | 35 public EffectParameter (int min, int max, SeekBar seekBar, TextView textView, String unit) { in EffectParameter() argument 40 mUnit = unit; in EffectParameter()
|
/frameworks/volley/src/main/java/com/android/volley/toolbox/ |
D | RequestFuture.java | 95 public T get(long timeout, TimeUnit unit) in get() argument 97 return doGet(TimeUnit.MILLISECONDS.convert(timeout, unit)); in get()
|
/frameworks/ex/camera2/public/src/com/android/ex/camera2/blocking/ |
D | BlockingSessionCallback.java | 283 public CameraCaptureSession get(long timeout, TimeUnit unit) throws TimeoutException { in get() argument 284 long timeoutMs = unit.convert(timeout, TimeUnit.MILLISECONDS); in get() 287 "Failed to receive session after " + timeout + " " + unit); in get()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/ |
D | QSDualTileLabel.java | 129 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/ |
D | TtmlRenderer.java | 151 String unit = matcher.group(2); in parseTimeExpression() local 152 if (unit.equals("h")) { in parseTimeExpression() 154 } else if (unit.equals("m")) { in parseTimeExpression() 156 } else if (unit.equals("s")) { in parseTimeExpression() 158 } else if (unit.equals("ms")) { in parseTimeExpression() 160 } else if (unit.equals("f")) { in parseTimeExpression() 162 } else if (unit.equals("t")) { in parseTimeExpression()
|
/frameworks/native/services/surfaceflinger/EventLog/ |
D | EventLogTags.logtags | 16 # (<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/ |
D | MediaRecorderMethodUnderTest.java | 17 package com.android.mediaframeworktest.unit;
|
D | MediaPlayerMethodUnderTest.java | 17 package com.android.mediaframeworktest.unit;
|
/frameworks/compile/slang/tests/F_one_definition_rule5/ |
D | stderr.txt.expect | 1 error: type 'DifferentDefinition5' in different translation unit (def2.rs v.s. def1.rs) has incompa…
|