Home
last modified time | relevance | path

Searched refs:null (Results 1 – 25 of 160) sorted by relevance

1234567

/test/suite_harness/common/host-side/tradefed/tests/src/com/android/compatibility/common/tradefed/testtype/
DSubPlanTest.java60 subPlan.addIncludeFilter(new TestFilter(null, MODULE_B, null).toString()); in testSerialization()
61 subPlan.addExcludeFilter(new TestFilter(null, MODULE_B, TEST_1).toString()); in testSerialization()
63 excludeFilterSet.add(new TestFilter(null, MODULE_B, TEST_2).toString()); in testSerialization()
64 excludeFilterSet.add(new TestFilter(null, MODULE_B, TEST_3).toString()); in testSerialization()
87 entries.add(generateEntryXml(null, null, in testParsing()
89 entries.add(generateEntryXml(null, MODULE_B, null, true)); in testParsing()
90 entries.add(generateEntryXml(null, null, in testParsing()
91 new TestFilter(null, MODULE_B, TEST_1).toString(), false)); in testParsing()
92 entries.add(generateEntryXml(null, null, in testParsing()
93 new TestFilter(null, MODULE_B, TEST_2).toString(), false)); in testParsing()
[all …]
/test/suite_harness/common/host-side/tradefed/tests/src/com/android/compatibility/common/tradefed/util/
DRetryFilterHelperTest.java42 RetryFilterHelper helper = new RetryFilterHelper(null, 0); in testSetAllOptionsFrom()
43 RetryFilterHelper otherObj = new RetryFilterHelper(null, 0, TEST_STRING, in testSetAllOptionsFrom()
44 new HashSet<String>(), new HashSet<String>(), null ,null, null, null); in testSetAllOptionsFrom()
58 RetryFilterHelper helper = new RetryFilterHelper(null, 0, TEST_STRING, include, exclude, in testClearOptions()
61 assertTrue(helper.mSubPlan == null); in testClearOptions()
64 assertTrue(helper.mAbiName == null); in testClearOptions()
65 assertTrue(helper.mModuleName == null); in testClearOptions()
66 assertTrue(helper.mTestName == null); in testClearOptions()
67 assertTrue(helper.mRetryType == null); in testClearOptions()
/test/suite_harness/common/host-side/tradefed/src/com/android/compatibility/common/tradefed/build/
DCompatibilityBuildProvider.java70 private String mBranch = null;
75 private String mBuildId = null;
78 private String mBuildFlavor = null;
84 private String mBuildFlavorPrefix = null;
87 private String mBuildTarget = null;
103 private String mUrlSuiteNameOverride = null;
121 if (mTestTag != null) { in injectBuildAttributes()
140 String version = null; in getBuild()
141 if (mBuildId != null) { in getBuild()
145 if (version == null) { in getBuild()
[all …]
DCompatibilityBuildHelper.java126 setBusinessLogicHostFile(hostFile, null); in setBusinessLogicHostFile()
136 String key = (moduleId == null) ? "" : moduleId; in setBusinessLogicHostFile()
164 return hasBusinessLogicHostFile(null); in hasBusinessLogicHostFile()
175 String key = (moduleId == null) ? "" : moduleId; in hasBusinessLogicHostFile()
176 return mBuildInfo.getFile(BUSINESS_LOGIC_HOST_FILE + key) != null; in hasBusinessLogicHostFile()
184 return getBusinessLogicHostFile(null); in getBusinessLogicHostFile()
195 String key = (moduleId == null) ? "" : moduleId; in getBusinessLogicHostFile()
204 File dir = null; in getRootDir()
208 if (dir == null || !dir.exists()) { in getRootDir()
210 if (rootDir != null) { in getRootDir()
[all …]
/test/suite_harness/common/host-side/tradefed/src/com/android/compatibility/common/tradefed/targetprep/
DSettingsPreparer.java48 protected String mSettingName = null;
54 protected SettingType mSettingType = null;
57 protected String mSetValue = null;
63 protected String mFailureMessage = null;
69 if (mSettingName == null) { in run()
74 if (mSettingType == null) { in run()
80 if (mSetValue == null && mExpectedSettingValues.isEmpty()) { in run()
87 if (testUser != null && !testUser.isEmpty() && mSettingType != SettingType.GLOBAL) { in run()
96 (mSetValue != null) in run()
103 if (mSetValue != null && !mExpectedSettingValues.isEmpty()) { in run()
[all …]
DBuildFingerPrintPreparer.java40 private String mExpectedFingerprint = null;
43 private String mExpectedVendorFingerprint = null;
46 private String mUnalteredFingerprint = null;
55 if (mExpectedFingerprint == null) { in setUp()
61 if (mUnalteredFingerprint != null) { in setUp()
72 if (mExpectedVendorFingerprint != null) { in setUp()
76 if (currentBuildVendorFingerprint == null) { in setUp()
DDynamicConfigPusher.java89 private String mModuleName = null;
113 private String mResourceFileName = null;
120 private String mDynamicConfigName = null;
124 private IInvocationContext mModuleContext = null;
156 (mModuleContext != null) ? getSuiteName() : TestSuiteInfo.getInstance().getName(); in setUp()
158 if (mModuleName == null) { in setUp()
161 if (buildHelper.getDynamicConfigFiles().get(mModuleName) != null) { in setUp()
166 if (mVersion == null) { in setUp()
204 if (mDeviceFilePushed != null && !(e instanceof DeviceNotAvailableException) && mCleanup) { in tearDown()
216 String suiteName = null; in getSuiteName()
[all …]
DPropertyCheck.java39 private String mPropertyName = null;
42 private String mExpectedPropertyValue = null;
60 if (mPropertyValueIsSetOnly && mExpectedPropertyValue != null) { in run()
63 } else if (!mPropertyValueIsSetOnly && mExpectedPropertyValue == null) { in run()
68 if (propertyValue == null || propertyValue.equals("")) { in run()
83 if (propertyValue == null) { in run()
DBusinessLogicPreparer.java142 private String mModuleName = null;
145 private String mModuleVersion = null;
159 private IAbi mAbi = null;
160 private IInvocationContext mModuleContext = null;
193 if (mModuleName == null) { in setUp()
197 if (mModuleVersion == null) { in setUp()
203 String businessLogicString = null; in setUp()
207 || (businessLogicString = readFromCache(baseUrl, requestParams)) == null) { in setUp()
211 Exception connectIssue = null; in setUp()
212 while (businessLogicString == null in setUp()
[all …]
/test/suite_harness/common/host-side/tradefed/src/com/android/compatibility/common/tradefed/util/
DRetryFilterHelper.java51 protected String mAbiName = null;
52 protected String mModuleName = null;
53 protected String mTestName = null;
54 protected RetryType mRetryType = null;
57 private CompatibilityBuildHelper mBuild = null;
107 if (oldBuildFingerprint == null) { in validateBuildFingerprint()
138 mSubPlan = null; in clearOptions()
141 mModuleName = null; in clearOptions()
142 mTestName = null; in clearOptions()
143 mRetryType = null; in clearOptions()
[all …]
/test/mlts/benchmark/src/com/android/nn/benchmark/core/
DBenchmarkResult.java77 if (validationErrors == null) { in BenchmarkResult()
83 if (evaluatorKeys == null) { in BenchmarkResult()
88 if (evaluatorResults == null) { in BenchmarkResult()
180 return mLatencyCompileWithoutCache == null ? 0.0f in getCompileWithoutCacheMeanTimeSec()
185 return mLatencySaveToCache == null ? 0.0f : mLatencySaveToCache.getMeanTimeSec(); in getSaveToCacheMeanTimeSec()
189 return mLatencyPrepareFromCache == null ? 0.0f : mLatencyPrepareFromCache.getMeanTimeSec(); in getPrepareFromCacheMeanTimeSec()
226 if (mLatencyCompileWithoutCache != null) { in toString()
230 if (mLatencySaveToCache != null) { in toString()
233 if (mLatencyPrepareFromCache != null) { in toString()
248 if (!hasBenchmarkError()) return null; in getBenchmarkError()
[all …]
DTestModelsListLoader.java71 EvaluatorConfig evaluator = null; in parseJSONModelsList()
77 : null, in parseJSONModelsList()
80 : null); in parseJSONModelsList()
92 InferenceInOutSequence.FromAssets[] inputOutputs = null; in parseJSONModelsList()
101 String[] outputs = null; in parseJSONModelsList()
102 String output = jsonInputOutput.optString("output", null); in parseJSONModelsList()
103 if (output != null) { in parseJSONModelsList()
107 if (outputArray != null) { in parseJSONModelsList()
120 InferenceInOutSequence.FromDataset[] datasets = null; in parseJSONModelsList()
/test/suite_harness/common/host-side/util/tests/src/com/android/compatibility/common/util/
DPropertyUtilTest.java57 when(mMockDevice.getProperty(FIRST_API_LEVEL)).thenReturn(null); in testGetFirstApiLevelFromSdkVersion()
72 when(mMockDevice.getProperty(BOARD_API_LEVEL)).thenReturn(null); in testGetVendorApiLevelFromBoardFirstApiLevel()
80 when(mMockDevice.getProperty(BOARD_API_LEVEL)).thenReturn(null); in testGetVendorApiLevelFromVndkVersion()
81 when(mMockDevice.getProperty(BOARD_FIRST_API_LEVEL)).thenReturn(null); in testGetVendorApiLevelFromVndkVersion()
89 when(mMockDevice.getProperty(BOARD_API_LEVEL)).thenReturn(null); in testGetVendorApiLevelCurrent()
90 when(mMockDevice.getProperty(BOARD_FIRST_API_LEVEL)).thenReturn(null); in testGetVendorApiLevelCurrent()
98 when(mMockDevice.getProperty(BOARD_API_LEVEL)).thenReturn(null); in testIsVendorApiLevelNewerThan()
113 when(mMockDevice.getProperty(VENDOR_API_LEVEL)).thenReturn(null); in testGetVsrApiLevelEmptyBoardVersions()
114 when(mMockDevice.getProperty(BOARD_API_LEVEL)).thenReturn(null); in testGetVsrApiLevelEmptyBoardVersions()
115 when(mMockDevice.getProperty(BOARD_FIRST_API_LEVEL)).thenReturn(null); in testGetVsrApiLevelEmptyBoardVersions()
[all …]
DModuleResultTest.java49 mResult = null; in tearDown()
73 testCase.getOrCreateResult(METHOD_3).passed(null); in testCountResults()
81 caseResult.getOrCreateResult(METHOD_3).passed(null); in testMergeModule()
85 caseResult2.getOrCreateResult(METHOD_3).passed(null); in testMergeModule()
94 otherCaseResult.getOrCreateResult(METHOD_1).passed(null); in testMergeModule()
95 otherCaseResult.getOrCreateResult(METHOD_2).passed(null); in testMergeModule()
96 otherCaseResult.getOrCreateResult(METHOD_3).passed(null); in testMergeModule()
/test/suite_harness/common/host-side/tradefed/src/com/android/compatibility/common/tradefed/result/suite/
DCertificationSuiteResultReporter.java138 private File mResultDir = null;
140 private File mLogDir = null;
171 if (mBuildHelper == null) { in invocationStarted()
174 if (mResultDir == null) { in invocationStarted()
194 if (mTestLogSaver == null) { in testLog()
195 LogFile info = new LogFile(name, null, type); in testLog()
201 File logFile = null; in testLog()
260 if (mReferenceUrl == null && summary.getSummary().getString() != null) { in putSummary()
281 if (mResultDir != null) { in initializeResultDirectories()
288 if (mResultDir == null) { in initializeResultDirectories()
[all …]
DCertificationReportCreator.java106 if (mReferenceUrl == null && summary.getSummary().getString() != null) { in putSummary()
123 if (mBuildHelper == null) { in invocationStarted()
134 if (mReportFile == null) { in invocationEnded()
144 File report = null; in invocationEnded()
145 File failureReport = null; in invocationEnded()
157 if (report != null) { in invocationEnded()
182 File zipResultFile = null; in zipResults()
196 if (mResultServer != null && !mResultServer.trim().isEmpty() && !mDisableResultPosting) { in uploadResult()
214 FileInputStream fis = null; in saveLog()
215 LogFile logFile = null; in saveLog()
[all …]
DPreviousResultLoader.java82 private Integer mRetrySessionId = null;
91 private String mProtoPath = null;
110 IBuildInfo info = null; in init()
117 mResultDir = null; in init()
150 Context contextProto = null; in init()
161 if (runHistoryJSON != null) { in init()
178 if (mExpectedFingerprint == null) { in init()
187 if (mExpectedVendorFingerprint == null) { in init()
217 if (command == null) { in getCommandLine()
225 if (mProtoPath != null) { in loadPreviousResults()
[all …]
DCompatibilityProtoResultReporter.java44 private File mResultDir = null;
46 private File mBaseProtoFile = null;
51 if (mBuildHelper == null) { in processStartInvocation()
61 File protoDir = null; in getProtoResultDirectory()
64 if (resultDir != null) { in getProtoResultDirectory()
DTestMetricsJsonResultReporter.java74 private String mReportLogName = null;
105 if (mContext == null) { in getPrimaryBuildInfo()
106 return null; in getPrimaryBuildInfo()
122 if (mModuleContext == null) { in getAbiInfo()
127 if (abis == null || abis.isEmpty()) { in getAbiInfo()
148 if (mBuildHelper == null) { in initializeReporterConfig()
154 if (mReportLogName == null) { in initializeReporterConfig()
167 if (mReportTestNameMap != null && mReportTestNameMap.containsKey(classMethodName)) { in writeTestMetrics()
217 if (mReportMetricKeyMap == null || mReportMetricKeyMap.isEmpty()) { in writeMetricsForGivenKeys()
223 if (!metrics.containsKey(key) || metrics.get(key) == null) { in writeMetricsForGivenKeys()
[all …]
DPreviousSessionFileCopier.java52 private File mPreviousSessionDir = null;
61 if (mBuildHelper == null) { in invocationStarted()
68 if (mPreviousSessionDir == null) { in invocationEnded()
118 File resultDir = null; in getResultDirectory()
121 if (resultDir != null) { in getResultDirectory()
127 if (resultDir == null) { in getResultDirectory()
/test/suite_harness/common/host-side/util/src/com/android/compatibility/common/util/
DTestFilter.java47 String abi = null, name = null, test = null; in createFrom()
98 if (mAbi != null) { in toString()
102 if (mName != null) { in toString()
105 if (mTest != null) { in toString()
/test/suite_harness/common/host-side/tradefed/src/com/android/compatibility/common/tradefed/result/
DSubPlanHelper.java81 private String mSubPlanName = null;
85 private Integer mSessionId = null;
106 private String mModuleName = null;
111 private String mTestName = null;
116 private String mAbiName = null;
123 File mSubPlanFile = null;
124 IInvocationResult mResult = null;
147 InputStream subPlanInputStream = null; in getSubPlanByName()
192 if (subPlan != null) { in createAndSerializeSubPlan()
203 return null; in createAndSerializeSubPlan()
[all …]
/test/catbox/report/src/com/android/catbox/result/
DJsonResultReporter.java74 private String mReportLogName = null;
121 if (mContext == null) { in getPrimaryBuildInfo()
122 return null; in getPrimaryBuildInfo()
138 if (mModuleContext == null) { in getAbiInfo()
143 if (abis == null || abis.isEmpty()) { in getAbiInfo()
170 if (mBuildHelper == null) { in initializeReporterConfig()
176 if (mReportLogName == null) { in initializeReporterConfig()
181 if (mTestMetricsUtil == null) { in initializeReporterConfig()
199 if (mReportTestNameMap != null && mReportTestNameMap.containsKey(classMethodName)) { in writeTestMetrics()
248 if (mReportMetricKeyMap == null || mReportMetricKeyMap.isEmpty()) { in writeMetricsForGivenKeys()
[all …]
/test/cts-root/hostsidetests/rollback/src/com/android/cts_root/rollback/host/
DRollbackManagerHostTest.java431 assertThat(mLogger).eventOccurred(ROLLBACK_INITIATE, null, REASON_APP_CRASH, TESTAPP_A); in testBadApkOnly()
432 assertThat(mLogger).eventOccurred(ROLLBACK_BOOT_TRIGGERED, null, null, null); in testBadApkOnly()
433 assertThat(mLogger).eventOccurred(ROLLBACK_SUCCESS, null, null, null); in testBadApkOnly()
462 assertThat(mLogger).eventOccurred(ROLLBACK_INITIATE, null, REASON_NATIVE_CRASH, null); in testNativeWatchdogTriggersRollback()
463 assertThat(mLogger).eventOccurred(ROLLBACK_BOOT_TRIGGERED, null, null, null); in testNativeWatchdogTriggersRollback()
464 assertThat(mLogger).eventOccurred(ROLLBACK_SUCCESS, null, null, null); in testNativeWatchdogTriggersRollback()
499 assertThat(mLogger).eventOccurred(ROLLBACK_INITIATE, null, REASON_NATIVE_CRASH, null); in testNativeWatchdogTriggersRollbackForAll()
500 assertThat(mLogger).eventOccurred(ROLLBACK_BOOT_TRIGGERED, null, null, null); in testNativeWatchdogTriggersRollbackForAll()
501 assertThat(mLogger).eventOccurred(ROLLBACK_SUCCESS, null, null, null); in testNativeWatchdogTriggersRollbackForAll()
506 if (f == null) { in getSnapshotDirectories()
/test/mlts/benchmark/src/com/android/nn/crashtest/app/
DCrashTestStatus.java44 mTestResult = new AtomicReference<>(null);
58 if (mTestResult.compareAndSet(null, testResult)) { in handleCompletionNotification()
59 if (reason != null) { in handleCompletionNotification()
77 handleCompletionNotification(TestResult.CRASH, null); in testCrashed()
82 handleCompletionNotification(TestResult.SUCCESS, null); in testSucceeded()

1234567