/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/docs/html/training/testing/unit-testing/ |
D | index.jd | 2 page.tags=testing,androidjunitrunner,junit,unit test 22 <p>Unit tests are the fundamental tests in your app testing strategy. By creating and running unit 24 Running unit tests after every build helps you to 28 <p>A unit test generally exercises the functionality of the smallest possible unit of code (which 29 could be a method, class, or component) in a repeatable way. You should build unit tests when you 30 need to verify the logic of specific code in your app. For example, if you are unit testing a 31 class, your test might check that the class is in the right state. Typically, the unit of code 32 is tested in isolation; your test affects and monitors changes to that unit only. A 34 can be used to isolate your unit from its dependencies.</p> 40 <p>For testing Android apps, you typically create these types of automated unit tests:</p> [all …]
|
D | instrumented-unit-tests.jd | 2 page.tags=testing,androidjunitrunner,junit,unit test,mock,instrumentation 37 Instrumented unit tests are unit tests that run on physical devices and emulators, instead of 38 the Java Virtual Machine (JVM) on your local machine. You should create instrumented unit tests 42 object). Using instrumented unit tests also helps to reduce the effort required to write and 44 dependency relationships. Instrumented unit tests can take advantage of the Android framework APIs 49 <p>Before building instrumented unit tests, you must:</p> 57 create and run instrumented unit tests. To learn how to install the 65 folder. The source code for instrumentatation tests, including your unit tests, must be 74 correctly build and run your instrumented unit tests, you must specify the following 90 Your instrumented unit test class should be written as a JUnit 4 test class. To learn more about [all …]
|
D | local-unit-tests.jd | 2 page.tags=testing,androidjunitrunner,junit,unit test,mock 34 <p>If your unit test has no dependencies or only has simple dependencies on Android, you should run 36 you avoid the overhead of loading the target app and unit test code onto a physical device or 37 emulator every time your test is run. Consequently, the execution time for running your unit 45 project organization by letting you group your unit tests together into a single source set. You 50 <p>Before building local unit tests, you must:</p> 56 folder. The source code for your local unit tests must be placed under the 65 Mockito with your local unit tests, specify the following libraries in 82 <p>Your local unit test class should be written as a JUnit 4 test class. 84 and widely-used unit testing framework for Java. The latest version of this framework, JUnit 4, [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 | 356 int unit; field in ResourceHelper.UnitEntry 359 UnitEntry(String name, int type, int unit, float scale) { in UnitEntry() argument 362 this.unit = unit; in UnitEntry() 518 for (UnitEntry unit : sUnitNames) { 519 if (unit.name.equals(str)) { 520 applyUnit(unit, outValue, outScale); 528 private static void applyUnit(UnitEntry unit, TypedValue outValue, float[] outScale) { 529 outValue.type = unit.type; 532 outValue.data = unit.unit << TypedValue.COMPLEX_UNIT_SHIFT; 533 outScale[0] = unit.scale;
|
/frameworks/base/core/java/android/hardware/camera2/legacy/ |
D | CaptureCollector.java | 312 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/base/docs/html/training/activity-testing/ |
D | activity-unit-testing.jd | 25 <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/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/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/base/docs/html/training/auto/start/ |
D | index.jd | 196 <img src="{@docRoot}images/training/auto-desktop-head-unit-server-running.png" 199 <strong>Figure 2.</strong> Notification that the head unit server is running. 202 <img src="{@docRoot}images/training/auto-desktop-head-unit-context-menu-enabled.png" 211 the head unit server over <a href="{@docRoot}tools/help/adb.html">Android Debug Bridge 219 <li>If the server is not already running, select <strong>Start head unit server</strong> 230 This configuration allows the DHU to connect to the head unit server running on your phone over 235 <li>Start the DHU by running the command <code>desktop-head-unit.exe</code> (on Windows) 236 or <code>./desktop-head-unit</code> (on Mac or Linux) from the 240 $ ./desktop-head-unit</pre> 243 By default, the head unit server connects over port 5277. To override the host or port [all …]
|
/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/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/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/docs/html/tools/revisions/ |
D | gradle-plugin.jd | 79 <li>Enhanced unit test support to recognize multi-flavor and 92 <li>Improved unit test support to:</p> 161 <li>Enhanced support for running unit tests with Gradle. </li> 163 <li>Added support to include Java-style resources in the classpath when running unit 166 <li>Added unit test dependency support for Android ARchive (AAR) artifacts. 168 <li>Added support for the <code>unitTestVariants</code> property so unit test variants 172 configure customized tasks for unit test. The following sample code shows how to add 173 unit test configuration settings using this new option: 258 <li>Normalized path when creating a mockable JAR for unit testing. </li> 327 <li>Added new unit test support</li> [all …]
|
/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 | MediaPlayerMethodUnderTest.java | 17 package com.android.mediaframeworktest.unit;
|
D | MediaRecorderMethodUnderTest.java | 17 package com.android.mediaframeworktest.unit;
|
/frameworks/compile/slang/tests/F_one_definition_rule3/ |
D | stderr.txt.expect | 1 error: type 'DifferentDefinition3' in different translation unit (def2.rs v.s. def1.rs) has incompa…
|
/frameworks/compile/slang/tests/F_one_definition_rule7/ |
D | stderr.txt.expect | 1 error: type 'DifferentDefinition7' in different translation unit (def2.rs v.s. def1.rs) has incompa…
|
/frameworks/compile/slang/tests/F_one_definition_rule4/ |
D | stderr.txt.expect | 1 error: type 'DifferentDefinition4' in different translation unit (def2.rs v.s. def1.rs) has incompa…
|
/frameworks/compile/slang/tests/F_one_definition_rule6/ |
D | stderr.txt.expect | 1 error: type 'DifferentDefinition6' in different translation unit (def2.rs v.s. def1.rs) has incompa…
|