/packages/modules/Profiling/framework/java/android/os/ |
D | ProfilingResult.java | 32 public final class ProfilingResult implements Parcelable { class 87 ProfilingResult(@ErrorCode int errorCode, String resultFilePath, String tag, in ProfilingResult() method in ProfilingResult 95 private ProfilingResult(@NonNull Parcel in) { in ProfilingResult() method in ProfilingResult 115 public @NonNull static final Creator<ProfilingResult> CREATOR = 116 new Creator<ProfilingResult>() { 118 public ProfilingResult createFromParcel(Parcel in) { 119 return new ProfilingResult(in); 123 public ProfilingResult[] newArray(int size) { 124 return new ProfilingResult[size];
|
D | ProfilingManager.java | 208 @Nullable Consumer<ProfilingResult> listener) { in requestProfiling() 226 new ProfilingResult(ProfilingResult.ERROR_UNKNOWN, null, tag, in requestProfiling() 235 new ProfilingResult(ProfilingResult.ERROR_UNKNOWN, null, tag, in requestProfiling() 264 new ProfilingResult(ProfilingResult.ERROR_UNKNOWN, null, tag, in requestProfiling() 284 @NonNull Consumer<ProfilingResult> listener) { in registerForAllProfilingResults() 293 executor.execute(() -> listener.accept(new ProfilingResult( in registerForAllProfilingResults() 294 ProfilingResult.ERROR_UNKNOWN, null, null, in registerForAllProfilingResults() 324 @Nullable Consumer<ProfilingResult> listener) { in unregisterForAllProfilingResults() 400 && status == ProfilingResult.ERROR_NONE; in getOrCreateIProfilingServiceLocked() 430 new ProfilingResult(overrideStatusToError in getOrCreateIProfilingServiceLocked() [all …]
|
/packages/modules/Profiling/framework/api/ |
D | current.txt | 5 …l java.util.concurrent.Executor, @NonNull java.util.function.Consumer<android.os.ProfilingResult>); 6 … java.util.concurrent.Executor, @Nullable java.util.function.Consumer<android.os.ProfilingResult>); 7 …nregisterForAllProfilingResults(@Nullable java.util.function.Consumer<android.os.ProfilingResult>); 14 …@FlaggedApi("android.os.profiling.telemetry_apis") public final class ProfilingResult implements a… 21 …field @NonNull public static final android.os.Parcelable.Creator<android.os.ProfilingResult> CREAT…
|
/packages/modules/Profiling/tests/cts/src/android/profiling/cts/ |
D | ProfilingFrameworkTests.java | 36 import android.os.ProfilingResult; 173 assertEquals(ProfilingResult.ERROR_FAILED_INVALID_REQUEST, callback.mResult.getErrorCode()); in testInvalidProfilingType() 200 assertEquals(ProfilingResult.ERROR_FAILED_INVALID_REQUEST, callback.mResult.getErrorCode()); in testInvalidProfilingParams() 656 assertEquals(ProfilingResult.ERROR_FAILED_INVALID_REQUEST, callback.mResult.getErrorCode()); in testJavaHeapDumpKillswitchEnabled() 682 assertEquals(ProfilingResult.ERROR_FAILED_INVALID_REQUEST, callback.mResult.getErrorCode()); in testHeapProfileKillswitchEnabled() 709 assertEquals(ProfilingResult.ERROR_FAILED_INVALID_REQUEST, callback.mResult.getErrorCode()); in testStackSamplingKillswitchEnabled() 735 assertEquals(ProfilingResult.ERROR_FAILED_INVALID_REQUEST, callback.mResult.getErrorCode()); in testSystemTraceKillswitchEnabled() 902 private void confirmCollectionSuccess(ProfilingResult result, String suffix) { in confirmCollectionSuccess() 904 assertEquals(ProfilingResult.ERROR_NONE, result.getErrorCode()); in confirmCollectionSuccess() 916 private void dumpTrace(ProfilingResult result) { in dumpTrace() [all …]
|
D | ProfilingServiceTests.java | 40 import android.os.ProfilingResult; 219 ProfilingResult.ERROR_FAILED_PROFILING_IN_PROGRESS, REQUEST_TAG, false); in testRequestProfiling_ProfilingRunning_Fails() 241 ProfilingResult.ERROR_FAILED_INVALID_REQUEST, REQUEST_TAG, true); in testRequestProfiling_InvalidRequest_Fails() 258 ProfilingResult.ERROR_UNKNOWN, REQUEST_TAG, true); in testRequestProfiling_PackageNameNotFound_Fails() 275 ProfilingResult.ERROR_FAILED_INVALID_REQUEST, REQUEST_TAG, true); in testRequestProfiling_PackageNameNotAssociatedWithCaller_Fails() 299 ProfilingResult.ERROR_FAILED_RATE_LIMIT_PROCESS, REQUEST_TAG, false); in testRequestProfiling_RateLimitBlocked_Fails() 320 ProfilingResult.ERROR_UNKNOWN, REQUEST_TAG, true); in testRequestProfiling_Allowed_PerfettoPermissions_Fails() 784 assertEquals(ProfilingResult.ERROR_FAILED_POST_PROCESSING, callback.mStatus); in testQueuedResult_ProfilingFinished() 821 assertEquals(ProfilingResult.ERROR_FAILED_POST_PROCESSING, callback.mStatus); in testQueuedResult_TraceUnredacted() 861 assertEquals(ProfilingResult.ERROR_FAILED_POST_PROCESSING, callback.mStatus); in testQueuedResult_TraceRedacted() [all …]
|
/packages/modules/Profiling/service/java/com/android/os/profiling/ |
D | ProfilingService.java | 35 import android.os.ProfilingResult; 372 ProfilingResult.ERROR_FAILED_INVALID_REQUEST, null, tag, in requestProfiling() 383 ProfilingResult.ERROR_FAILED_PROFILING_IN_PROGRESS, null, tag, null); in requestProfiling() 389 ProfilingResult.ERROR_UNKNOWN, null, tag, "Error communicating with perfetto"); in requestProfiling() 397 ProfilingResult.ERROR_UNKNOWN, null, tag, "Couldn't determine package name"); in requestProfiling() 406 ProfilingResult.ERROR_UNKNOWN, null, tag, "Couldn't determine package name"); in requestProfiling() 421 ProfilingResult.ERROR_FAILED_INVALID_REQUEST, null, tag, in requestProfiling() 445 ProfilingResult.ERROR_FAILED_INVALID_REQUEST, null, tag, e.getMessage()); in requestProfiling() 451 ProfilingResult.ERROR_UNKNOWN, null, tag, "Perfetto error"); in requestProfiling() 742 processResultCallback(session, ProfilingResult.ERROR_FAILED_INVALID_REQUEST, in startProfiling() [all …]
|
D | RateLimiter.java | 25 import android.os.ProfilingResult; 523 return ProfilingResult.ERROR_FAILED_RATE_LIMIT_PROCESS; in statusToResult() 525 return ProfilingResult.ERROR_FAILED_RATE_LIMIT_SYSTEM; in statusToResult() 527 return ProfilingResult.ERROR_UNKNOWN; in statusToResult()
|