OpenGrok
Home
Sort by relevance
Sort by last modified time
Full Search
Definition
Symbol
File Path
History
|
|
Help
Searched
refs:isTrue
(Results
1 - 25
of
1210
) sorted by null
1
2
3
4
5
6
7
8
9
10
11
>>
/packages/apps/Dialer/java/com/android/voicemail/impl/
Assert.java
26
public static void
isTrue
(boolean condition) {
34
isTrue
(isMainThreadForTest);
37
isTrue
(Looper.getMainLooper().equals(Looper.myLooper()));
42
isTrue
(!isMainThreadForTest);
45
isTrue
(!Looper.getMainLooper().equals(Looper.myLooper()));
/packages/services/Telephony/src/com/android/phone/
Assert.java
29
public static void
isTrue
(boolean condition) {
37
isTrue
(sIsMainThreadForTest);
40
isTrue
(Looper.getMainLooper().equals(Looper.myLooper()));
45
isTrue
(!sIsMainThreadForTest);
48
isTrue
(!Looper.getMainLooper().equals(Looper.myLooper()));
/external/mockito/src/test/java/org/mockito/internal/matchers/
InstanceOfTest.java
27
assertThat(new InstanceOf(Object.class).matches(new Object())).
isTrue
();
28
assertThat(new InstanceOf(Object.class).matches(new ArrayList())).
isTrue
();
29
assertThat(new InstanceOf(List.class).matches(new ArrayList())).
isTrue
();
35
assertThat(new InstanceOf(int.class).matches(1000)).
isTrue
();
36
assertThat(new InstanceOf(Integer.class).matches(1000)).
isTrue
();
37
assertThat(new InstanceOf(int.class).matches(new Integer(1000))).
isTrue
();
38
assertThat(new InstanceOf(Integer.class).matches(new Integer(1000))).
isTrue
();
40
assertThat(new InstanceOf(double.class).matches(1000.1)).
isTrue
();
41
assertThat(new InstanceOf(Double.class).matches(1000.1)).
isTrue
();
42
assertThat(new InstanceOf(double.class).matches(new Double(1000.1))).
isTrue
();
[
all
...]
/packages/apps/Settings/tests/robotests/src/com/android/settings/fuelgauge/batterytip/
BatteryTipPolicyTest.java
67
assertThat(batteryTipPolicy.batteryTipEnabled).
isTrue
();
70
assertThat(batteryTipPolicy.highUsageEnabled).
isTrue
();
74
assertThat(batteryTipPolicy.appRestrictionEnabled).
isTrue
();
75
assertThat(batteryTipPolicy.reducedBatteryEnabled).
isTrue
();
81
assertThat(batteryTipPolicy.testBatterySaverTip).
isTrue
();
83
assertThat(batteryTipPolicy.testSmartBatteryTip).
isTrue
();
84
assertThat(batteryTipPolicy.testLowBatteryTip).
isTrue
();
94
assertThat(batteryTipPolicy.batteryTipEnabled).
isTrue
();
95
assertThat(batteryTipPolicy.summaryEnabled).
isTrue
();
96
assertThat(batteryTipPolicy.batterySaverTipEnabled).
isTrue
();
[
all
...]
/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/internal/bytecode/
InstrumentationConfigurationTest.java
32
assertThat(config.shouldInstrument(wrap("dalvik.system.DexFile"))).
isTrue
();
43
assertThat(config.shouldInstrument(wrap("android.content.Intent"))).
isTrue
();
44
assertThat(config.shouldInstrument(wrap("android.and.now.for.something.completely.different"))).
isTrue
();
49
assertThat(config.shouldInstrument(wrap("org.apache.http.util.CharArrayBuffer"))).
isTrue
();
54
assertThat(config.shouldInstrument(wrap("org.kxml2.io.KXmlParser"))).
isTrue
();
59
assertThat(config.shouldAcquire("android.Rfoo")).
isTrue
();
60
assertThat(config.shouldAcquire("android.fooR")).
isTrue
();
61
assertThat(config.shouldAcquire("android.R")).
isTrue
();
62
assertThat(config.shouldAcquire("android.R$anything")).
isTrue
();
63
assertThat(config.shouldAcquire("android.R$anything$else")).
isTrue
();
[
all
...]
/packages/apps/TV/tests/unit/src/com/android/tv/dvr/recorder/
DvrRecordingServiceTest.java
63
assertThat(getService().mInForeground).
isTrue
();
64
assertThat(getService().mIsRecording).
isTrue
();
74
assertThat(getService().mInForeground).
isTrue
();
82
assertThat(getService().mInForeground).
isTrue
();
83
assertThat(getService().mForegroundForUpcomingRecording).
isTrue
();
84
assertThat(getService().mIsRecording).
isTrue
();
96
assertThat(getService().mInForeground).
isTrue
();
97
assertThat(getService().mForegroundForUpcomingRecording).
isTrue
();
98
assertThat(getService().mIsRecording).
isTrue
();
100
assertThat(getService().mInForeground).
isTrue
();
[
all
...]
/packages/apps/Settings/tests/robotests/src/com/android/settings/wifi/
WifiUtilsTest.java
32
assertThat(WifiUtils.isSSIDTooLong("??????????????????????????????????")).
isTrue
();
35
assertThat(WifiUtils.isSSIDTooShort("")).
isTrue
();
43
assertThat(WifiUtils.isHotspotPasswordValid("12345678")).
isTrue
();
44
assertThat(WifiUtils.isHotspotPasswordValid("1234567890")).
isTrue
();
/packages/apps/Launcher3/tests/src/com/android/launcher3/util/
Wait.java
20
if (condition.
isTrue
()) {
31
if (condition.
isTrue
()) {
Condition.java
13
public abstract boolean
isTrue
() throws Throwable;
22
public boolean
isTrue
() throws Throwable {
30
value.set(condition.
isTrue
());
49
public boolean
isTrue
() {
/tools/metalava/src/test/java/com/android/tools/metalava/
PackageFilterTest.kt
26
assertThat(filter.matches("foo.bar")).
isTrue
()
27
assertThat(filter.matches("bar.baz")).
isTrue
()
28
assertThat(filter.matches("foo.bar.baz")).
isTrue
()
/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/shadows/
ShadowAbstractCursorTest.java
29
assertThat(cursor.moveToFirst()).
isTrue
();
44
assertThat(cursor.moveToLast()).
isTrue
();
59
assertThat(cursor.moveToFirst()).
isTrue
();
68
assertThat(cursor.moveToFirst()).
isTrue
();
85
assertThat(cursor.moveToFirst()).
isTrue
();
87
assertThat(cursor.moveToNext()).
isTrue
();
96
assertThat(cursor.moveToFirst()).
isTrue
();
98
assertThat(cursor.moveToNext()).
isTrue
();
100
assertThat(cursor.isLast()).
isTrue
();
102
assertThat(cursor.isAfterLast()).
isTrue
();
[
all
...]
SQLiteCursorTest.java
107
assertThat(cursor.moveToFirst()).
isTrue
();
121
assertThat(cursor.moveToFirst()).
isTrue
();
123
assertThat(cursor.moveToNext()).
isTrue
();
130
assertThat(cursor.moveToFirst()).
isTrue
();
132
assertThat(cursor.moveToNext()).
isTrue
();
133
assertThat(cursor.moveToNext()).
isTrue
();
141
assertThat(cursor.moveToFirst()).
isTrue
();
143
assertThat(cursor.moveToNext()).
isTrue
();
145
assertThat(cursor.moveToNext()).
isTrue
();
148
assertThat(cursor.moveToFirst()).
isTrue
();
[
all
...]
ShadowContentObserverTest.java
32
assertThat(observer.changed).
isTrue
();
33
assertThat(observer.selfChange).
isTrue
();
45
assertThat(observer.changed).
isTrue
();
46
assertThat(observer.selfChange).
isTrue
();
ShadowOverScrollerTest.java
30
assertThat(overScroller.isScrollingInDirection(1, 1)).
isTrue
();
64
assertThat(overScroller.computeScrollOffset()).
isTrue
();
67
assertThat(overScroller.computeScrollOffset()).
isTrue
();
70
assertThat(overScroller.computeScrollOffset()).
isTrue
();
83
assertThat(overScroller.isFinished()).
isTrue
();
95
assertThat(overScroller.isFinished()).
isTrue
();
ShadowPowerManagerTest.java
35
assertThat(lock.isHeld()).
isTrue
();
38
assertThat(lock.isHeld()).
isTrue
();
41
assertThat(lock.isHeld()).
isTrue
();
53
assertThat(powerManager.isWakeLockLevelSupported(PowerManager.PARTIAL_WAKE_LOCK)).
isTrue
();
70
assertThat(lock.isHeld()).
isTrue
();
94
assertThat(lock.isHeld()).
isTrue
();
96
assertThat(lock.isHeld()).
isTrue
();
111
assertThat(powerManager.isScreenOn()).
isTrue
();
120
assertThat(shadowLock.isReferenceCounted()).
isTrue
();
124
assertThat(shadowLock.isReferenceCounted()).
isTrue
();
[
all
...]
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/core/lifecycle/
LifecycleTest.java
157
assertThat(activity.mActObserver.mOnStartObserved).
isTrue
();
159
assertThat(activity.mActObserver.mOnResumeObserved).
isTrue
();
161
assertThat(activity.mActObserver.mOnCreateOptionsMenuObserved).
isTrue
();
163
assertThat(activity.mActObserver.mOnPrepareOptionsMenuObserved).
isTrue
();
165
assertThat(activity.mActObserver.mOnOptionsItemSelectedObserved).
isTrue
();
167
assertThat(activity.mActObserver.mOnPauseObserved).
isTrue
();
169
assertThat(activity.mActObserver.mOnStopObserved).
isTrue
();
171
assertThat(activity.mActObserver.mOnDestroyObserved).
isTrue
();
186
assertThat(fragment.mFragObserver.mOnAttachObserved).
isTrue
();
187
assertThat(fragment.mFragObserver.mOnAttachHasContext).
isTrue
();
[
all
...]
/external/mockito/src/test/java/org/mockito/internal/stubbing/answers/
InvocationInfoTest.java
28
assertThat(info.isValidException(new CharacterCodingException())).
isTrue
();
33
assertThat(new InvocationInfo(new InvocationBuilder().method("integerReturningMethod").toInvocation()).isValidReturnType(Integer.class)).
isTrue
();
34
assertThat(new InvocationInfo(new InvocationBuilder().method("integerReturningMethod").toInvocation()).isValidReturnType(int.class)).
isTrue
();
35
assertThat(new InvocationInfo(new InvocationBuilder().method("intReturningMethod").toInvocation()).isValidReturnType(Integer.class)).
isTrue
();
36
assertThat(new InvocationInfo(new InvocationBuilder().method("intReturningMethod").toInvocation()).isValidReturnType(int.class)).
isTrue
();
42
assertThat(new InvocationInfo(new InvocationBuilder().method("intReturningMethod").toInvocation()).returnsPrimitive()).
isTrue
();
48
assertThat(new InvocationInfo(new InvocationBuilder().method("voidMethod").toInvocation()).isVoid()).
isTrue
();
66
assertThat(new InvocationInfo(new InvocationBuilder().method(iAmAbstract()).toInvocation()).isAbstract()).
isTrue
();
73
assertThat(new InvocationInfo(new InvocationBuilder().method("voidMethod").toInvocation()).isDeclaredOnInterface()).
isTrue
();
82
assertThat(voidMethod.isVoid()).
isTrue
();
[
all
...]
/external/junit-params/src/test/java/junitparams/
AssumptionsTest.java
17
assertThat(value).
isTrue
();
BeforeAfterClassTest.java
26
assertThat(val).
isTrue
();
/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/fakes/
RoboVibratorTest.java
26
assertThat(vibrator.isVibrating()).
isTrue
();
38
assertThat(vibrator.isVibrating()).
isTrue
();
46
assertThat(vibrator.isVibrating()).
isTrue
();
51
assertThat(vibrator.isCancelled()).
isTrue
();
/packages/apps/TvSettings/Settings/tests/robotests/src/com/android/tv/settings/connectivity/
WifiConfigHelperTest.java
47
assertThat(isDoubleQuoted(mConfig.SSID)).
isTrue
();
49
assertThat(isDoubleQuoted(mConfig.SSID)).
isTrue
();
51
assertThat(isDoubleQuoted(mConfig.SSID)).
isTrue
();
53
assertThat(isDoubleQuoted(mConfig.SSID)).
isTrue
();
55
assertThat(isDoubleQuoted(mConfig.SSID)).
isTrue
();
57
assertThat(isDoubleQuoted(mConfig.SSID)).
isTrue
();
59
assertThat(isDoubleQuoted(s)).
isTrue
();
/packages/apps/Settings/tests/robotests/src/com/android/settings/fuelgauge/
PowerUsageFeatureProviderImplTest.java
74
assertThat(mPowerFeatureProvider.isTypeSystem(mBatterySipper)).
isTrue
();
82
assertThat(mPowerFeatureProvider.isTypeSystem(mBatterySipper)).
isTrue
();
90
assertThat(mPowerFeatureProvider.isTypeSystem(mBatterySipper)).
isTrue
();
98
assertThat(mPowerFeatureProvider.isTypeSystem(mBatterySipper)).
isTrue
();
106
assertThat(mPowerFeatureProvider.isTypeSystem(mBatterySipper)).
isTrue
();
114
assertThat(mPowerFeatureProvider.isTypeSystem(mBatterySipper)).
isTrue
();
135
assertThat(mPowerFeatureProvider.isAdvancedUiEnabled()).
isTrue
();
140
assertThat(mPowerFeatureProvider.isPowerAccountingToggleEnabled()).
isTrue
();
148
assertThat(mPowerFeatureProvider.isSmartBatterySupported()).
isTrue
();
/frameworks/support/jetifier/jetifier/processor/src/test/kotlin/com/android/tools/build/jetifier/processor/
ProcessorTest.kt
47
Truth.assertThat(dependenciesMap.any { it.key.contains("baseLibrary") }).
isTrue
()
74
File("test/group/artifactTest/1.0/artifactTest.aar"))).
isTrue
()
80
File("test\\group\\artifactTest\\1.0\\artifactTest.aar"))).
isTrue
()
83
File("test2\\group2\\artifactTest2\\1.0\\artifactTest2.aar"))).
isTrue
()
86
File("test.group/artifactTest/1.0/artifactTest.aar"))).
isTrue
()
89
File("test.group\\artifactTest\\1.0\\artifactTest.aar"))).
isTrue
()
95
File("test2/group2/artifactTest2/1.0/artifactTest2.aar"))).
isTrue
()
/frameworks/base/packages/SettingsLib/tests/integ/src/com/android/settingslib/applications/
ApplicationsStateTest.java
45
assertThat(ApplicationsState.FILTER_GAMES.filterApp(mEntry)).
isTrue
();
52
assertThat(ApplicationsState.FILTER_GAMES.filterApp(mEntry)).
isTrue
();
60
assertThat(ApplicationsState.FILTER_GAMES.filterApp(mEntry)).
isTrue
();
74
assertThat(ApplicationsState.FILTER_AUDIO.filterApp(mEntry)).
isTrue
();
116
assertThat(ApplicationsState.FILTER_OTHER_APPS.filterApp(mEntry)).
isTrue
();
123
assertThat(ApplicationsState.FILTER_PHOTOS.filterApp(mEntry)).
isTrue
();
147
.
isTrue
();
153
.
isTrue
();
165
.
isTrue
();
171
.
isTrue
();
[
all
...]
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/fuelgauge/
PowerWhitelistBackendTest.java
85
assertThat(mPowerWhitelistBackend.isWhitelisted(PACKAGE_ONE)).
isTrue
();
87
assertThat(mPowerWhitelistBackend.isWhitelisted(new String[] {PACKAGE_ONE})).
isTrue
();
93
assertThat(mPowerWhitelistBackend.isWhitelisted(PACKAGE_ONE)).
isTrue
();
94
assertThat(mPowerWhitelistBackend.isWhitelisted(PACKAGE_TWO)).
isTrue
();
96
new String[] {PACKAGE_ONE, PACKAGE_TWO})).
isTrue
();
101
assertThat(mPowerWhitelistBackend.isWhitelisted(PACKAGE_ONE)).
isTrue
();
103
assertThat(mPowerWhitelistBackend.isWhitelisted(new String[] {PACKAGE_ONE})).
isTrue
();
120
assertThat(mPowerWhitelistBackend.isWhitelisted(testSms)).
isTrue
();
128
assertThat(mPowerWhitelistBackend.isWhitelisted(testDialer)).
isTrue
();
135
assertThat(mPowerWhitelistBackend.isWhitelisted(PACKAGE_ONE)).
isTrue
();
[
all
...]
Completed in 507 milliseconds
1
2
3
4
5
6
7
8
9
10
11
>>