Home
last modified time | relevance | path

Searched refs:profileType (Results 1 – 11 of 11) sorted by relevance

/frameworks/base/core/java/android/content/pm/dex/
DIArtManager.aidl47 void snapshotRuntimeProfile(int profileType, in String packageName, in snapshotRuntimeProfile() argument
57 boolean isRuntimeProfilingEnabled(int profileType, String callingPackage); in isRuntimeProfilingEnabled() argument
DArtManager.java108 public void snapshotRuntimeProfile(@ProfileType int profileType, @Nullable String packageName, in snapshotRuntimeProfile() argument
116 mArtManager.snapshotRuntimeProfile(profileType, packageName, codePath, delegate, in snapshotRuntimeProfile()
132 public boolean isRuntimeProfilingEnabled(@ProfileType int profileType) { in isRuntimeProfilingEnabled() argument
134 return mArtManager.isRuntimeProfilingEnabled(profileType, mContext.getOpPackageName()); in isRuntimeProfilingEnabled()
/frameworks/base/services/core/java/com/android/server/pm/dex/
DArtManagerService.java151 private boolean checkShellPermissions(@ProfileType int profileType, String packageName, in checkShellPermissions() argument
159 if (profileType == ArtManager.PROFILE_BOOT_IMAGE) { in checkShellPermissions()
180 public void snapshotRuntimeProfile(@ProfileType int profileType, @Nullable String packageName, in snapshotRuntimeProfile() argument
184 if (!checkShellPermissions(profileType, packageName, callingUid) && in snapshotRuntimeProfile()
196 boolean bootImageProfile = profileType == ArtManager.PROFILE_BOOT_IMAGE; in snapshotRuntimeProfile()
203 if (!isRuntimeProfilingEnabled(profileType, callingPackage)) { in snapshotRuntimeProfile()
204 throw new IllegalStateException("Runtime profiling is not enabled for " + profileType); in snapshotRuntimeProfile()
314 public boolean isRuntimeProfilingEnabled(@ProfileType int profileType, String callingPackage) { in isRuntimeProfilingEnabled() argument
320 switch (profileType) { in isRuntimeProfilingEnabled()
332 throw new IllegalArgumentException("Invalid profile type:" + profileType); in isRuntimeProfilingEnabled()
/frameworks/base/core/java/android/os/
DUserManager.java2564 final String profileType = getProfileType(userId); in isProfile() local
2565 return profileType != null && !profileType.equals(""); in isProfile()
2597 final String profileType = mService.getProfileType(userId); in getProfileType() local
2598 if (profileType != null) { in getProfileType()
2599 return mProfileTypeOfProcessUser = profileType.intern(); in getProfileType()
5345 String profileType = mService.getProfileType(query);
5346 if (profileType != null) profileType = profileType.intern();
5347 return profileType;
/frameworks/base/services/core/java/com/android/server/am/
DAppProfiler.java1627 private void stopProfilerLPf(ProcessRecord proc, int profileType) { in stopProfilerLPf() argument
1630 profileType = mProfileType; in stopProfilerLPf()
1641 thread.profilerControl(false, null, profileType); in stopProfilerLPf()
1673 ProfilerInfo profilerInfo, int profileType) { in profileControlLPf() argument
1680 mProfileType = profileType; in profileControlLPf()
1688 proc.mProfile.getThread().profilerControl(start, profilerInfo, profileType); in profileControlLPf()
1704 stopProfilerLPf(proc, profileType); in profileControlLPf()
DActivityManagerShellCommand.java883 int profileType = 0;
960 if (!mInterface.profileControl(process, userId, start, profilerInfo, profileType)) {
DActivityManagerService.java15979 ProfilerInfo profilerInfo, int profileType) throws RemoteException { in profileControl() argument
16004 return mAppProfiler.profileControlLPf(proc, start, profilerInfo, profileType); in profileControl()
/frameworks/base/core/java/android/app/
DIApplicationThread.aidl103 void profilerControl(boolean start, in ProfilerInfo profilerInfo, int profileType); in profilerControl() argument
DIActivityManager.aidl299 in ProfilerInfo profilerInfo, int profileType); in profileControl() argument
DActivityThread.java1274 public void profilerControl(boolean start, ProfilerInfo profilerInfo, int profileType) { in profilerControl() argument
1275 sendMessage(H.PROFILER_CONTROL, profilerInfo, start ? 1 : 0, profileType); in profilerControl()
6189 final void handleProfilerControl(boolean start, ProfilerInfo profilerInfo, int profileType) { in handleProfilerControl() argument
6192 switch (profileType) { in handleProfilerControl()
6205 switch (profileType) { in handleProfilerControl()
/frameworks/base/services/core/java/com/android/server/pm/
DPackageManagerShellCommand.java2062 final int profileType = isBootImage in runSnapshotProfile() local
2064 if (!mInterface.getArtManager().isRuntimeProfilingEnabled(profileType, callingPackage)) { in runSnapshotProfile()
2068 mInterface.getArtManager().snapshotRuntimeProfile(profileType, packageName, in runSnapshotProfile()