/art/libartservice/service/javatests/com/android/server/art/ |
D | PrimaryDexopterTestBase.java | 76 lenient().when(mInjector.getArtd()).thenReturn(mArtd); in setUp() 77 lenient().when(mInjector.isSystemUiPackage(any())).thenReturn(false); in setUp() 78 lenient().when(mInjector.isLauncherPackage(any())).thenReturn(false); in setUp() 79 lenient().when(mInjector.getUserManager()).thenReturn(mUserManager); in setUp() 80 lenient().when(mInjector.getDexUseManager()).thenReturn(mDexUseManager); in setUp() 81 lenient().when(mInjector.getStorageManager()).thenReturn(mStorageManager); in setUp() 82 lenient().when(mInjector.getArtVersion()).thenReturn(ART_VERSION); in setUp() 85 .when(SystemProperties.get("dalvik.vm.systemuicompilerfilter")) in setUp() 88 .when(SystemProperties.getBoolean(eq("dalvik.vm.always_debuggable"), anyBoolean())) in setUp() 90 lenient().when(SystemProperties.get("dalvik.vm.appimageformat")).thenReturn("lz4"); in setUp() [all …]
|
D | PrimaryDexUtilsTest.java | 134 lenient().when(baseSplit.getPath()).thenReturn("/data/app/foo/base.apk"); in createPackage() 135 lenient().when(baseSplit.isHasCode()).thenReturn(true); in createPackage() 136 lenient().when(baseSplit.getClassLoaderName()).thenReturn(PathClassLoader.class.getName()); in createPackage() 139 lenient().when(split0.getName()).thenReturn("split_0"); in createPackage() 140 lenient().when(split0.getPath()).thenReturn("/data/app/foo/split_0.apk"); in createPackage() 141 lenient().when(split0.isHasCode()).thenReturn(true); in createPackage() 144 lenient().when(split1.getName()).thenReturn("split_1"); in createPackage() 145 lenient().when(split1.getPath()).thenReturn("/data/app/foo/split_1.apk"); in createPackage() 146 lenient().when(split1.isHasCode()).thenReturn(false); in createPackage() 149 lenient().when(split2.getName()).thenReturn("split_2"); in createPackage() [all …]
|
D | SecondaryDexopterTest.java | 37 import static org.mockito.Mockito.when; 115 .when(SystemProperties.getBoolean(eq("dalvik.vm.always_debuggable"), anyBoolean())) in setUp() 117 lenient().when(SystemProperties.get("dalvik.vm.appimageformat")).thenReturn("lz4"); in setUp() 118 lenient().when(SystemProperties.get("pm.dexopt.shared")).thenReturn("speed"); in setUp() 122 .when(SystemProperties.get(argThat(arg -> arg.startsWith("ro.dalvik.vm.isa.")))) in setUp() 125 lenient().when(Constants.getPreferredAbi()).thenReturn("arm64-v8a"); in setUp() 126 lenient().when(Constants.getNative64BitAbi()).thenReturn("arm64-v8a"); in setUp() 127 lenient().when(Constants.getNative32BitAbi()).thenReturn("armeabi-v7a"); in setUp() 129 lenient().when(mInjector.getArtd()).thenReturn(mArtd); in setUp() 130 lenient().when(mInjector.isSystemUiPackage(any())).thenReturn(false); in setUp() [all …]
|
D | DumpHelperTest.java | 77 lenient().when(Constants.getPreferredAbi()).thenReturn("arm64-v8a"); in setUp() 78 lenient().when(Constants.getNative64BitAbi()).thenReturn("arm64-v8a"); in setUp() 79 lenient().when(Constants.getNative32BitAbi()).thenReturn("armeabi-v7a"); in setUp() 83 .when(SystemProperties.get(argThat(arg -> arg.startsWith("ro.dalvik.vm.isa.")))) in setUp() 86 lenient().when(mInjector.getArtManagerLocal()).thenReturn(mArtManagerLocal); in setUp() 87 lenient().when(mInjector.getDexUseManager()).thenReturn(mDexUseManagerLocal); in setUp() 88 lenient().when(mInjector.getArtd()).thenReturn(mArtd); in setUp() 91 lenient().when(mSnapshot.getPackageStates()).thenReturn(pkgStates); in setUp() 93 lenient().when(mSnapshot.getPackageState(entry.getKey())).thenReturn(entry.getValue()); in setUp() 145 lenient().when(pkgState.getPackageName()).thenReturn(packageName); in createPackageState() [all …]
|
D | ArtManagerLocalTest.java | 45 import static org.mockito.Mockito.when; 152 lenient().when(mInjector.getPackageManagerLocal()).thenReturn(mPackageManagerLocal); in setUp() 153 lenient().when(mInjector.getArtd()).thenReturn(mArtd); in setUp() 154 lenient().when(mInjector.getDexoptHelper()).thenReturn(mDexoptHelper); in setUp() 155 lenient().when(mInjector.getConfig()).thenReturn(mConfig); in setUp() 156 lenient().when(mInjector.getAppHibernationManager()).thenReturn(mAppHibernationManager); in setUp() 157 lenient().when(mInjector.getUserManager()).thenReturn(mUserManager); in setUp() 158 lenient().when(mInjector.isSystemUiPackage(any())).thenReturn(false); in setUp() 159 lenient().when(mInjector.isLauncherPackage(any())).thenReturn(false); in setUp() 160 lenient().when(mInjector.getDexUseManager()).thenReturn(mDexUseManager); in setUp() [all …]
|
D | UtilsTest.java | 24 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 …]
|
D | DexUseManagerTest.java | 31 import static org.mockito.Mockito.when; 111 .when(SystemProperties.get(argThat(arg -> arg.startsWith("ro.dalvik.vm.isa.")))) in setUp() 114 lenient().when(Constants.getPreferredAbi()).thenReturn("arm64-v8a"); in setUp() 115 lenient().when(Constants.getNative64BitAbi()).thenReturn("arm64-v8a"); in setUp() 116 lenient().when(Constants.getNative32BitAbi()).thenReturn("armeabi-v7a"); in setUp() 118 lenient().when(Process.isIsolatedUid(anyInt())).thenReturn(false); in setUp() 130 lenient().when(mSnapshot.getPackageStates()).thenReturn(mPackageStates); in setUp() 134 .when(mContext.registerReceiver(mBroadcastReceiverCaptor.capture(), any())) in setUp() 150 lenient().when(mInjector.getArtd()).thenReturn(mArtd); in setUp() 151 lenient().when(mInjector.getCurrentTimeMillis()).thenReturn(0l); in setUp() [all …]
|
D | BackgroundDexoptJobTest.java | 32 import static org.mockito.Mockito.when; 87 .when(SystemProperties.getBoolean(eq("pm.dexopt.disable_bg_dexopt"), anyBoolean())) in setUp() 90 lenient().when(mPackageManagerLocal.withFilteredSnapshot()).thenReturn(mSnapshot); in setUp() 94 lenient().when(mInjector.getArtManagerLocal()).thenReturn(mArtManagerLocal); in setUp() 95 lenient().when(mInjector.getPackageManagerLocal()).thenReturn(mPackageManagerLocal); in setUp() 96 lenient().when(mInjector.getConfig()).thenReturn(mConfig); in setUp() 97 lenient().when(mInjector.getJobScheduler()).thenReturn(mJobScheduler); in setUp() 100 lenient().when(BackgroundDexoptJobService.getJob()).thenReturn(mBackgroundDexoptJob); in setUp() 107 .when(mJobService) in setUp() 111 .when(mJobParameters.getStopReason()) in setUp() [all …]
|
D | PrimaryDexopterParameterizedTest.java | 40 import static org.mockito.Mockito.when; 179 lenient().when(mInjector.isSystemUiPackage(any())).thenReturn(mParams.mIsSystemUi); in setUp() 180 lenient().when(mInjector.isLauncherPackage(any())).thenReturn(mParams.mIsLauncher); in setUp() 183 .when(SystemProperties.getBoolean(eq("dalvik.vm.always_debuggable"), anyBoolean())) in setUp() 186 lenient().when(mPkg.isVmSafeMode()).thenReturn(mParams.mIsVmSafeMode); in setUp() 187 lenient().when(mPkg.isDebuggable()).thenReturn(mParams.mIsDebuggable); in setUp() 188 lenient().when(mPkg.getTargetSdkVersion()).thenReturn(123); in setUp() 190 .when(mPkgState.getHiddenApiEnforcementPolicy()) in setUp() 192 lenient().when(mPkg.isUseEmbeddedDex()).thenReturn(mParams.mIsUseEmbeddedDex); in setUp() 193 lenient().when(mPkgState.isSystem()).thenReturn(mParams.mIsSystem); in setUp() [all …]
|
D | PrimaryDexopterTest.java | 39 import static org.mockito.Mockito.when; 111 lenient().when(mArtd.isProfileUsable(any(), any())).thenReturn(false); in setUp() 112 lenient().when(mArtd.copyAndRewriteProfile(any(), any(), any())).thenReturn(false); in setUp() 115 lenient().when(mArtd.getDmFileVisibility(any())).thenReturn(FileVisibility.NOT_FOUND); in setUp() 119 .when(mArtd.getDexoptNeeded(any(), any(), any(), any(), anyInt())) in setUp() 122 .when(mArtd.dexopt(any(), any(), any(), any(), any(), any(), any(), any(), anyInt(), in setUp() 127 .when(mArtd.createCancellationSignal()) in setUp() 140 .when(mArtd) in testDexoptInputVdex() 143 .when(mArtd) in testDexoptInputVdex() 149 .when(mArtd) in testDexoptInputVdex() [all …]
|
D | ReasonMappingTest.java | 23 import static org.mockito.Mockito.when; 44 when(SystemProperties.get("pm.dexopt.foo")).thenReturn("speed"); in testGetCompilerFilterForReason() 50 when(SystemProperties.get("pm.dexopt.foo")).thenReturn("invalid-filter"); in testGetCompilerFilterForReasonInvalidFilter() 61 when(SystemProperties.get("pm.dexopt.shared")).thenReturn("speed"); in testGetCompilerFilterForShared() 67 when(SystemProperties.get("pm.dexopt.shared")).thenReturn("speed-profile"); in testGetCompilerFilterForSharedProfileGuidedFilter() 84 when(SystemProperties.getInt(eq("pm.dexopt.bg-dexopt.concurrency"), anyInt())) in testGetConcurrencyForReason()
|
D | DexoptHelperTest.java | 38 import static org.mockito.Mockito.when; 126 .when(mPowerManager.newWakeLock(eq(PowerManager.PARTIAL_WAKE_LOCK), any())) in setUp() 129 lenient().when(mAhm.isHibernatingGlobally(any())).thenReturn(false); in setUp() 130 lenient().when(mAhm.isOatArtifactDeletionEnabled()).thenReturn(true); in setUp() 146 .when(mInjector.getPrimaryDexopter(any(), any(), any(), any())) in setUp() 148 lenient().when(mPrimaryDexopter.dexopt()).thenReturn(mPrimaryResults); in setUp() 151 .when(mInjector.getSecondaryDexopter(any(), any(), any(), any())) in setUp() 153 lenient().when(mSecondaryDexopter.dexopt()).thenReturn(mSecondaryResults); in setUp() 163 lenient().when(mInjector.getAppHibernationManager()).thenReturn(mAhm); in setUp() 164 lenient().when(mInjector.getPowerManager()).thenReturn(mPowerManager); in setUp() [all …]
|
/art/test/972-default-imt-collision/smali/ |
D | Klass.smali | 20 # 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/odrefresh/ |
D | odr_compilation_log.cc | 48 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()
|
D | odr_compilation_log.h | 37 time_t when; member 84 time_t when,
|
/art/test/476-checker-ctor-memory-barrier/ |
D | info.txt | 1 Tests if we add memory barriers on constructors when needed (i.e when the
|
/art/test/166-bad-interface-super/ |
D | expected-stdout.txt | 1 Caught java.lang.ClassFormatError when trying to resolve BadSuper1. 2 Caught java.lang.ClassFormatError when trying to resolve BadSuper2.
|
/art/test/594-load-string-regression/ |
D | info.txt | 1 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/ |
D | info.txt | 1 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/ |
D | info.txt | 2 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/ |
D | expected-stdout.txt | 8 Test starting when already started 11 Test stopping when already stopped
|
/art/test/092-locale/src/ |
D | Main.java | 73 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()
|
/art/runtime/ |
D | debugger.cc | 361 int Dbg::DdmHandleHpifChunk(HpifWhen when) { in DdmHandleHpifChunk() argument 362 if (when == HPIF_WHEN_NOW) { in DdmHandleHpifChunk() 363 DdmSendHeapInfo(when); in DdmHandleHpifChunk() 367 if (when != HPIF_WHEN_NEVER && when != HPIF_WHEN_NEXT_GC && when != HPIF_WHEN_EVERY_GC) { in DdmHandleHpifChunk() 368 LOG(ERROR) << "invalid HpifWhen value: " << static_cast<int>(when); in DdmHandleHpifChunk() 372 gDdmHpifWhen = when; in DdmHandleHpifChunk() 376 bool Dbg::DdmHandleHpsgNhsgChunk(Dbg::HpsgWhen when, Dbg::HpsgWhat what, bool native) { in DdmHandleHpsgNhsgChunk() argument 377 if (when != HPSG_WHEN_NEVER && when != HPSG_WHEN_EVERY_GC) { in DdmHandleHpsgNhsgChunk() 378 LOG(ERROR) << "invalid HpsgWhen value: " << static_cast<int>(when); in DdmHandleHpsgNhsgChunk() 388 gDdmNhsgWhen = when; in DdmHandleHpsgNhsgChunk() [all …]
|
/art/test/961-default-iface-resolution-gen/ |
D | info.txt | 12 Care should be taken when updating the generate_smali.py script. It should always 13 return equivalent output when run multiple times and the expected output should
|
/art/test/970-iface-super-resolution-gen/ |
D | info.txt | 12 Care should be taken when updating the generate_smali.py script. It should always 13 return equivalent output when run multiple times and the expected output should
|