/tools/tradefederation/core/tests/src/com/android/tradefed/device/metric/ |
D | BaseDeviceMetricCollectorTest.java | 83 Mockito.verify(mMockListener, times(1)).invocationStarted(Mockito.any()); in testInitAndForwarding() 84 Mockito.verify(mMockListener, times(1)).testRunStarted("testRun", 1); in testInitAndForwarding() 85 Mockito.verify(mMockListener, times(1)).testStarted(Mockito.eq(test), Mockito.anyLong()); in testInitAndForwarding() 86 Mockito.verify(mMockListener, times(1)) in testInitAndForwarding() 88 Mockito.verify(mMockListener, times(1)).testFailed(test, "trace"); in testInitAndForwarding() 89 Mockito.verify(mMockListener, times(1)).testAssumptionFailure(test, "trace"); in testInitAndForwarding() 90 Mockito.verify(mMockListener, times(1)).testIgnored(test); in testInitAndForwarding() 91 Mockito.verify(mMockListener, times(1)) in testInitAndForwarding() 96 Mockito.verify(mMockListener, times(1)).testRunFailed("test run failed"); in testInitAndForwarding() 97 Mockito.verify(mMockListener, times(1)).testRunStopped(0L); in testInitAndForwarding() [all …]
|
/tools/tradefederation/core/tests/src/com/android/tradefed/targetprep/ |
D | DeviceSetupTest.java | 88 EasyMock.verify(mMockDevice); in testSetup() 112 EasyMock.verify(mMockDevice); in testSetup_airplane_mode_on() 126 EasyMock.verify(mMockDevice); in testSetup_airplane_mode_off() 139 EasyMock.verify(mMockDevice); in testSetup_data_on() 152 EasyMock.verify(mMockDevice); in testSetup_data_off() 164 EasyMock.verify(mMockDevice); in testSetup_cell_on() 176 EasyMock.verify(mMockDevice); in testSetup_cell_off() 188 EasyMock.verify(mMockDevice); in testSetup_cell_auto_setting_on() 200 EasyMock.verify(mMockDevice); in testSetup_cell_auto_setting_off() 213 EasyMock.verify(mMockDevice); in testSetup_wifi_on() [all …]
|
D | InstallAllTestZipAppsSetupTest.java | 108 EasyMock.verify(mMockBuildInfo); in testGetZipFile() 119 EasyMock.verify(mMockBuildInfo); in testGetZipFileDoesntExist() 131 EasyMock.verify(mMockBuildInfo, mMockTestDevice); in testNullTestZipName() 152 EasyMock.verify(mMockBuildInfo, mMockTestDevice); in testSuccess() 172 EasyMock.verify(mMockBuildInfo, mMockTestDevice); in testSuccessNoTearDown() 194 EasyMock.verify(mMockBuildInfo, mMockTestDevice); in testInstallFailure() 209 EasyMock.verify(mMockBuildInfo, mMockTestDevice); in testInstallFailureNoStop() 219 EasyMock.verify(mMockBuildInfo, mMockTestDevice); in testDisable() 243 EasyMock.verify(mMockBuildInfo, mMockTestDevice); in testUnzipFail() 270 EasyMock.verify(mMockBuildInfo, mMockTestDevice); in testAaptFail()
|
D | PushFilePreparerTest.java | 59 EasyMock.verify(mMockDevice); in testNoop() 74 EasyMock.verify(mMockDevice); in testLocalNoExist() 93 EasyMock.verify(mMockDevice); in testRemoteNoExist() 113 EasyMock.verify(mMockDevice); in testWarnOnFailure() 128 EasyMock.verify(buildInfo); in testResolveRelativeFilePath_noDeviceBuildInfo() 156 EasyMock.verify(buildInfo); in testResolveRelativeFilePath_withDeviceBuildInfo()
|
D | FastbootDeviceFlasherTest.java | 140 EasyMock.verify(mMockDevice, mMockRunUtil); in testGetImageVersion() 157 EasyMock.verify(mMockDevice, mMockRunUtil); in testGetCurrentSlot_fastboot() 169 EasyMock.verify(mMockDevice, mMockRunUtil); in testGetCurrentSlot_adb() 184 EasyMock.verify(mMockDevice, mMockRunUtil); in testGetCurrentSlot_null() 211 EasyMock.verify(mMockDevice, mMockRunUtil); in testRetryGetVersionCommand() 236 EasyMock.verify(mockDevice, mMockRunUtil); in testFlashBaseband_noVersion() 258 EasyMock.verify(mMockDevice, mockZipInstaller); in testFlashUserData_testsZip() 325 EasyMock.verify(mMockDevice); in testWipeCache_exists() 348 EasyMock.verify(mMockDevice); in testWipeCache_not_exists() 369 EasyMock.verify(mMockDevice); in testWipeCache_not_exists_error() [all …]
|
/tools/tradefederation/core/tests/src/com/android/tradefed/invoker/ |
D | InvocationExecutionTest.java | 90 EasyMock.verify(cleaner); in testCleanUp() 109 EasyMock.verify(cleaner); in testCleanUp_disabled() 128 EasyMock.verify(cleaner); in testCleanUp_tearDownDisabled() 218 inOrder.verify(stub1).isDisabled(); in testDoSetup() 219 inOrder.verify(stub1).setUp(mContext); in testDoSetup() 220 inOrder.verify(stub2).isDisabled(); in testDoSetup() 221 inOrder.verify(stub2).setUp(mContext); in testDoSetup() 223 inOrder.verify(cleaner).setUp(Mockito.any(), Mockito.any()); in testDoSetup() 225 inOrder.verify(stub3).isDisabled(); in testDoSetup() 226 inOrder.verify(stub3).setUp(mContext); in testDoSetup() [all …]
|
/tools/tradefederation/core/tests/src/com/android/tradefed/util/ |
D | QuotationAwareTokenizerTest.java | 28 private static void verify(String input, String[] expected, String delimiter) in verify() method in QuotationAwareTokenizerTest 47 private static void verify(String input, String[] expected) throws IllegalArgumentException { in verify() method in QuotationAwareTokenizerTest 48 verify(input, expected, " "); in verify() 57 verify(input, expected); in testTokenizeLine_simple() 70 verify(input, expected); in testTokenizeLine_whitespace() 79 verify(input, expected, ","); in testTokenizeLine_comma() 88 verify(input, expected, ","); in testTokenizeLine_commaAndQuote() 97 verify(input, expected, ","); in testTokenizeLine_commaAndWhitespace() 115 verify(input, expected); in testTokenizeLine_escapedQuotation()
|
D | AppVersionFetcherTest.java | 53 EasyMock.verify(mMockDevice); in testFetchVersionCode_valid() 64 EasyMock.verify(mMockDevice); in testFetchVersionName_valid() 77 EasyMock.verify(mMockDevice); in testFetchVersionCode_validMultipleLines() 88 EasyMock.verify(mMockDevice); in testFetchVersionName_validMultipleLines() 103 EasyMock.verify(mMockDevice); in testFetchVersionCode_invalidResponse() 118 EasyMock.verify(mMockDevice); in testFetchVersionName_invalidResponse()
|
D | MetricsXmlParserTest.java | 24 import static org.mockito.Mockito.verify; 108 verify(mMetrics).setNumTests(3); in testSimpleParse() 109 verify(mMetrics).addRunMetric("time", "5"); in testSimpleParse() 110 verify(mMetrics, times(0)).addTestMetric(any(), anyString(), anyString()); in testSimpleParse() 143 verify(mMetrics).setNumTests(2); in testParse() 144 verify(mMetrics).addRunMetric("metric3", "8.8"); in testParse() 145 verify(mMetrics).addTestMetric(testId0, "metric1", "1.1"); in testParse() 146 verify(mMetrics).addTestMetric(testId1, "metric2", "5.5"); in testParse() 179 verify(mMetrics, times(0)).addRunMetric("metric3", "8.8"); in testParseBlacklist() 180 verify(mMetrics, times(0)).addTestMetric(testId0, "metric1", "1.1"); in testParseBlacklist() [all …]
|
/tools/tradefederation/core/tests/src/com/android/tradefed/testtype/ |
D | InstrumentationTestTest.java | 29 import static org.mockito.Mockito.verify; 152 inOrder.verify(mInstrumentationTest).setRunnerArgs(runner.capture()); in testRun() 153 inOrder.verify(mMockTestDevice, times(2)) in testRun() 156 inOrder.verify(mMockListener).testRunStarted(TEST_PACKAGE_VALUE, 2); in testRun() 157 inOrder.verify(mMockListener).testStarted(eq(TEST1), anyLong()); in testRun() 158 inOrder.verify(mMockListener).testEnded(eq(TEST1), anyLong(), eq(EMPTY_STRING_MAP)); in testRun() 159 inOrder.verify(mMockListener).testStarted(eq(TEST2), anyLong()); in testRun() 160 inOrder.verify(mMockListener).testEnded(eq(TEST2), anyLong(), eq(EMPTY_STRING_MAP)); in testRun() 161 inOrder.verify(mMockListener).testRunEnded(1, EMPTY_STRING_MAP); in testRun() 324 inOrder.verify(mMockListener).testRunStarted(TEST_PACKAGE_VALUE, 2); in testRun_rerun() [all …]
|
/tools/apksig/src/test/java/com/android/apksig/ |
D | ApkVerifierTest.java | 64 assertVerified(verify("original.apk")); in testOriginalAccepted() 373 assertVerified(verify("v1-with-apk-sig-block-but-without-apk-sig-scheme-v2-block.apk")); in testNoApkSignatureSchemeBlockRejected() 381 verify("v2-only-truncated-cd.apk"); in testTruncatedZipCentralDirectoryRejected() 444 assertVerified(verify("two-signers.apk")); in testTwoSignersAccepted() 445 assertVerified(verify("v1-only-two-signers.apk")); in testTwoSignersAccepted() 480 ApkVerifier.Result result = verify("v1-only-pkcs7-cert-bag-first-cert-not-used.apk"); in testCorrectCertUsedFromPkcs7SignedDataCertsSet() 505 ApkVerifier.Result result = verify("v1-only-with-rsa-1024-cert-not-der.apk"); in testV1SchemeSignatureCertNotReencoded() 559 ApkVerifier.Result result = verify("v1-only-with-rsa-1024-cert-not-der2.apk"); in testV1SchemeSignatureCertNotReencoded2() 572 assertVerified(verify("v1-only-max-sized-eocd-comment.apk")); in testMaxSizedZipEocdCommentAccepted() 604 assertVerified(verify("targetSandboxVersion-2.apk")); in testTargetSandboxVersion2AndHigher() [all …]
|
/tools/apksig/src/apksigner/java/com/android/apksigner/ |
D | help_verify.txt | 1 USAGE: apksigner verify [options] apk 3 This checks whether the provided APK will verify on Android. By default, this 4 checks whether the APK will verify on all Android platform versions supported 6 --min-sdk-version and/or --max-sdk-version to verify the APK against a custom 25 --in APK file to verify. This is an alternative to specifying 33 1. Check whether the APK's signatures are expected to verify on all Android 35 $ apksigner verify app.apk 37 2. Check whether the APK's signatures are expected to verify on Android 39 $ apksigner verify --min-sdk-version 15 app.apk
|
D | help.txt | 7 apksigner verify --verbose app.apk 10 signatures of APK files will verify on Android devices. 17 verify Check whether the provided APK is expected to verify on
|
/tools/tradefederation/core/tests/src/com/android/tradefed/command/remote/ |
D | RemoteManagerTest.java | 21 import static org.mockito.Mockito.verify; 105 verify(mMockScheduler).handoverShutdown(5555); in testProcessClientOperations_initHandover() 121 verify(mMockScheduler).addCommand(Mockito.any(), Mockito.eq(5l)); in testProcessClientOperations_addCommand() 137 verify(mMockScheduler).addCommand(Mockito.any(), Mockito.eq(5l)); in testProcessClientOperations_addCommand_fail() 158 verify(mMockScheduler).addCommand(Mockito.any(), Mockito.eq(5l)); in testProcessClientOperations_addCommand_config() 172 verify(mMockDeviceManager).forceAllocateDevice(Mockito.eq("testserial")); in testProcessClientOperations_allocateDevice_fail() 189 verify(mMockDeviceManager).forceAllocateDevice(Mockito.eq("testserial")); in testProcessClientOperations_allocateDevice() 190 verify(mMockDeviceTracker).allocateDevice(Mockito.any()); in testProcessClientOperations_allocateDevice() 206 verify(mMockDeviceTracker).freeDevice(Mockito.eq("testserial")); in testProcessClientOperations_processFree_notFound() 208 verify(mMockDeviceManager, Mockito.times(0)).freeDevice(Mockito.any(), Mockito.any()); in testProcessClientOperations_processFree_notFound() [all …]
|
/tools/tradefederation/core/tests/src/com/android/tradefed/invoker/shard/ |
D | TestsPoolPollerTest.java | 108 Mockito.verify(mListener, Mockito.times(numTests)) in testPollingRun() 110 Mockito.verify(mListener, Mockito.times(numTests)) in testPollingRun() 139 Mockito.verify(mListener, Mockito.times(numTests)) in testRun_runtimeException() 141 Mockito.verify(mListener, Mockito.times(numTests)) in testRun_runtimeException() 170 Mockito.verify(mListener, Mockito.times(numTests)) in testRun_deviceUnresponsive() 172 Mockito.verify(mListener, Mockito.times(numTests)) in testRun_deviceUnresponsive() 208 Mockito.verify(mListener, Mockito.times(0)) in testRun_dnae() 210 Mockito.verify(mListener, Mockito.times(0)) in testRun_dnae() 243 Mockito.verify(mListener, Mockito.times(numTests)) in testRun_dnae_NotLastDevice() 245 Mockito.verify(mListener, Mockito.times(numTests)).testStarted(Mockito.any()); in testRun_dnae_NotLastDevice() [all …]
|
/tools/apkzlib/src/main/java/com/android/tools/build/apkzlib/zip/ |
D | ZipField.java | 190 void verify(@Nonnull ByteBuffer bytes) throws IOException { in verify() method in ZipField 191 verify(bytes, null); in verify() 204 void verify(@Nonnull ByteBuffer bytes, @Nullable VerifyLog verifyLog) throws IOException { in verify() method in ZipField 206 verify(bytes, expected, verifyLog); in verify() 218 void verify(@Nonnull ByteBuffer bytes, long expected) throws IOException { in verify() method in ZipField 219 verify(bytes, expected, null); in verify() 233 void verify( in verify() method in ZipField 272 Verify.verify(size == 4); in write()
|
D | StoredEntry.java | 260 verifyLog.verify( in StoredEntry() 263 verifyLog.verify(cdh.getCrc32() == 0, "Directory has CRC32 = %s.", cdh.getCrc32()); in StoredEntry() 264 verifyLog.verify( in StoredEntry() 275 verifyLog.verify( in StoredEntry() 292 Verify.verify(header.getOffset() >= 0, "Files that are not on disk cannot have the " in StoredEntry() 439 F_LOCAL_SIGNATURE.verify(bytes); in readLocalHeader() 440 F_VERSION_EXTRACT.verify(bytes, compressInfo.getVersionExtract(), verifyLog); in readLocalHeader() 441 F_GP_BIT.verify(bytes, cdh.getGpBit().getValue(), verifyLog); in readLocalHeader() 442 F_METHOD.verify(bytes, compressInfo.getMethod().methodCode, verifyLog); in readLocalHeader() 448 F_LAST_MOD_TIME.verify(bytes, cdh.getLastModTime(), verifyLog); in readLocalHeader() [all …]
|
/tools/tradefederation/core/tests/src/com/android/tradefed/command/ |
D | ConsoleTest.java | 56 public void verify() throws Throwable { in verify() method in ConsoleTest.ProxyExceptionHandler 109 mProxyExceptionHandler.verify(); in testRun_withConsole() 110 EasyMock.verify(mMockScheduler); in testRun_withConsole() 142 mProxyExceptionHandler.verify(); in testRun_withConsoleInteractiveHelp() 143 EasyMock.verify(mMockScheduler); in testRun_withConsoleInteractiveHelp() 180 mProxyExceptionHandler.verify(); in testRun_withConsoleInteractive_noHelp() 181 EasyMock.verify(mMockScheduler); in testRun_withConsoleInteractive_noHelp() 209 mProxyExceptionHandler.verify(); in testRun_noConsole() 210 EasyMock.verify(mMockScheduler); in testRun_noConsole() 230 EasyMock.verify(mMockScheduler); in testRunCommand() [all …]
|
D | CommandFileWatcherTest.java | 63 EasyMock.verify(mMockListener); in testImmediateChange() 75 EasyMock.verify(mMockListener); in testNoChange() 91 EasyMock.verify(mMockListener); in testMultipleCmdFiles() 109 EasyMock.verify(mMockListener); in testDependencies() 128 EasyMock.verify(mMockListener); in testMultipleDependencies() 143 EasyMock.verify(mMockListener); in testReplacingWatchedFile()
|
/tools/tradefederation/core/src/com/android/tradefed/command/ |
D | Verify.java | 61 Verify verify = new Verify(); in main() local 62 ArgsOptionParser optionSetter = new ArgsOptionParser(verify); in main() 64 if (verify.isHelpMode()) { in main() 66 System.err.println(ArgsOptionParser.getOptionHelp(false, verify)); in main() 70 if (verify.run()) { in main()
|
/tools/tradefederation/core/tests/src/com/android/tradefed/device/ |
D | WifiHelperTest.java | 106 EasyMock.verify(mMockDevice); in testWaitForIp_failThenPass() 121 EasyMock.verify(mMockDevice); in testStartMonitor() 133 EasyMock.verify(mMockDevice); in testStopMonitor() 145 EasyMock.verify(mMockDevice); in testStopMonitor_nullResult() 156 EasyMock.verify(mMockDevice); in testEnsureDeviceSetup_alternateVersionPattern() 168 EasyMock.verify(mMockDevice); in testEnsureDeviceSetup_lowerVersion() 183 EasyMock.verify(mMockDevice); in testEnsureDeviceSetup_alternateWifiUtilAPKPath() 197 EasyMock.verify(mMockDevice); in testEnsureDeviceSetup_deleteAPK() 209 EasyMock.verify(mMockDevice); in testCleanPackage()
|
D | NativeDeviceTest.java | 318 EasyMock.verify(fakeEntry); in testPullDir_nothingToDo() 388 EasyMock.verify(fakeEntry, fakeFile, fakeDir); in testPullDir() 472 EasyMock.verify(fakeEntry, fakeFile, fakeDir, secondLevelChildren); in testPullDir_pullFail() 686 EasyMock.verify(mMockWifi); in testConnectToWifiNetworkIfNeeded_alreadyConnected() 701 EasyMock.verify(mMockWifi, mMockIDevice); in testConnectToWifiNetwork_success() 721 EasyMock.verify(mMockWifi, mMockIDevice, mMockRunUtil); in testConnectToWifiNetwork_failure() 750 EasyMock.verify(mMockWifi, mMockIDevice); in testConnectToWifiNetwork_maxConnectTime() 751 Mockito.verify(mockClock, Mockito.times(3)).millis(); in testConnectToWifiNetwork_maxConnectTime() 766 EasyMock.verify(mMockWifi, mMockIDevice); in testConnectToWifiNetwork_scanSsid() 780 EasyMock.verify(mMockWifi, mMockIDevice); in testCheckWifiConnection() [all …]
|
D | AndroidDebugBridgeWrapperTest.java | 62 EasyMock.verify(mMockRunUtil); in testAdbVersionParsing() 81 EasyMock.verify(mMockRunUtil); in testAdbVersionParsing_altFormat() 97 EasyMock.verify(mMockRunUtil); in testAdbVersionParse_runFail() 113 EasyMock.verify(mMockRunUtil); in testAdbVersionParsing_partial() 128 EasyMock.verify(mMockRunUtil); in testAdbVersionParsing_parseFail()
|
/tools/apksig/src/main/java/com/android/apksig/internal/util/ |
D | DelegatingX509Certificate.java | 165 public void verify(PublicKey key) throws CertificateException, NoSuchAlgorithmException, in verify() method in DelegatingX509Certificate 167 mDelegate.verify(key); in verify() 171 public void verify(PublicKey key, String sigProvider) in verify() method in DelegatingX509Certificate 174 mDelegate.verify(key, sigProvider); in verify() 213 public void verify(PublicKey key, Provider sigProvider) throws CertificateException, in verify() method in DelegatingX509Certificate 215 mDelegate.verify(key, sigProvider); in verify()
|
/tools/apkzlib/src/main/java/com/android/tools/build/apkzlib/zip/utils/ |
D | LittleEndianUtils.java | 59 Verify.verify(r >= 0); in readUnsigned4Le() 60 Verify.verify(r <= 0x00000000ffffffffL); in readUnsigned4Le() 86 Verify.verify(r >= 0); in readUnsigned2Le() 87 Verify.verify(r <= 0x0000ffff); in readUnsigned2Le()
|