Home
last modified time | relevance | path

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

12345678910>>...28

/tools/tradefederation/core/tests/src/com/android/tradefed/util/
DNullUtilTest.java31 assertEquals(1, NullUtil.countNulls((Object)null)); in testCountNulls()
32 assertEquals(1, NullUtil.countNulls(null, "hi")); in testCountNulls()
33 assertEquals(1, NullUtil.countNulls("hi", null)); in testCountNulls()
35 assertEquals(2, NullUtil.countNulls(null, null)); in testCountNulls()
43 assertEquals(0, NullUtil.countNonNulls((Object)null)); in testCountNonNulls()
46 assertEquals(1, NullUtil.countNonNulls(null, "hi")); in testCountNonNulls()
47 assertEquals(1, NullUtil.countNonNulls("hi", null)); in testCountNonNulls()
57 assertTrue(NullUtil.allNull((Object)null)); in testAllNull()
58 assertTrue(NullUtil.allNull(null, null)); in testAllNull()
61 assertFalse(NullUtil.allNull(1, null, null)); in testAllNull()
[all …]
DPairTest.java32 Pair<Object, Object> p2 = null; in testPairs()
36 p1 = Pair.create(null, null); in testPairs()
37 p2 = Pair.create(null, null); in testPairs()
41 Assert.assertFalse(p1.equals(null)); in testPairs()
44 p1 = Pair.create(null, new Object()); in testPairs()
45 p2 = Pair.create(null, new Object()); in testPairs()
49 p1 = Pair.create(null, obj1); in testPairs()
50 p2 = Pair.create(null, obj1); in testPairs()
/tools/loganalysis/src/com/android/loganalysis/parser/
DGfxInfoParser.java62 String name = null; in parse()
63 Integer pid = null; in parse()
64 Long totalFrames = null; in parse()
65 Long jankyFrames = null; in parse()
66 Integer percentile90 = null; in parse()
67 Integer percentile95 = null; in parse()
68 Integer percentile99 = null; in parse()
80 totalFrames = null; in parse()
81 jankyFrames = null; in parse()
82 percentile90 = null; in parse()
[all …]
DBatteryDischargeStatsInfoParser.java44 Integer minPercent = null; in parse()
45 Integer maxPercent = null; in parse()
46 Integer minProjectionPercent = null; in parse()
47 Integer maxProjectionPercent = null; in parse()
55 if (minPercent == null || percent < minPercent) { in parse()
59 if (maxPercent == null || maxPercent < percent) { in parse()
77 if (minProjectionPercent == null || percent < minProjectionPercent) { in parse()
81 if (maxProjectionPercent == null || maxProjectionPercent < percent) { in parse()
89 if (minPercent == null) { in parse()
90 return null; in parse()
[all …]
DLogcatParser.java99 public Integer mPid = null;
100 public Integer mTid = null;
101 public Date mTime = null;
102 public String mLevel = null;
103 public String mTag = null;
104 public String mLastPreamble = null;
105 public String mProcPreamble = null;
123 private String mYear = null;
125 LogcatItem mLogcat = null;
130 private Date mStartTime = null;
[all …]
DDumpsysPackageStatsParser.java45 String packageName = null; in parse()
46 String versionCode = null; in parse()
47 String versionName = null; in parse()
53 versionCode = null; in parse()
54 versionName = null; in parse()
65 if (packageName != null && versionCode != null) { in parse()
70 packageName = null; in parse()
/tools/tradefederation/core/src/com/android/tradefed/build/
DSdkFolderBuildInfo.java41 if (mSdkBuild != null) { in cleanUp()
44 if (mFolderBuild != null) { in cleanUp()
51 if (mFolderBuild != null) { in getRootDir()
54 return null; in getRootDir()
59 if (mFolderBuild != null) { in setRootDir()
66 if (mSdkBuild != null) { in getSdkDir()
69 return null; in getSdkDir()
74 if (mSdkBuild != null) { in getTestsDir()
77 return null; in getTestsDir()
82 if (mSdkBuild != null) { in setTestsDir()
[all …]
DSdkBuildInfo.java34 private File mTestDir = null;
35 private File mSdkDir = null;
38 System.getProperty("os.name") != null
102 if (mSdkDir != null) { in cleanUp()
109 if (mTestDir != null) { in cleanUp()
112 mSdkDir = null; in cleanUp()
113 mTestDir = null; in cleanUp()
121 File cloneTestDir = null; in clone()
122 if (getTestsDir() != null) { in clone()
127 File cloneSdkDir = null; in clone()
[all …]
/tools/tradefederation/core/src/com/android/tradefed/targetprep/
DFlashingResourcesParser.java105 this(deviceImgZipFile, null); in FlashingResourcesParser()
133 this(infoReader, null); in FlashingResourcesParser()
167 return getRequiredImageVersion(imageVersionKey, null); in getRequiredImageVersion()
180 if (productReqs == null && productName != null) { in getRequiredImageVersion()
183 return getRequiredImageVersion(imageVersionKey, null); in getRequiredImageVersion()
189 if (result != null) { in getRequiredImageVersion()
193 if (result == null && productName != null) { in getRequiredImageVersion()
196 return getRequiredImageVersion(imageVersionKey, null); in getRequiredImageVersion()
200 return null; in getRequiredImageVersion()
209 MultiMap<String, String> boardReqs = mReqs.get(null); in getRequiredBoards()
[all …]
DTestAppInstallSetup.java77 private String mForceAbi = null;
108 private InstallMode mInstallMode = null;
110 private IAbi mAbi = null;
111 private Integer mUserId = null;
112 private Boolean mGrantPermission = null;
114 private List<String> mPackagesInstalled = null;
166 null /* device signing key */); in getLocalPathForFilename()
177 if (mTestFileNames == null || mTestFileNames.size() == 0) { in setUp()
186 if (testAppName == null || testAppName.trim().isEmpty()) { in setUp()
190 if (testAppFile == null) { in setUp()
[all …]
/tools/tradefederation/core/src/com/android/tradefed/util/
DBugreport.java73 if (mBugreport == null) { in getMainFile()
74 return null; in getMainFile()
79 File mainEntry = null; in getMainFile()
84 if (mainEntry == null) { in getMainFile()
86 return null; in getMainFile()
99 return null; in getMainFile()
107 if (mBugreport == null) { in getListOfFiles()
108 return null; in getListOfFiles()
112 return null; in getListOfFiles()
131 if (mBugreport == null || name == null) { in getFileByName()
[all …]
DIEmail.java52 private Collection<String> mToAddrs = null;
53 private Collection<String> mCcAddrs = null;
54 private Collection<String> mBccAddrs = null;
55 private String mSubject = null;
56 private String mBody = null;
57 private String mSender = null;
76 if (mToAddrs == null) { in addTo()
82 if (mCcAddrs == null) { in addCc()
88 if (mBccAddrs == null) { in addBcc()
112 if (contentType == null) throw new NullPointerException(); in setContentType()
DRegexTrie.java58 private V mValue = null;
71 if (pattern == null) { in CompPattern()
107 mValue = null; in clear()
115 return retrieve(strings) != null; in containsKey()
132 if (nextChild == null) { in recursivePut()
164 if (pat == null) { in put()
165 pList.add(null); in put()
185 if (regex == null) { in put()
186 pList.add(null); in put()
203 V wildcardValue = null; in recursiveRetrieve()
[all …]
/tools/tradefederation/core/src/com/android/tradefed/util/keystore/
DJSONFileKeyStoreClient.java34 private File mJsonFile = null;
36 protected JSONObject mJsonKeyStore = null;
43 if (mJsonFile == null) { in JSONFileKeyStoreClient()
67 return mJsonKeyStore != null; in isAvailable()
73 if (mJsonKeyStore == null) { in containsKey()
82 if (key == null) { in fetchKey()
84 return null; in fetchKey()
86 if (mJsonKeyStore == null) { in fetchKey()
88 return null; in fetchKey()
95 return null; in fetchKey()
/tools/apksig/src/apksigner/java/com/android/apksigner/
DApkSignerTool.java117 File outputApk = null; in sign()
118 File inputApk = null; in sign()
132 String optionOriginalForm = null; in sign()
133 while ((optionName = optionsParser.nextOption()) != null) { in sign()
222 signerParams = null; in sign()
226 providerParams = null; in sign()
233 if (inputApk != null) { in sign()
283 if (signer.v1SigFileBasename != null) { in sign()
285 } else if (signer.keystoreKeyAlias != null) { in sign()
287 } else if (signer.keyFile != null) { in sign()
[all …]
/tools/apksig/src/main/java/com/android/apksig/internal/jar/
DManifestParser.java64 while ((section = readSection()) != null) { in readAllSections()
80 if (attr == null) { in readSection()
81 return null; in readSection()
90 if ((attr == null) || (attr.length() == 0)) { in readSection()
124 if (bytes == null) { in readAttribute()
125 return null; in readAttribute()
139 if ((mBufferedLine != null) && (mBufferedLine.length == 0)) { in readAttributeBytes()
140 mBufferedLine = null; in readAttributeBytes()
146 if (line == null) { in readAttributeBytes()
148 if (mBufferedLine != null) { in readAttributeBytes()
[all …]
/tools/tradefederation/core/tests/src/com/android/tradefed/result/
DFileMetadataCollectorTest.java31 private FileMetadataCollector mCollector = null;
65 mCollector.testLogSaved(NAME_BR1, DATA_TYPE_BR, null, null); in testSingleTypeSingleElement()
81 mCollector.testLogSaved(NAME_BR1, DATA_TYPE_BR, null, null); in testSingleTypeMultipleElements()
82 mCollector.testLogSaved(NAME_BR2, DATA_TYPE_BR, null, null); in testSingleTypeMultipleElements()
100 mCollector.testLogSaved(NAME_BR1, DATA_TYPE_BR, null, null); in testMultipleTypesMultipleElements()
101 mCollector.testLogSaved(NAME_BR2, DATA_TYPE_BR, null, null); in testMultipleTypesMultipleElements()
102 mCollector.testLogSaved(NAME_LC1, DATA_TYPE_LC, null, null); in testMultipleTypesMultipleElements()
103 mCollector.testLogSaved(NAME_LC2, DATA_TYPE_LC, null, null); in testMultipleTypesMultipleElements()
/tools/tradefederation/core/prod-tests/src/com/android/monkey/
DAnrReportGenerator.java40 private File mCachedMonkeyLog = null;
41 private File mCachedBugreport = null;
49 private String mBuildId = null;
50 private String mBuildFlavor = null;
67 if (mReportBasePath == null || mReportPath == null || mReportScriptPath == null in AnrReportGenerator()
68 || mReportUrlPrefix == null) { in AnrReportGenerator()
79 if (mBuildId == null) { in getPerBuildStoragePath()
82 if (mBuildFlavor == null) { in getPerBuildStoragePath()
93 if (mCachedBugreport != null) { in setBugReportInfo()
106 if (mCachedMonkeyLog != null) { in setMonkeyLogInfo()
[all …]
/tools/tradefederation/core/tests/src/com/android/tradefed/targetprep/
DStopServicesSetupTest.java31 private StopServicesSetup mPreparer = null;
32 private ITestDevice mMockDevice = null;
48 EasyMock.expect(mMockDevice.executeShellCommand("stop")).andReturn(null); in testNoop()
51 mPreparer.setUp(mMockDevice, null); in testNoop()
62 mPreparer.setUp(mMockDevice, null); in testNoStopFramework()
73 EasyMock.expect(mMockDevice.executeShellCommand("stop")).andReturn(null); in testStopServices()
74 EasyMock.expect(mMockDevice.executeShellCommand("stop service1")).andReturn(null); in testStopServices()
75 EasyMock.expect(mMockDevice.executeShellCommand("stop service2")).andReturn(null); in testStopServices()
78 mPreparer.setUp(mMockDevice, null); in testStopServices()
/tools/apkzlib/src/test/java/com/android/tools/build/apkzlib/zfile/
DApkAlignmentTest.java49 null, in soFilesUncompressedAndAligned()
50 null, in soFilesUncompressedAndAligned()
53 null, in soFilesUncompressedAndAligned()
54 null, in soFilesUncompressedAndAligned()
102 null, in soFilesMergedFromZipsCanBeUncompressedAndAligned()
103 null, in soFilesMergedFromZipsCanBeUncompressedAndAligned()
106 null, in soFilesMergedFromZipsCanBeUncompressedAndAligned()
107 null, in soFilesMergedFromZipsCanBeUncompressedAndAligned()
113 creator.writeZip(zipToMerge, null, null); in soFilesMergedFromZipsCanBeUncompressedAndAligned()
146 null, in soFilesUncompressedAndNotAligned()
[all …]
/tools/tradefederation/core/src/com/android/tradefed/testtype/
DInstrumentationTest.java90 private String mPackageName = null;
95 private String mRunnerName = null;
99 private String mTestClassName = null;
103 private String mTestMethodName = null;
108 private String mTestPackageName = null;
116 private Integer mTimeout = null;
150 private String mTestSize = null;
164 private File mInstallFile = null;
169 private String mRunName = null;
181 private BugreportCollector.Freq mBugreportFrequency = null;
[all …]
/tools/tradefederation/core/src/com/android/tradefed/config/
DConfigurationXmlParser.java77 private Boolean isLocalConfig = null;
89 mInsideParentDeviceTag = (parentDeviceObject != null) ? true : false; in ConfigHandler()
91 if (templateMap == null) { in ConfigHandler()
103 if (objectTypeName == null) { in startElement()
114 if (mCurrentDeviceObject != null) { in startElement()
120 if (deviceName == null) { in startElement()
139 if (isLocalConfig == null) { in startElement()
147 if (mCurrentDeviceObject == null && in startElement()
154 if (mCurrentDeviceObject != null) { in startElement()
165 if (isLocalConfig == null) { in startElement()
[all …]
DSandboxConfigurationFactory.java34 private static SandboxConfigurationFactory sInstance = null;
38 if (sInstance == null) { in getInstance()
52 new ConfigLoader(isGlobal).loadConfiguration(name, def, null, templateMap); in getConfigurationDef()
69 IConfiguration config = null; in createConfigurationFromArgs()
70 File xmlConfig = null; in createConfigurationFromArgs()
71 File globalConfig = null; in createConfigurationFromArgs()
88 new String[] {xmlConfig.getAbsolutePath()}, null, keyStoreClient); in createConfigurationFromArgs()
95 if (config == null) { in createConfigurationFromArgs()
107 if (config == null) { in createConfigurationFromArgs()
121 if (classpathStr == null) { in createClasspath()
/tools/loganalysis/src/com/android/loganalysis/util/
DRegexTrie.java58 private V mValue = null;
71 if (pattern == null) { in CompPattern()
107 mValue = null; in clear()
115 return retrieve(strings) != null; in containsKey()
132 if (nextChild == null) { in recursivePut()
164 if (pat == null) { in put()
165 pList.add(null); in put()
185 if (regex == null) { in put()
186 pList.add(null); in put()
203 V wildcardValue = null; in recursiveRetrieve()
[all …]
/tools/apksig/src/main/java/com/android/apksig/internal/util/
DPair.java47 result = prime * result + ((mFirst == null) ? 0 : mFirst.hashCode()); in hashCode()
48 result = prime * result + ((mSecond == null) ? 0 : mSecond.hashCode()); in hashCode()
57 if (obj == null) { in equals()
65 if (mFirst == null) { in equals()
66 if (other.mFirst != null) { in equals()
72 if (mSecond == null) { in equals()
73 if (other.mSecond != null) { in equals()

12345678910>>...28