Home
last modified time | relevance | path

Searched refs:ExtendedMockitoRule (Results 1 – 25 of 26) sorted by relevance

12

/frameworks/libs/modules-utils/java/com/android/modules/utils/testing/
DExtendedMockitoRule.java19 import com.android.modules.utils.testing.ExtendedMockitoRule.Builder;
45 public final class ExtendedMockitoRule extends class
46 AbstractExtendedMockitoRule<ExtendedMockitoRule, Builder> {
48 public ExtendedMockitoRule(Builder builder) { in ExtendedMockitoRule() method in ExtendedMockitoRule
54 public static final class Builder extends AbstractBuilder<ExtendedMockitoRule, Builder> {
76 public ExtendedMockitoRule build() { in build()
77 return new ExtendedMockitoRule(this); in build()
DAndroid.bp52 // NOTE: if you're only using ExtendedMockitoRule (without TestableDevicConfig), you should use
67 // Utility for using ExtendedMockitoRule.
76 "ExtendedMockitoRule.java",
93 // Utility for using ExtendedMockitoRule.
DAbstractExtendedMockitoRule.java26 import com.android.modules.utils.testing.ExtendedMockitoRule.MockStatic;
27 import com.android.modules.utils.testing.ExtendedMockitoRule.MockStaticClasses;
28 import com.android.modules.utils.testing.ExtendedMockitoRule.SpyStatic;
29 import com.android.modules.utils.testing.ExtendedMockitoRule.SpyStaticClasses;
/frameworks/libs/modules-utils/javatests/com/android/modules/utils/testing/
DExtendedMockitoRuleTest.java34 import com.android.modules.utils.testing.ExtendedMockitoRule.MockStatic;
35 import com.android.modules.utils.testing.ExtendedMockitoRule.SpyStatic;
74 private final ExtendedMockitoRule.Builder mBuilder =
75 new ExtendedMockitoRule.Builder(mClassUnderTest);
78 private final ExtendedMockitoRule.Builder mUnsafeBuilder =
79 new ExtendedMockitoRule.Builder(mClassUnderTest).dontClearInlineMocks();
93 assertThrows(NullPointerException.class, () -> new ExtendedMockitoRule.Builder(null)); in testBuilder_constructor_null()
143 new ExtendedMockitoRule.Builder().build().apply(mStatement, mDescription).evaluate(); in testMocksNotInitialized()
171 ExtendedMockitoRule rule = mBuilder.mockStatic(StaticClass.class).build(); in testMocksStatic()
200 ExtendedMockitoRule rule = mBuilder.mockStatic(StaticClass.class) in testMocksStatic_multipleClasses()
[all …]
DTestableDeviceConfigAndOtherStaticMocksTest.java39 public ExtendedMockitoRule mExtendedMockitoRule = new ExtendedMockitoRule.Builder(this)
DMultipleStaticMocksTest.java38 public ExtendedMockitoRule mExtendedMockitoRule = new ExtendedMockitoRule.Builder(this)
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/am/
DActivityManagerServiceInjectorTest.java34 import com.android.modules.utils.testing.ExtendedMockitoRule;
67 public final ExtendedMockitoRule mExtendedMockitoRule = new ExtendedMockitoRule.Builder(this)
DBaseBroadcastQueueTest.java50 import com.android.modules.utils.testing.ExtendedMockitoRule;
94 public final ExtendedMockitoRule mExtendedMockitoRule = new ExtendedMockitoRule.Builder(this)
DCachedAppOptimizerTest.java42 import com.android.modules.utils.testing.ExtendedMockitoRule;
93 public final ExtendedMockitoRule mExtendedMockitoRule = new ExtendedMockitoRule.Builder(this)
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/
DStorageManagerServiceTest.java36 import com.android.modules.utils.testing.ExtendedMockitoRule;
55 public final ExtendedMockitoRule mExtendedMockitoRule = new ExtendedMockitoRule.Builder(this)
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/backup/restore/
DActiveRestoreSessionTest.java37 import com.android.modules.utils.testing.ExtendedMockitoRule;
74 public final ExtendedMockitoRule mExtendedMockitoRule = new ExtendedMockitoRule
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/alarm/
DUserWakeupStoreTest.java35 import com.android.modules.utils.testing.ExtendedMockitoRule;
62 public final ExtendedMockitoRule mExtendedMockitoRule = new ExtendedMockitoRule.Builder(this)
DAlarmManagerServiceTest.java171 import com.android.modules.utils.testing.ExtendedMockitoRule;
404 public final ExtendedMockitoRule mExtendedMockitoRule = new ExtendedMockitoRule.Builder(this)
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/location/gnss/
DGnssLocationProviderTest.java47 import com.android.modules.utils.testing.ExtendedMockitoRule;
74 public final ExtendedMockitoRule mExtendedMockitoRule = new ExtendedMockitoRule.Builder(this)
/frameworks/base/libs/WindowManager/Shell/tests/unittest/src/com/android/wm/shell/desktopmode/
DDesktopModeEventLoggerTest.kt21 import com.android.modules.utils.testing.ExtendedMockitoRule
40 val extendedMockitoRule = ExtendedMockitoRule.Builder(this)
DDesktopModeLoggerTransitionObserverTest.kt40 import com.android.modules.utils.testing.ExtendedMockitoRule
85 ExtendedMockitoRule.Builder(this)
/frameworks/base/services/tests/PermissionServiceMockingTests/
DAndroid.bp27 // This is needed for the ExtendedMockitoRule
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/cpu/
DCpuMonitorServiceTest.java51 import com.android.modules.utils.testing.ExtendedMockitoRule;
111 public final ExtendedMockitoRule mExtendedMockitoRule = new ExtendedMockitoRule.Builder(this)
/frameworks/base/services/tests/PermissionServiceMockingTests/src/com/android/server/permission/test/
DBasePermissionPolicyTest.kt31 import com.android.modules.utils.testing.ExtendedMockitoRule in <lambda>()
75 val extendedMockitoRule = ExtendedMockitoRule.Builder(this) in <lambda>()
/frameworks/base/services/tests/wmtests/src/com/android/server/wm/
DBackgroundActivityStartControllerExemptionTests.java50 import com.android.modules.utils.testing.ExtendedMockitoRule;
95 public final ExtendedMockitoRule extendedMockitoRule =
96 new ExtendedMockitoRule.Builder(this).setStrictness(Strictness.LENIENT).build();
/frameworks/base/tests/Input/src/com/android/server/input/
DKeyboardLayoutManagerTests.kt44 import com.android.modules.utils.testing.ExtendedMockitoRule
120 val extendedMockitoRule = ExtendedMockitoRule.Builder(this) in createKeyboard()
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/trust/
DTrustManagerServiceTest.java96 import com.android.modules.utils.testing.ExtendedMockitoRule;
120 public final ExtendedMockitoRule mExtendedMockitoRule = new ExtendedMockitoRule.Builder(this)
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/pm/
DUserManagerServiceTest.java75 import com.android.modules.utils.testing.ExtendedMockitoRule;
135 public final ExtendedMockitoRule mExtendedMockitoRule = new ExtendedMockitoRule.Builder(this)
/frameworks/base/services/tests/displayservicetests/src/com/android/server/display/
DDisplayPowerControllerTest.java77 import com.android.modules.utils.testing.ExtendedMockitoRule;
168 public final ExtendedMockitoRule mExtendedMockitoRule =
169 new ExtendedMockitoRule.Builder(this)
DDisplayManagerServiceTest.java137 import com.android.modules.utils.testing.ExtendedMockitoRule;
367 public final ExtendedMockitoRule mExtendedMockitoRule =
368 new ExtendedMockitoRule.Builder(this)

12