Home
last modified time | relevance | path

Searched refs:assertNotNull (Results 1 – 25 of 581) sorted by relevance

12345678910>>...24

/aosp14/frameworks/base/core/tests/coretests/src/android/content/pm/
H A DComponentTest.java145 assertNotNull(info2); in testResolveDisabledActivity()
157 assertNotNull(info); in testResolveEnabledActivity()
158 assertNotNull(info); in testResolveEnabledActivity()
178 assertNotNull(info); in testQueryDisabledActivity()
193 assertNotNull(info); in testQueryEnabledActivity()
260 assertNotNull(info); in testDisableActivity()
304 assertNotNull(info); in testResolveEnabledService()
305 assertNotNull(info); in testResolveEnabledService()
325 assertNotNull(info); in testQueryDisabledService()
340 assertNotNull(info); in testQueryEnabledService()
[all …]
/aosp14/frameworks/base/core/tests/coretests/src/android/text/
H A DMeasuredParagraphTest.java21 import static org.junit.Assert.assertNotNull;
69 assertNotNull(mt); in buildForBidi()
70 assertNotNull(mt.getChars()); in buildForBidi()
83 assertNotNull(mt2.getChars()); in buildForBidi()
100 assertNotNull(mt); in buildForMeasurement()
101 assertNotNull(mt.getChars()); in buildForMeasurement()
118 assertNotNull(mt2.getChars()); in buildForMeasurement()
141 assertNotNull(mt); in buildForStaticLayout()
142 assertNotNull(mt.getChars()); in buildForStaticLayout()
151 assertNotNull(mt.getMeasuredText()); in buildForStaticLayout()
[all …]
/aosp14/frameworks/base/services/tests/wmtests/src/com/android/server/wm/utils/
H A DRotationCacheTest.java23 import static org.junit.Assert.assertNotNull;
65 assertNotNull(mCache.getOrCompute("hello", 1)); in getOrCompute_sameParam_sameRot_hitsCache()
74 assertNotNull(mCache.getOrCompute("hello", 3)); in getOrCompute_sameParam_hitsCache_forAllRots()
75 assertNotNull(mCache.getOrCompute("hello", 2)); in getOrCompute_sameParam_hitsCache_forAllRots()
76 assertNotNull(mCache.getOrCompute("hello", 1)); in getOrCompute_sameParam_hitsCache_forAllRots()
77 assertNotNull(mCache.getOrCompute("hello", 0)); in getOrCompute_sameParam_hitsCache_forAllRots()
89 assertNotNull(mCache.getOrCompute("hello", 1)); in getOrCompute_changingParam_recomputes()
96 assertNotNull(mCache.getOrCompute("hello", 1)); in getOrCompute_changingParam_clearsCacheForDifferentRots()
97 assertNotNull(mCache.getOrCompute("world", 2)); in getOrCompute_changingParam_clearsCacheForDifferentRots()
/aosp14/frameworks/base/core/tests/coretests/src/android/widget/layout/frame/
H A DFrameLayoutGravityTest.java67 assertNotNull(mParent); in testSetUpConditions()
68 assertNotNull(mLeftView); in testSetUpConditions()
69 assertNotNull(mRightView); in testSetUpConditions()
70 assertNotNull(mCenterHorizontalView); in testSetUpConditions()
71 assertNotNull(mLeftCenterVerticalView); in testSetUpConditions()
72 assertNotNull(mRighCenterVerticalView); in testSetUpConditions()
73 assertNotNull(mCenterView); in testSetUpConditions()
74 assertNotNull(mLeftBottomView); in testSetUpConditions()
75 assertNotNull(mRightBottomView); in testSetUpConditions()
76 assertNotNull(mCenterHorizontalBottomView); in testSetUpConditions()
H A DFrameLayoutMarginTest.java56 assertNotNull(mParent); in testSetUpConditions()
57 assertNotNull(mLeftView); in testSetUpConditions()
58 assertNotNull(mRightView); in testSetUpConditions()
59 assertNotNull(mTopView); in testSetUpConditions()
60 assertNotNull(mBottomView); in testSetUpConditions()
/aosp14/frameworks/base/tests/Internal/src/com/android/internal/os/
H A DTimeoutRecordTest.java21 import static org.junit.Assert.assertNotNull;
47 assertNotNull(record); in forBroadcastReceiver_returnsCorrectTimeoutRecord()
61 assertNotNull(record); in forBroadcastReceiver_withPackageAndClass_returnsCorrectTimeoutRecord()
76 assertNotNull(record); in forBroadcastReceiver_withTimeoutDurationMs_returnsCorrectTimeoutRecord()
88 assertNotNull(record); in forInputDispatchNoFocusedWindow_returnsCorrectTimeoutRecord()
99 assertNotNull(record); in forInputDispatchWindowUnresponsive_returnsCorrectTimeoutRecord()
109 assertNotNull(record); in forServiceExec_returnsCorrectTimeoutRecord()
119 assertNotNull(record); in forServiceStartWithEndTime_returnsCorrectTimeoutRecord()
130 assertNotNull(record); in forContentProvider_returnsCorrectTimeoutRecord()
140 assertNotNull(record); in forApp_returnsCorrectTimeoutRecord()
/aosp14/frameworks/base/core/tests/mockingcoretests/src/android/os/
H A DBundleRecyclingTest.java25 import static org.junit.Assert.assertNotNull;
63 assertNotNull(mBundle.getString("nonLazy0")); in bundleClear_whenUnparcelledWithoutLazy_recyclesParcelOnce()
147 assertNotNull(mBundle.getParcelable("lazy0", CustomParcelable.class)); in bundleGet_whenUnparcelledWithLazyValueUnwrapped_recyclesParcel()
151 assertNotNull(mBundle.getParcelable("lazy0", CustomParcelable.class)); in bundleGet_whenUnparcelledWithLazyValueUnwrapped_recyclesParcel()
160 assertNotNull(mBundle.getParcelable("lazy0", CustomParcelable.class)); in bundleGet_whenMultipleLazy_recyclesParcelWhenAllUnwrapped()
163 assertNotNull(mBundle.getParcelable("lazy0", CustomParcelable.class)); in bundleGet_whenMultipleLazy_recyclesParcelWhenAllUnwrapped()
166 assertNotNull(mBundle.getParcelable("lazy1", CustomParcelable.class)); in bundleGet_whenMultipleLazy_recyclesParcelWhenAllUnwrapped()
184 assertNotNull(mBundle.getString("nonLazy0")); in bundleGet_whenLazyAndNonLazy_recyclesParcelWhenAllUnwrapped()
194 assertNotNull(mBundle.getString("nonLazy0")); in bundleGet_whenLazyAndNonLazy_doesNotRecycleWhenOnlyNonLazyRetrieved()
197 assertNotNull(mBundle.getString("nonLazy0")); in bundleGet_whenLazyAndNonLazy_doesNotRecycleWhenOnlyNonLazyRetrieved()
[all …]
/aosp14/frameworks/base/services/tests/servicestests/src/com/android/server/app/
H A DGameManagerServiceSettingsTests.java136 assertNotNull(config); in testReadGameServiceSettings()
148 assertNotNull(batteryConfig); in testReadGameServiceSettings()
156 assertNotNull(config); in testReadGameServiceSettings()
159 assertNotNull(customConfig); in testReadGameServiceSettings()
181 assertNotNull(config); in testReadGameServiceSettings_invalidConfigAttributes()
184 assertNotNull(batteryConfig); in testReadGameServiceSettings_invalidConfigAttributes()
222 assertNotNull(config); in testReadGameServiceSettings_invalidTags()
225 assertNotNull(batteryConfig); in testReadGameServiceSettings_invalidTags()
279 assertNotNull(config); in testWriteGameServiceSettings()
296 assertNotNull(config); in testWriteGameServiceSettings()
[all …]
/aosp14/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/animation/
H A DViewHierarchyAnimatorTest.kt16 import junit.framework.Assert.assertNotNull
58 assertNotNull(rootView.getTag(R.id.tag_animator))
73 assertNotNull(rootView.getTag(R.id.tag_animator))
88 assertNotNull(rootView.getTag(R.id.tag_animator))
101 assertNotNull(child.getTag(R.id.tag_animator))
116 assertNotNull(rootView.getTag(R.id.tag_animator))
134 assertNotNull(rootView.getTag(R.id.tag_animator))
142 assertNotNull(rootView.getTag(R.id.tag_animator))
150 assertNotNull(rootView.getTag(R.id.tag_animator))
166 assertNotNull(rootView.getTag(R.id.tag_animator))
[all …]
/aosp14/frameworks/base/services/tests/wmtests/src/com/android/server/wm/
H A DTaskSnapshotPersisterLoaderTest.java83 assertNotNull(snapshot); in testPersistAndLoadSnapshot()
188 assertNotNull(lowResConf); in testLegacyPLowRamConfig()
218 assertNotNull(lowResConf); in testLegacyPNonLowRamConfig()
323 assertNotNull(snapshotA); in testIsRealSnapshotPersistAndLoadSnapshot()
324 assertNotNull(snapshotB); in testIsRealSnapshotPersistAndLoadSnapshot()
346 assertNotNull(snapshotA); in testWindowingModePersistAndLoadSnapshot()
347 assertNotNull(snapshotB); in testWindowingModePersistAndLoadSnapshot()
369 assertNotNull(snapshotA); in testIsTranslucentPersistAndLoadSnapshot()
370 assertNotNull(snapshotB); in testIsTranslucentPersistAndLoadSnapshot()
393 assertNotNull(snapshotA); in testAppearancePersistAndLoadSnapshot()
[all …]
/aosp14/frameworks/base/core/tests/coretests/src/android/widget/layout/table/
H A DVerticalGravityTest.java59 assertNotNull(mReference1); in testSetUpConditions()
60 assertNotNull(mReference2); in testSetUpConditions()
61 assertNotNull(mReference3); in testSetUpConditions()
62 assertNotNull(mTop); in testSetUpConditions()
63 assertNotNull(mCenter); in testSetUpConditions()
64 assertNotNull(mBottom); in testSetUpConditions()
H A DCellSpanTest.java57 assertNotNull(mA); in testSetUpConditions()
58 assertNotNull(mB); in testSetUpConditions()
59 assertNotNull(mC); in testSetUpConditions()
60 assertNotNull(mSpanThenCell); in testSetUpConditions()
61 assertNotNull(mCellThenSpan); in testSetUpConditions()
62 assertNotNull(mSpan); in testSetUpConditions()
/aosp14/frameworks/base/core/tests/coretests/src/android/view/
H A DDrawableBgMinSizeTest.java72 assertNotNull(mChangeBackgroundsButton); in testSetUpConditions()
73 assertNotNull(mBackgroundDrawable); in testSetUpConditions()
74 assertNotNull(mBigBackgroundDrawable); in testSetUpConditions()
75 assertNotNull(mTextView); in testSetUpConditions()
76 assertNotNull(mLinearLayout); in testSetUpConditions()
77 assertNotNull(mRelativeLayout); in testSetUpConditions()
78 assertNotNull(mFrameLayout); in testSetUpConditions()
79 assertNotNull(mAbsoluteLayout); in testSetUpConditions()
/aosp14/frameworks/base/tests/MidiTests/src/com/android/server/midi/
H A DMidiEventMultiSchedulerTest.java114 assertNotNull(event); in testSchedulerLargeData()
181 assertNotNull(event); in testSchedulerSpamEvents()
203 assertNotNull(event); in testSchedulerSpamEventsPullLater()
229 assertNotNull(event); in testSchedulerSpamEventsCallbackLater()
261 assertNotNull(event); in testMultiSchedulerOutOfOrder()
269 assertNotNull(event); in testMultiSchedulerOutOfOrder()
277 assertNotNull(event); in testMultiSchedulerOutOfOrder()
282 assertNotNull(event); in testMultiSchedulerOutOfOrder()
317 assertNotNull(event); in testMultiSchedulerOutOfOrderNegativeTime()
322 assertNotNull(event); in testMultiSchedulerOutOfOrderNegativeTime()
[all …]
/aosp14/frameworks/base/core/tests/coretests/src/android/graphics/
H A DTypefaceSystemFallbackTest.java283 assertNotNull(testTypeface); in testBuildSystemFallback_NamedFamily()
290 assertNotNull(test2Typeface); in testBuildSystemFallback_NamedFamily()
329 assertNotNull(testTypeface); in testBuildSystemFallback_defaultFallback()
374 assertNotNull(testTypeface); in testBuildSystemFallback_namedFallbackFamily()
424 assertNotNull(testTypeface); in testBuildSystemFallback_namedFallbackFamily2()
463 assertNotNull(testTypeface); in testBuildSystemFallback_ImplicitSansSerifFallback()
502 assertNotNull(testTypeface); in testBuildSystemFallback_ElegantFallback()
541 assertNotNull(testTypeface); in testBuildSystemFallback_ElegantFallback_customFallback()
554 assertNotNull(testTypeface); in testBuildSystemFallback_ElegantFallback_customFallback()
631 assertNotNull(testTypeface); in testBuildSystemFallback_ElegantFallback_customFallback_missingFile()
[all …]
/aosp14/frameworks/base/core/tests/coretests/src/android/app/
H A DSearchManagerTest.java100 assertNotNull(getSearchManagerService()); in testSearchManagerInterfaceAvailable()
112 assertNotNull(searchManager1); in testSearchManagerAvailable()
115 assertNotNull(searchManager2); in testSearchManagerAvailable()
126 assertNotNull(searchManager); in testStartSearchIdempotent()
140 assertNotNull(searchManager); in testStopSearchIdempotent()
155 assertNotNull(searchManager); in testSearchManagerInvocations()
/aosp14/frameworks/base/core/tests/coretests/src/android/accessibilityservice/
H A DAccessibilityShortcutInfoTest.java21 import static org.junit.Assert.assertNotNull;
68 assertNotNull("Can't find " + mComponentName, mShortcutInfo); in setUp()
76 assertNotNull("Can't find description string", description); in testDescription()
86 assertNotNull("Can't find summary string", summary); in testSummary()
96 assertNotNull("Can't find intro string", intro); in testIntro()
109 assertNotNull("Can't find animated image", in testLoadAnimatedImage()
118 assertNotNull("Can't find html description string", htmlDescription); in testHtmlDescription()
152 assertNotNull(mShortcutInfo.toString()); in testToString()
/aosp14/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/policy/
H A DKeyguardUserSwitcherAdapterTest.kt34 import org.junit.Assert.assertNotNull
113 assertNotNull(v)
121 assertNotNull(v)
129 assertNotNull(v)
137 assertNotNull(v)
145 assertNotNull(v)
153 assertNotNull(v)
161 assertNotNull(v)
169 assertNotNull(v)
/aosp14/frameworks/base/core/tests/ConnectivityManagerTest/src/com/android/connectivitymanagertest/functional/
H A DWifiAssociationTest.java58 assertNotNull("ssid is empty", ssid); in testWifiAssociation()
61 assertNotNull("security-type is empty", securityTypeStr); in testWifiAssociation()
69 assertNotNull("no active wifi info", wi); in testWifiAssociation()
89 assertNotNull("password is empty", password); in getConfig()
96 assertNotNull("password is empty", password); in getConfig()
103 assertNotNull("password is empty", password); in getConfig()
111 assertNotNull("password is empty", password); in getConfig()
/aosp14/frameworks/base/services/tests/servicestests/src/com/android/server/search/
H A DSearchablesTest.java128 assertNotNull(searchablesList); in testSearchablesListEmpty()
144 assertNotNull(searchablesList); in checkSearchables()
153 assertNotNull(si); in checkSearchable()
211 assertNotNull(s); in assertNotEmpty()
329 assertNotNull(intent); in queryIntentActivities()
345 assertNotNull(intent); in resolveActivity()
376 assertNotNull(packageName); in getXml()
399 assertNotNull(name); in resolveContentProvider()
422 assertNotNull(name); in getActivityInfo()
436 assertNotNull(permName); in checkPermission()
[all …]
/aosp14/frameworks/base/core/tests/coretests/src/android/widget/scroll/
H A DRequestRectangleVisibleTest.java77 assertNotNull(mScrollView); in testPreconditions()
78 assertNotNull(mClickToScrollFromAbove); in testPreconditions()
79 assertNotNull(mClickToScrollToUpperBlob); in testPreconditions()
80 assertNotNull(mTopBlob); in testPreconditions()
81 assertNotNull(mChildToScrollTo); in testPreconditions()
82 assertNotNull(mBottomBlob); in testPreconditions()
83 assertNotNull(mClickToScrollToBlobLowerBlob); in testPreconditions()
84 assertNotNull(mClickToScrollFromBelow); in testPreconditions()
/aosp14/frameworks/base/core/tests/coretests/src/android/widget/layout/linear/
H A DBaselineButtonsTest.java55 assertNotNull(mCurrentTime); in testPreconditions()
56 assertNotNull(mTotalTime); in testPreconditions()
57 assertNotNull(mPrev); in testPreconditions()
58 assertNotNull(mNext); in testPreconditions()
59 assertNotNull(mPause); in testPreconditions()
60 assertNotNull(mLayout); in testPreconditions()
/aosp14/frameworks/base/core/tests/coretests/src/android/widget/gridview/
H A DGridSetSelectionBaseTest.java44 assertNotNull(mActivity); in testPreconditions()
45 assertNotNull(mGridView); in testPreconditions()
67 assertNotNull(mGridView.getSelectedView()); in testSetSelectionToTheEnd()
83 assertNotNull(mGridView.getSelectedView()); in testSetSelectionToMiddle()
98 assertNotNull(mGridView.getSelectedView()); in testSetSelectionToTheTop()
/aosp14/frameworks/base/core/tests/coretests/src/android/provider/
H A DFontsContractTest.java81 assertNotNull(fonts); in testGetFontFromProvider_resultOK()
91 assertNotNull(font.getUri()); in testGetFontFromProvider_resultOK()
100 assertNotNull(fonts); in testGetFontFromProvider_providerDoesntReturnAllFields()
107 assertNotNull(font.getUri()); in testGetFontFromProvider_providerDoesntReturnAllFields()
116 assertNotNull(fonts); in testGetFontFromProvider_resultFontNotFound()
120 assertNotNull(font.getUri()); in testGetFontFromProvider_resultFontNotFound()
130 assertNotNull(fonts); in testGetFontFromProvider_resultFontUnavailable()
140 assertNotNull(font.getUri()); in testGetFontFromProvider_resultFontUnavailable()
150 assertNotNull(fonts); in testGetFontFromProvider_resultMalformedQuery()
176 assertNotNull(fonts); in testGetFontFromProvider_resultFontNotFoundSecondRow()
[all …]
/aosp14/frameworks/base/services/tests/servicestests/src/com/android/server/pm/
H A DShortcutManagerTest12.java70 assertNotNull(intent); in testGetShortcutIntents_ReturnsMutablePendingIntents()
86 assertNotNull(shortcuts); in testSetDynamicShortcuts_PersistsShortcutsToDisk()
97 assertNotNull(shortcuts); in testSetDynamicShortcuts_PersistsShortcutsToDisk()
114 assertNotNull(shortcuts); in testAddDynamicShortcuts_PersistsShortcutsToDisk()
138 assertNotNull(shortcuts); in testPushDynamicShortcuts_PersistsShortcutsToDisk()
156 assertNotNull(shortcuts); in testPushDynamicShortcuts_PersistsShortcutsToDisk()
183 assertNotNull(shortcuts); in testRemoveDynamicShortcuts_RemovesShortcutsFromDisk()
207 assertNotNull(shortcuts); in testRemoveLongLivedShortcuts_RemovesShortcutsFromDisk()
232 assertNotNull(shortcuts); in testDisableShortcuts_RemovesShortcutsFromDisk()
257 assertNotNull(shortcuts); in testUpdateShortcuts_UpdateShortcutsOnDisk()
[all …]

12345678910>>...24