/frameworks/libs/modules-utils/java/com/android/modules/utils/testing/ |
D | ExtendedMockitoRule.java | 19 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()
|
D | Android.bp | 52 // 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.
|
D | AbstractExtendedMockitoRule.java | 26 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/ |
D | ExtendedMockitoRuleTest.java | 34 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 …]
|
D | TestableDeviceConfigAndOtherStaticMocksTest.java | 39 public ExtendedMockitoRule mExtendedMockitoRule = new ExtendedMockitoRule.Builder(this)
|
D | MultipleStaticMocksTest.java | 38 public ExtendedMockitoRule mExtendedMockitoRule = new ExtendedMockitoRule.Builder(this)
|
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/am/ |
D | ActivityManagerServiceInjectorTest.java | 34 import com.android.modules.utils.testing.ExtendedMockitoRule; 67 public final ExtendedMockitoRule mExtendedMockitoRule = new ExtendedMockitoRule.Builder(this)
|
D | BaseBroadcastQueueTest.java | 50 import com.android.modules.utils.testing.ExtendedMockitoRule; 94 public final ExtendedMockitoRule mExtendedMockitoRule = new ExtendedMockitoRule.Builder(this)
|
D | CachedAppOptimizerTest.java | 42 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/ |
D | StorageManagerServiceTest.java | 36 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/ |
D | ActiveRestoreSessionTest.java | 37 import com.android.modules.utils.testing.ExtendedMockitoRule; 74 public final ExtendedMockitoRule mExtendedMockitoRule = new ExtendedMockitoRule
|
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/alarm/ |
D | UserWakeupStoreTest.java | 35 import com.android.modules.utils.testing.ExtendedMockitoRule; 62 public final ExtendedMockitoRule mExtendedMockitoRule = new ExtendedMockitoRule.Builder(this)
|
D | AlarmManagerServiceTest.java | 171 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/ |
D | GnssLocationProviderTest.java | 47 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/ |
D | DesktopModeEventLoggerTest.kt | 21 import com.android.modules.utils.testing.ExtendedMockitoRule 40 val extendedMockitoRule = ExtendedMockitoRule.Builder(this)
|
D | DesktopModeLoggerTransitionObserverTest.kt | 40 import com.android.modules.utils.testing.ExtendedMockitoRule 85 ExtendedMockitoRule.Builder(this)
|
/frameworks/base/services/tests/PermissionServiceMockingTests/ |
D | Android.bp | 27 // This is needed for the ExtendedMockitoRule
|
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/cpu/ |
D | CpuMonitorServiceTest.java | 51 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/ |
D | BasePermissionPolicyTest.kt | 31 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/ |
D | BackgroundActivityStartControllerExemptionTests.java | 50 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/ |
D | KeyboardLayoutManagerTests.kt | 44 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/ |
D | TrustManagerServiceTest.java | 96 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/ |
D | UserManagerServiceTest.java | 75 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/ |
D | DisplayPowerControllerTest.java | 77 import com.android.modules.utils.testing.ExtendedMockitoRule; 168 public final ExtendedMockitoRule mExtendedMockitoRule = 169 new ExtendedMockitoRule.Builder(this)
|
D | DisplayManagerServiceTest.java | 137 import com.android.modules.utils.testing.ExtendedMockitoRule; 367 public final ExtendedMockitoRule mExtendedMockitoRule = 368 new ExtendedMockitoRule.Builder(this)
|