/cts/tests/tests/graphics/src/android/graphics/cts/ |
D | MatrixTest.java | 73 String expect = "[1.0, 0.0, 0.0][0.0, 2.0, -4.0][0.0, 0.0, 1.0]"; in testReset() local 74 assertEquals(expect, mMatrix.toShortString()); in testReset() 76 expect = "[1.0, 0.0, 0.0][0.0, 1.0, 0.0][0.0, 0.0, 1.0]"; in testReset() 77 assertEquals(expect, mMatrix.toShortString()); in testReset() 81 String expect = "[1.0, 0.0, 0.0][0.0, 1.0, 0.0][0.0, 0.0, 1.0]"; in testSetScale() local 82 assertEquals(expect, mMatrix.toShortString()); in testSetScale() 84 expect = "[1.0, 0.0, 0.0][0.0, 2.0, 0.0][0.0, 0.0, 1.0]"; in testSetScale() 85 assertEquals(expect, mMatrix.toShortString()); in testSetScale() 89 String expect = "[1.0, 0.0, 0.0][0.0, 1.0, 0.0][0.0, 0.0, 1.0]"; in testSetScale2() local 90 assertEquals(expect, mMatrix.toShortString()); in testSetScale2() [all …]
|
D | BitmapFactoryTest.java | 815 private double distance(int expect, int actual, boolean isPremultiplied) { in distance() argument 818 final int a2 = Color.alpha(expect); in distance() 820 multiplyAlpha(Color.red(expect), a2); in distance() 822 multiplyAlpha(Color.green(expect), a2); in distance() 824 multiplyAlpha(Color.blue(expect), a2); in distance() 827 final int r = Color.red(actual) - Color.red(expect); in distance() 828 final int g = Color.green(actual) - Color.green(expect); in distance() 829 final int b = Color.blue(actual) - Color.blue(expect); in distance()
|
/cts/tools/tradefed-host/tests/src/com/android/cts/tradefed/testtype/ |
D | CtsTestTest.java | 91 EasyMock.expect(mMockPackageDef.getTargetApkName()).andStubReturn(null); in setUp() 92 EasyMock.expect(mMockPackageDef.getTargetPackageName()).andStubReturn(null); in setUp() 122 EasyMock.expect(mMockDevice.getProperty("ro.product.cpu.abilist")) in setUp() 151 EasyMock.expect(mMockRepo.getTestPackageDefsByName()).andReturn(nameMap); in testRun_package() 171 EasyMock.expect(mMockRepo.getTestPackageDefsByName()).andReturn(nameMap); in testRun_resume() 201 EasyMock.expect(mMockRepo.findPackageIdsForTest(className)).andReturn(IDS); in testRun_class() 221 EasyMock.expect(mMockRepo.findPackageIdsForTest(className)).andReturn(IDS); in testRun_test() 237 EasyMock.expect(mMockPlan.getTestIds()).andReturn(IDS); in testRun_excludedPackage() 252 EasyMock.expect(mMockPlan.getTestIds()).andReturn(IDS); in testRun_continueSession() 254 EasyMock.expect(mMockPlan.getTestFilter(ID)).andReturn(filter); in testRun_continueSession() [all …]
|
D | DeqpTestRunnerTest.java | 181 EasyMock.expect(mockDevice.getProperty("ro.opengles.version")) in testGlesVersion() 187 EasyMock.expect(mockDevice.uninstallPackage(EasyMock.eq(DEQP_ONDEVICE_PKG))) in testGlesVersion() 189 EasyMock.expect(mockDevice.installPackage(EasyMock.<File>anyObject(), in testGlesVersion() 208 EasyMock.expect(mockDevice.uninstallPackage(EasyMock.eq(DEQP_ONDEVICE_PKG))) in testGlesVersion() 328 EasyMock.expect(mockDevice.getProperty("ro.opengles.version")) in testResultCode() 331 EasyMock.expect(mockDevice.uninstallPackage(EasyMock.eq(DEQP_ONDEVICE_PKG))).andReturn("") in testResultCode() 334 EasyMock.expect(mockDevice.installPackage(EasyMock.<File>anyObject(), in testResultCode() 370 EasyMock.expect(mockDevice.uninstallPackage(EasyMock.eq(DEQP_ONDEVICE_PKG))).andReturn("") in testResultCode() 499 EasyMock.expect(mockDevice.getProperty("ro.opengles.version")) in testRun_multipleTests() 502 EasyMock.expect(mockDevice.uninstallPackage(EasyMock.eq(DEQP_ONDEVICE_PKG))).andReturn("") in testRun_multipleTests() [all …]
|
/cts/tests/tests/mediastress/preconditions/tests/src/android/mediastress/cts/preconditions/ |
D | MediaPreparerTest.java | 52 EasyMock.expect(mMockDevice.getMountPoint(IDevice.MNT_EXTERNAL_STORAGE)).andReturn( in testSetMountPoint() 63 EasyMock.expect(mMockDevice.doesFileExist("null176x144")).andReturn(true).anyTimes(); in testCopyMediaFiles() 64 EasyMock.expect(mMockDevice.doesFileExist("null480x360")).andReturn(true).anyTimes(); in testCopyMediaFiles() 72 EasyMock.expect(mMockDevice.doesFileExist("null176x144")).andReturn(true).anyTimes(); in testMediaFilesExistOnDeviceTrue() 73 EasyMock.expect(mMockDevice.doesFileExist("null480x360")).andReturn(true).anyTimes(); in testMediaFilesExistOnDeviceTrue() 81 EasyMock.expect(mMockDevice.doesFileExist("null176x144")).andReturn(false).anyTimes(); in testMediaFilesExistOnDeviceFalse() 82 EasyMock.expect(mMockDevice.doesFileExist("null480x360")).andReturn(true).anyTimes(); in testMediaFilesExistOnDeviceFalse() 94 EasyMock.expect(mMockDevice.executeShellCommand( in testGetMaxVideoPlaybackResolutionFound() 103 EasyMock.expect(mMockDevice.executeShellCommand( in testGetMaxVideoPlaybackResolutionNotFound()
|
/cts/common/host-side/tradefed/tests/src/com/android/compatibility/common/tradefed/targetprep/ |
D | SettingsPreparerTest.java | 53 EasyMock.expect(mMockDevice.executeShellCommand(SHELL_CMD_GET)).andReturn("\n3\n").once(); in testCorrectOneExpected() 60 EasyMock.expect(mMockDevice.executeShellCommand(SHELL_CMD_GET)).andReturn("\n3\n").once(); in testCorrectManyExpected() 70 EasyMock.expect(mMockDevice.executeShellCommand(SHELL_CMD_GET)).andReturn("\n0\n").once(); in testIncorrectOneExpected() 82 EasyMock.expect(mMockDevice.executeShellCommand(SHELL_CMD_GET)).andReturn("\n0\n").once(); in testIncorrectManyExpected() 97 EasyMock.expect(mMockDevice.executeShellCommand(SHELL_CMD_PUT_7)).andReturn("\n"); in testCommandRun() 104 EasyMock.expect(mMockDevice.executeShellCommand(SHELL_CMD_PUT_8)).andReturn("\n"); in testCommandRunWrongSetValue() 117 EasyMock.expect(mMockDevice.executeShellCommand(SHELL_CMD_GET)).andReturn("\n0\n").once(); in testIncorrectOneExpectedCommandRun() 118 EasyMock.expect(mMockDevice.executeShellCommand(SHELL_CMD_PUT_7)).andReturn("\n"); in testIncorrectOneExpectedCommandRun()
|
D | PropertyCheckTest.java | 47 EasyMock.expect(mMockDevice.getProperty(PROPERTY)).andReturn(ACTUAL_VALUE).anyTimes(); in setUp()
|
/cts/tests/tests/content/src/android/content/res/cts/ |
D | AssetManagerTest.java | 57 final String expect = "OneTwoThreeFourFiveSixSevenEightNineTen"; in testAssetOperations() local 58 assertContextEquals(expect, inputStream); in testAssetOperations() 61 assertContextEquals(expect, inputStream); in testAssetOperations() 65 assertContextEquals(expect, assetFileDes.createInputStream()); in testAssetOperations() 68 assertContextEquals(expect, assetFileDes.createInputStream()); in testAssetOperations() 71 assertContextEquals(expect, assetFileDes.createInputStream()); in testAssetOperations() 181 private void assertContextEquals(final String expect, final InputStream inputStream) in assertContextEquals() argument 187 assertEquals(expect, result); in assertContextEquals()
|
/cts/tests/fragment/src/android/fragment/cts/ |
D | StrictFragment.java | 64 for (int expect : expected) { in checkState() 65 if (mState == expect) { in checkState()
|
/cts/tools/tradefed-host/tests/src/com/android/cts/tradefed/result/ |
D | CtsXmlResultReporterTest.java | 89 EasyMock.expect(mMockBuild.getDeviceSerial()).andStubReturn(null); in setUp() 90 EasyMock.expect(mMockBuild.getRootDir()).andStubReturn(mBuildDir); in setUp() 96 EasyMock.expect(mMockBuild.getBuildAttributes()).andStubReturn(attributes); in setUp() 97 EasyMock.expect(mMockBuild.getBuildId()).andStubReturn(""); in setUp()
|
/cts/libs/json/src/com/android/json/stream/ |
D | JsonReader.java | 256 expect(JsonToken.BEGIN_ARRAY); in beginArray() 264 expect(JsonToken.END_ARRAY); in endArray() 272 expect(JsonToken.BEGIN_OBJECT); in beginObject() 280 expect(JsonToken.END_OBJECT); in endObject() 286 private void expect(JsonToken expected) throws IOException { in expect() method in JsonReader
|
/cts/tools/tradefed-host/tests/src/com/android/cts/tradefed/device/ |
D | DeviceInfoCollectorFuncTest.java | 55 EasyMock.expect(mMockBuildInfo.getBuildAttributes()).andStubReturn(attributes); in setUp()
|
/cts/tests/tests/renderscript/src/android/renderscript/cts/refocus/ |
D | luts_for_speedup_f32.rsh | 32 // We expect back_focal_depth <= front_focal_depth.
|
/cts/tests/app/src/android/app/cts/ |
D | AlertDialog_BuilderTest.java | 380 final CharSequence[] expect = mContext.getResources().getTextArray( in testSetItemsWithParamCharSequence() local 386 mBuilder.setItems(expect, mOnClickListener); in testSetItemsWithParamCharSequence() 392 assertEquals(expect[0], mListView.getItemAtPosition(0)); in testSetItemsWithParamCharSequence()
|
/cts/tools/dex-tools/dex/ |
D | classes0.out.dex | 67689 void expect(
|