Home
last modified time | relevance | path

Searched refs:when (Results 1 – 25 of 221) sorted by relevance

123456789

/art/libartservice/service/javatests/com/android/server/art/
DPrimaryDexopterTestBase.java86 lenient().when(mInjector.getArtd()).thenReturn(mArtd); in setUp()
87 lenient().when(mInjector.isSystemUiPackage(any())).thenReturn(false); in setUp()
88 lenient().when(mInjector.isLauncherPackage(any())).thenReturn(false); in setUp()
89 lenient().when(mInjector.getUserManager()).thenReturn(mUserManager); in setUp()
90 lenient().when(mInjector.getDexUseManager()).thenReturn(mDexUseManager); in setUp()
91 lenient().when(mInjector.getStorageManager()).thenReturn(mStorageManager); in setUp()
92 lenient().when(mInjector.getArtVersion()).thenReturn(ART_VERSION); in setUp()
93 lenient().when(mInjector.getConfig()).thenReturn(mConfig); in setUp()
94 lenient().when(mInjector.getDexMetadataHelper()).thenReturn(mDexMetadataHelper); in setUp()
95 lenient().when(mInjector.isPreReboot()).thenReturn(false); in setUp()
[all …]
DPrimaryDexUtilsTest.java145 lenient().when(baseSplit.getPath()).thenReturn("/somewhere/app/foo/base.apk"); in createPackage()
146 lenient().when(baseSplit.isHasCode()).thenReturn(true); in createPackage()
147 lenient().when(baseSplit.getClassLoaderName()).thenReturn(PathClassLoader.class.getName()); in createPackage()
150 lenient().when(split0.getName()).thenReturn("split_0"); in createPackage()
151 lenient().when(split0.getPath()).thenReturn("/somewhere/app/foo/split_0.apk"); in createPackage()
152 lenient().when(split0.isHasCode()).thenReturn(true); in createPackage()
155 lenient().when(split1.getName()).thenReturn("split_1"); in createPackage()
156 lenient().when(split1.getPath()).thenReturn("/somewhere/app/foo/split_1.apk"); in createPackage()
157 lenient().when(split1.isHasCode()).thenReturn(false); in createPackage()
160 lenient().when(split2.getName()).thenReturn("split_2"); in createPackage()
[all …]
DDumpHelperTest.java78 lenient().when(Constants.getPreferredAbi()).thenReturn("arm64-v8a"); in setUp()
79 lenient().when(Constants.getNative64BitAbi()).thenReturn("arm64-v8a"); in setUp()
80 lenient().when(Constants.getNative32BitAbi()).thenReturn("armeabi-v7a"); in setUp()
84 .when(SystemProperties.get(argThat(arg -> arg.startsWith("ro.dalvik.vm.isa.")))) in setUp()
87 lenient().when(ArtJni.getGarbageCollector()).thenReturn("CollectorTypeCMC"); in setUp()
89 lenient().when(mInjector.getArtManagerLocal()).thenReturn(mArtManagerLocal); in setUp()
90 lenient().when(mInjector.getDexUseManager()).thenReturn(mDexUseManagerLocal); in setUp()
93 lenient().when(mSnapshot.getPackageStates()).thenReturn(pkgStates); in setUp()
95 lenient().when(mSnapshot.getPackageState(entry.getKey())).thenReturn(entry.getValue()); in setUp()
156 lenient().when(pkgState.getPackageName()).thenReturn(packageName); in createPackageState()
[all …]
DArtManagerLocalTest.java48 import static org.mockito.Mockito.when;
169 lenient().when(mInjector.getPackageManagerLocal()).thenReturn(mPackageManagerLocal); in setUp()
170 lenient().when(mInjector.getArtd()).thenReturn(mArtd); in setUp()
171 lenient().when(mInjector.createArtdPin()).thenReturn(mArtdPin); in setUp()
172 lenient().when(mInjector.getDexoptHelper()).thenReturn(mDexoptHelper); in setUp()
173 lenient().when(mInjector.getConfig()).thenReturn(mConfig); in setUp()
174 lenient().when(mInjector.getAppHibernationManager()).thenReturn(mAppHibernationManager); in setUp()
175 lenient().when(mInjector.getUserManager()).thenReturn(mUserManager); in setUp()
176 lenient().when(mInjector.isSystemUiPackage(any())).thenReturn(false); in setUp()
177 lenient().when(mInjector.isLauncherPackage(any())).thenReturn(false); in setUp()
[all …]
DSecondaryDexopterTest.java36 import static org.mockito.Mockito.when;
128 .when(SystemProperties.getBoolean(eq("dalvik.vm.always_debuggable"), anyBoolean())) in setUp()
130 lenient().when(SystemProperties.get("dalvik.vm.appimageformat")).thenReturn("lz4"); in setUp()
131 lenient().when(SystemProperties.get("pm.dexopt.shared")).thenReturn("speed"); in setUp()
135 .when(SystemProperties.get(argThat(arg -> arg.startsWith("ro.dalvik.vm.isa.")))) in setUp()
138 lenient().when(Constants.getPreferredAbi()).thenReturn("arm64-v8a"); in setUp()
139 lenient().when(Constants.getNative64BitAbi()).thenReturn("arm64-v8a"); in setUp()
140 lenient().when(Constants.getNative32BitAbi()).thenReturn("armeabi-v7a"); in setUp()
142 lenient().when(mInjector.getArtd()).thenReturn(mArtd); in setUp()
143 lenient().when(mInjector.isSystemUiPackage(any())).thenReturn(false); in setUp()
[all …]
DUtilsTest.java24 import static org.mockito.Mockito.when;
55 lenient().when(SystemProperties.get(eq("ro.dalvik.vm.isa.x86_64"))).thenReturn("arm64"); in setUp()
56 lenient().when(SystemProperties.get(eq("ro.dalvik.vm.isa.x86"))).thenReturn("arm"); in setUp()
58 lenient().when(Constants.getPreferredAbi()).thenReturn("arm64-v8a"); in setUp()
59 lenient().when(Constants.getNative64BitAbi()).thenReturn("arm64-v8a"); in setUp()
60 lenient().when(Constants.getNative32BitAbi()).thenReturn("armeabi-v7a"); in setUp()
98 when(pkgState.getPrimaryCpuAbi()).thenReturn("armeabi-v7a"); in testGetAllAbis()
99 when(pkgState.getSecondaryCpuAbi()).thenReturn("arm64-v8a"); in testGetAllAbis()
109 when(pkgState.getPrimaryCpuAbi()).thenReturn("x86_64"); in testGetAllAbisTranslated()
110 when(pkgState.getSecondaryCpuAbi()).thenReturn("x86"); in testGetAllAbisTranslated()
[all …]
DDexUseManagerTest.java32 import static org.mockito.Mockito.when;
114 .when(SystemProperties.get(argThat(arg -> arg.startsWith("ro.dalvik.vm.isa.")))) in setUp()
117 lenient().when(Constants.getPreferredAbi()).thenReturn("arm64-v8a"); in setUp()
118 lenient().when(Constants.getNative64BitAbi()).thenReturn("arm64-v8a"); in setUp()
119 lenient().when(Constants.getNative32BitAbi()).thenReturn("armeabi-v7a"); in setUp()
121 lenient().when(Process.isIsolatedUid(anyInt())).thenReturn(false); in setUp()
140 lenient().when(mSnapshot.getPackageStates()).thenReturn(mPackageStates); in setUp()
144 .when(mContext.registerReceiver(mBroadcastReceiverCaptor.capture(), any())) in setUp()
160 lenient().when(ArtJni.validateDexPath(any())).thenReturn(null); in setUp()
161 lenient().when(ArtJni.validateClassLoaderContext(any(), any())).thenReturn(null); in setUp()
[all …]
DPreRebootDexoptJobTest.java32 import static org.mockito.Mockito.when;
82 .when(SystemProperties.getBoolean(eq("pm.dexopt.disable_bg_dexopt"), anyBoolean())) in setUp()
85 .when(SystemProperties.getBoolean(eq("dalvik.vm.enable_pr_dexopt"), anyBoolean())) in setUp()
88 .when(mInjector.getDeviceConfigBoolean( in setUp()
93 .when(SystemProperties.getBoolean( in setUp()
97 lenient().when(mInjector.getJobScheduler()).thenReturn(mJobScheduler); in setUp()
98 lenient().when(mInjector.getPreRebootDriver()).thenReturn(mPreRebootDriver); in setUp()
100 .when(mInjector.getStatsReporter()) in setUp()
107 .when(mPreRebootStatsReporterInjector.getFilename()) in setUp()
110 lenient().when(mJobScheduler.schedule(any())).thenAnswer(invocation -> { in setUp()
[all …]
DPrimaryDexopterTest.java38 import static org.mockito.Mockito.when;
117 lenient().when(mArtd.isProfileUsable(any(), any())).thenReturn(false); in setUp()
119 .when(mArtd.copyAndRewriteProfile(any(), any(), any())) in setUp()
122 .when(mArtd.copyAndRewriteEmbeddedProfile(any(), any())) in setUp()
127 .when(mDexMetadataHelperInjector.openZipFile(any())) in setUp()
131 lenient().when(mArtd.getArtifactsVisibility(any())).thenReturn(FileVisibility.NOT_FOUND); in setUp()
135 .when(mArtd.getDexoptNeeded(any(), any(), any(), any(), anyInt())) in setUp()
138 .when(mArtd.dexopt(any(), any(), any(), any(), any(), any(), any(), any(), anyInt(), in setUp()
143 .when(mArtd.createCancellationSignal()) in setUp()
147 .when(mArtd.getDexFileVisibility(mDexPath)) in setUp()
[all …]
DBackgroundDexoptJobTest.java36 import static org.mockito.Mockito.when;
94 .when(SystemProperties.getBoolean(eq("pm.dexopt.disable_bg_dexopt"), anyBoolean())) in setUp()
97 lenient().when(mPackageManagerLocal.withFilteredSnapshot()).thenReturn(mSnapshot); in setUp()
101 lenient().when(mInjector.getArtManagerLocal()).thenReturn(mArtManagerLocal); in setUp()
102 lenient().when(mInjector.getPackageManagerLocal()).thenReturn(mPackageManagerLocal); in setUp()
103 lenient().when(mInjector.getConfig()).thenReturn(mConfig); in setUp()
104 lenient().when(mInjector.getJobScheduler()).thenReturn(mJobScheduler); in setUp()
107 lenient().when(BackgroundDexoptJobService.getJob(JOB_ID)).thenReturn(mBackgroundDexoptJob); in setUp()
114 .when(mJobService) in setUp()
118 .when(mJobParameters.getStopReason()) in setUp()
[all …]
DPrimaryDexopterParameterizedTest.java40 import static org.mockito.Mockito.when;
231 lenient().when(mInjector.isSystemUiPackage(any())).thenReturn(mParams.mIsSystemUi); in setUp()
232 lenient().when(mInjector.isLauncherPackage(any())).thenReturn(mParams.mIsLauncher); in setUp()
233 lenient().when(mInjector.isPreReboot()).thenReturn(mParams.mIsPreReboot); in setUp()
236 .when(SystemProperties.getBoolean(eq("dalvik.vm.always_debuggable"), anyBoolean())) in setUp()
239 lenient().when(mPkg.isVmSafeMode()).thenReturn(mParams.mIsVmSafeMode); in setUp()
240 lenient().when(mPkg.isDebuggable()).thenReturn(mParams.mIsDebuggable); in setUp()
241 lenient().when(mPkg.getTargetSdkVersion()).thenReturn(123); in setUp()
243 .when(mPkgState.getHiddenApiEnforcementPolicy()) in setUp()
245 lenient().when(mPkg.isUseEmbeddedDex()).thenReturn(mParams.mIsUseEmbeddedDex); in setUp()
[all …]
DReasonMappingTest.java24 import static org.mockito.Mockito.when;
45 when(SystemProperties.get("pm.dexopt.foo")).thenReturn("speed"); in testGetCompilerFilterForReason()
51 when(SystemProperties.get("pm.dexopt.foo")).thenReturn("invalid-filter"); in testGetCompilerFilterForReasonInvalidFilter()
62 when(SystemProperties.get("pm.dexopt.shared")).thenReturn("speed"); in testGetCompilerFilterForShared()
68 when(SystemProperties.get("pm.dexopt.shared")).thenReturn("speed-profile"); in testGetCompilerFilterForSharedProfileGuidedFilter()
86 .when(SystemProperties.getInt(eq("pm.dexopt.bg-dexopt.concurrency"), anyInt())) in testGetConcurrencyForReason()
DDexoptHelperTest.java38 import static org.mockito.Mockito.when;
123 lenient().when(mAhm.isHibernatingGlobally(any())).thenReturn(false); in setUp()
124 lenient().when(mAhm.isOatArtifactDeletionEnabled()).thenReturn(true); in setUp()
140 .when(mInjector.getPrimaryDexopter(any(), any(), any(), any())) in setUp()
142 lenient().when(mPrimaryDexopter.dexopt()).thenReturn(mPrimaryResults); in setUp()
145 .when(mInjector.getSecondaryDexopter(any(), any(), any(), any())) in setUp()
147 lenient().when(mSecondaryDexopter.dexopt()).thenReturn(mSecondaryResults); in setUp()
157 lenient().when(mInjector.getAppHibernationManager()).thenReturn(mAhm); in setUp()
158 lenient().when(mInjector.getConfig()).thenReturn(mConfig); in setUp()
175 lenient().when(failingPrimaryDexopter.dexopt()).thenReturn(partialFailureResults); in testDexopt()
[all …]
DArtdRefCacheTest.java62 .when(mInjector.createScheduledExecutor()) in setUp()
64 lenient().when(mInjector.getArtd()).thenReturn(mArtd); in setUp()
66 lenient().when(mArtd.asBinder()).thenReturn(mBinder); in setUp()
162 .when(mBinder) in testBinderDied()
185 .when(mBinder) in testComplex()
/art/test/972-default-imt-collision/smali/
DKlass.smali20 # System.out.println("FAILED TO THROW AbstractMethodError when calling notImplementedMethod0…
24 # System.out.println("FAILED TO THROW AbstractMethodError when calling notImplementedMethod1…
28 # System.out.println("FAILED TO THROW AbstractMethodError when calling notImplementedMethod2…
32 # System.out.println("FAILED TO THROW AbstractMethodError when calling notImplementedMethod3…
36 # System.out.println("FAILED TO THROW AbstractMethodError when calling notImplementedMethod4…
40 # System.out.println("FAILED TO THROW AbstractMethodError when calling notImplementedMethod5…
44 # System.out.println("FAILED TO THROW AbstractMethodError when calling notImplementedMethod6…
48 # System.out.println("FAILED TO THROW AbstractMethodError when calling notImplementedMethod7…
52 # System.out.println("FAILED TO THROW AbstractMethodError when calling notImplementedMethod8…
56 # System.out.println("FAILED TO THROW AbstractMethodError when calling notImplementedMethod9…
[all …]
/art/libartservice/service/javatests/com/android/server/art/prereboot/
DPreRebootStatsReporterTest.java29 import static org.mockito.Mockito.when;
65 lenient().when(mPackageManagerLocal.withFilteredSnapshot()).thenReturn(mSnapshot); in setUp()
69 lenient().when(mInjector.getFilename()).thenReturn(mTempFile.getAbsolutePath()); in setUp()
71 lenient().when(mInjector.getPackageManagerLocal()).thenReturn(mPackageManagerLocal); in setUp()
72 lenient().when(mInjector.getArtManagerLocal()).thenReturn(mArtManagerLocal); in setUp()
79 doReturn(50l).when(mInjector).getCurrentTimeMillis(); in testSuccess()
88 doReturn(200l).when(mInjector).getCurrentTimeMillis(); in testSuccess()
120 doReturn(300l).when(mInjector).getCurrentTimeMillis(); in testSuccess()
138 doReturn(400l).when(mInjector).getCurrentTimeMillis(); in testSuccess()
176 doReturn(600l).when(mInjector).getCurrentTimeMillis(); in testSuccess()
[all …]
/art/odrefresh/
Dodr_compilation_log.cc48 is >> entry.when >> std::ws; in operator >>()
66 os << entry.when << kSpace; in operator <<()
76 lhs.trigger == rhs.trigger && lhs.when == rhs.when && lhs.exit_code == rhs.exit_code; in operator ==()
172 time_t when, in Log() argument
177 when, in Log()
215 const time_t last_attempt = entries_.back().when; in ShouldAttemptCompile()
Dodr_compilation_log.h37 time_t when; member
84 time_t when,
/art/test/166-bad-interface-super/
Dexpected-stdout.txt1 Caught java.lang.ClassFormatError when trying to resolve BadSuper1.
2 Caught java.lang.ClassFormatError when trying to resolve BadSuper2.
/art/test/476-checker-ctor-memory-barrier/
Dinfo.txt1 Tests if we add memory barriers on constructors when needed (i.e when the
/art/test/594-load-string-regression/
Dinfo.txt1 Regression test for LoadString listing side effects when it doesn't have any
2 and triggering a DCHECK() failure when merging ClinitCheck into NewInstance.
/art/test/073-mismatched-field/
Dinfo.txt1 Test behavior when an instance field is overlapped (through separate
3 and throw an IncompatibleClassChangeError when the field is accessed.
/art/test/066-mismatched-super/
Dinfo.txt2 1. What happens when class A extends abstract class B, but somebody
4 2. What happens when class A extends a class B, but somebody
/art/test/099-vmdebug/
Dexpected-stdout.txt8 Test starting when already started
11 Test stopping when already stopped
/art/test/092-locale/src/
DMain.java73 Date when = usaCal.getTime(); in testCalendar() local
77 + fmt.format(when)); in testCalendar()
89 when = franceCal.getTime(); in testCalendar()
93 + fmt.format(when)); in testCalendar()

123456789