Home
last modified time | relevance | path

Searched refs:Trace (Results 1 – 25 of 485) sorted by relevance

12345678910>>...20

/frameworks/base/services/core/java/com/android/server/pm/permission/
DPermissionManagerServiceTracingDecorator.java24 import android.os.Trace;
42 private static final long TRACE_TAG = Trace.TRACE_TAG_PACKAGE_MANAGER;
56 Trace.traceBegin(TRACE_TAG, in backupRuntimePermissions()
61 Trace.traceEnd(TRACE_TAG); in backupRuntimePermissions()
67 Trace.traceBegin(TRACE_TAG, in restoreRuntimePermissions()
72 Trace.traceEnd(TRACE_TAG); in restoreRuntimePermissions()
78 Trace.traceBegin(TRACE_TAG, in restoreDelayedRuntimePermissions()
83 Trace.traceEnd(TRACE_TAG); in restoreDelayedRuntimePermissions()
89 Trace.traceBegin(TRACE_TAG, "TaggedTracingPermissionManagerServiceImpl#dump"); in dump()
93 Trace.traceEnd(TRACE_TAG); in dump()
[all …]
/frameworks/base/core/java/android/window/
DSurfaceSyncGroup.java31 import android.os.Trace;
203 if (Trace.isTagEnabled(Trace.TRACE_TAG_VIEW)) { in SurfaceSyncGroup()
204 Trace.instantForTrack(Trace.TRACE_TAG_VIEW, mTrackName, in SurfaceSyncGroup()
207 Trace.asyncTraceForTrackEnd(Trace.TRACE_TAG_VIEW, mTrackName, hashCode()); in SurfaceSyncGroup()
218 if (Trace.isTagEnabled(Trace.TRACE_TAG_VIEW)) { in SurfaceSyncGroup()
219 Trace.asyncTraceForTrackBegin(Trace.TRACE_TAG_VIEW, mTrackName, mName, hashCode()); in SurfaceSyncGroup()
262 if (Trace.isTagEnabled(Trace.TRACE_TAG_VIEW)) { in markSyncReady()
263 Trace.instantForTrack(Trace.TRACE_TAG_VIEW, mTrackName, "markSyncReady"); in markSyncReady()
401 if (Trace.isTagEnabled(Trace.TRACE_TAG_VIEW)) { in add()
402 Trace.asyncTraceForTrackBegin(Trace.TRACE_TAG_VIEW, mTrackName, in add()
[all …]
/frameworks/base/services/core/java/com/android/server/appop/
DAppOpsCheckingServiceTracingDecorator.java22 import android.os.Trace;
31 private static final long TRACE_TAG = Trace.TRACE_TAG_ACTIVITY_MANAGER;
41 Trace.traceBegin(TRACE_TAG, in writeState()
46 Trace.traceEnd(TRACE_TAG); in writeState()
52 Trace.traceBegin(TRACE_TAG, in readState()
57 Trace.traceEnd(TRACE_TAG); in readState()
63 Trace.traceBegin(TRACE_TAG, in shutdown()
68 Trace.traceEnd(TRACE_TAG); in shutdown()
74 Trace.traceBegin(TRACE_TAG, in systemReady()
79 Trace.traceEnd(TRACE_TAG); in systemReady()
[all …]
/frameworks/base/core/tests/coretests/src/android/os/
DTraceTest.java50 Trace.setTracingEnabled(true, 0); in testEnableDisable()
51 Trace.setTracingEnabled(false, 0); in testEnableDisable()
53 Trace.setAppTracingAllowed(true); in testEnableDisable()
54 Trace.setAppTracingAllowed(false); in testEnableDisable()
60 Trace.traceBegin(Trace.TRACE_TAG_ACTIVITY_MANAGER, TAG); in testBeginEnd()
61 Trace.traceEnd(Trace.TRACE_TAG_ACTIVITY_MANAGER); in testBeginEnd()
63 Trace.asyncTraceBegin(Trace.TRACE_TAG_ACTIVITY_MANAGER, TAG, 42); in testBeginEnd()
64 Trace.asyncTraceEnd(Trace.TRACE_TAG_ACTIVITY_MANAGER, TAG, 42); in testBeginEnd()
66 Trace.asyncTraceForTrackBegin(Trace.TRACE_TAG_ACTIVITY_MANAGER, TAG, TAG, 42); in testBeginEnd()
67 Trace.asyncTraceForTrackEnd(Trace.TRACE_TAG_ACTIVITY_MANAGER, TAG, 42); in testBeginEnd()
[all …]
/frameworks/libs/systemui/tracinglib/core/android/src-platform-api/
DTraceProxy.platform.kt19 import android.os.Trace
23 return Trace.isEnabled() in isEnabled()
27 Trace.traceCounter(Trace.TRACE_TAG_APP, counterName, counterValue) in traceCounter()
31 Trace.traceBegin(Trace.TRACE_TAG_APP, methodName) in traceBegin()
35 Trace.traceEnd(Trace.TRACE_TAG_APP) in traceEnd()
39 Trace.asyncTraceBegin(Trace.TRACE_TAG_APP, methodName, cookie) in asyncTraceBegin()
43 Trace.asyncTraceEnd(Trace.TRACE_TAG_APP, methodName, cookie) in asyncTraceEnd()
48 Trace.asyncTraceForTrackBegin(Trace.TRACE_TAG_APP, trackName, methodName, cookie) in asyncTraceForTrackBegin()
53 Trace.asyncTraceForTrackEnd(Trace.TRACE_TAG_APP, trackName, cookie) in asyncTraceForTrackEnd()
57 Trace.instant(Trace.TRACE_TAG_APP, eventName) in instant()
[all …]
/frameworks/base/core/java/com/android/internal/os/anr/
DAnrLatencyTracker.java19 import static android.os.Trace.TRACE_TAG_ACTIVITY_MANAGER;
34 import android.os.Trace;
141 Trace.traceBegin(TRACE_TAG_ACTIVITY_MANAGER, in appNotRespondingStarted()
147 Trace.traceEnd(TRACE_TAG_ACTIVITY_MANAGER); in appNotRespondingEnded()
162 Trace.asyncTraceBegin(TRACE_TAG_ACTIVITY_MANAGER, in anrRecordPlacingOnQueueWithSize()
167 Trace.traceCounter(TRACE_TAG_ACTIVITY_MANAGER, "anrRecordsQueueSize", queueSize + 1); in anrRecordPlacingOnQueueWithSize()
173 Trace.asyncTraceEnd(TRACE_TAG_ACTIVITY_MANAGER, in anrProcessingStarted()
175 Trace.traceBegin(TRACE_TAG_ACTIVITY_MANAGER, in anrProcessingStarted()
181 Trace.traceEnd(TRACE_TAG_ACTIVITY_MANAGER); in anrProcessingEnded()
188 Trace.traceBegin(TRACE_TAG_ACTIVITY_MANAGER, in dumpStackTracesStarted()
[all …]
/frameworks/base/startop/apps/ColorChanging/app/src/main/java/com/android/startop/colorchanging/
DMainActivity.java22 import android.os.Trace;
34 Trace.beginSection("gray"); in onCreate()
38 Trace.endSection(); in goRed()
40 Trace.beginSection("red"); in goRed()
44 Trace.endSection(); in goOrange()
46 Trace.beginSection("orange"); in goOrange()
50 Trace.endSection(); in goYellow()
52 Trace.beginSection("yellow"); in goYellow()
56 Trace.endSection(); in goGreen()
58 Trace.beginSection("green"); in goGreen()
[all …]
/frameworks/base/core/java/android/webkit/
DWebViewFactory.java38 import android.os.Trace;
360 Trace.traceBegin(Trace.TRACE_TAG_WEBVIEW, "WebViewFactory.getProvider()"); in getProvider()
366 Trace.traceBegin(Trace.TRACE_TAG_WEBVIEW, "WebViewFactoryProvider invocation"); in getProvider()
373 Trace.traceEnd(Trace.TRACE_TAG_WEBVIEW); in getProvider()
379 Trace.traceEnd(Trace.TRACE_TAG_WEBVIEW); in getProvider()
447 Trace.traceBegin(Trace.TRACE_TAG_WEBVIEW, in getWebViewContextAndSetProvider()
457 Trace.traceEnd(Trace.TRACE_TAG_WEBVIEW); in getWebViewContextAndSetProvider()
466 Trace.traceBegin(Trace.TRACE_TAG_WEBVIEW, "ActivityManager.addPackageDependency()"); in getWebViewContextAndSetProvider()
471 Trace.traceEnd(Trace.TRACE_TAG_WEBVIEW); in getWebViewContextAndSetProvider()
476 Trace.traceBegin(Trace.TRACE_TAG_WEBVIEW, "PackageManager.getPackageInfo()"); in getWebViewContextAndSetProvider()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/row/
DNotificationSettingsController.java24 import android.os.Trace;
73 Trace.traceBegin(Trace.TRACE_TAG_APP, TAG + ".ContentObserver.onChange"); in NotificationSettingsController()
84 Trace.traceEnd(Trace.TRACE_TAG_APP); in NotificationSettingsController()
91 Trace.traceBegin(Trace.TRACE_TAG_APP, TAG + ".UserTracker.Callback.onUserChanged"); in NotificationSettingsController()
102 Trace.traceEnd(Trace.TRACE_TAG_APP); in NotificationSettingsController()
122 Trace.traceBegin(Trace.TRACE_TAG_APP, TAG + ".addCallback"); in addCallback()
144 Trace.traceEnd(Trace.TRACE_TAG_APP); in addCallback()
148 Trace.traceBegin(Trace.TRACE_TAG_APP, TAG + ".removeCallback"); in removeCallback()
166 Trace.traceEnd(Trace.TRACE_TAG_APP); in removeCallback()
171 Trace.traceBegin(Trace.TRACE_TAG_APP, TAG + ".dump"); in dump()
[all …]
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/common/
DDisplayChangeController.java21 import android.os.Trace;
86 if (Trace.isTagEnabled(Trace.TRACE_TAG_WINDOW_MANAGER)) { in dispatchOnDisplayChange()
87 Trace.beginSection("dispatchOnDisplayChange"); in dispatchOnDisplayChange()
92 if (Trace.isTagEnabled(Trace.TRACE_TAG_WINDOW_MANAGER)) { in dispatchOnDisplayChange()
93 Trace.endSection(); in dispatchOnDisplayChange()
106 if (Trace.isTagEnabled(Trace.TRACE_TAG_WINDOW_MANAGER)) { in onDisplayChange()
107 Trace.endAsyncSection(HANDLE_DISPLAY_CHANGE_TRACE_TAG, callback.hashCode()); in onDisplayChange()
118 if (Trace.isTagEnabled(Trace.TRACE_TAG_WINDOW_MANAGER)) { in onDisplayChange()
119 Trace.beginAsyncSection(HANDLE_DISPLAY_CHANGE_TRACE_TAG, callback.hashCode()); in onDisplayChange()
/frameworks/opt/bitmap/src/com/android/bitmap/util/
DInputStreamBuffer.java130 Trace.beginSection("get"); in get()
133 Trace.endSection(); in get()
136 Trace.endSection(); in get()
160 Trace.beginSection("has"); in has()
162 Trace.endSection(); in has()
171 Trace.endSection(); in has()
175 Trace.endSection(); in has()
188 Trace.beginSection("advance to"); in advanceTo()
192 Trace.endSection(); in advanceTo()
238 Trace.endSection(); in advanceTo()
[all …]
/frameworks/opt/photoviewer/src/com/android/ex/photo/util/
DInputStreamBuffer.java130 Trace.beginSection("get"); in get()
133 Trace.endSection(); in get()
136 Trace.endSection(); in get()
160 Trace.beginSection("has"); in has()
162 Trace.endSection(); in has()
171 Trace.endSection(); in has()
175 Trace.endSection(); in has()
188 Trace.beginSection("advance to"); in advanceTo()
192 Trace.endSection(); in advanceTo()
238 Trace.endSection(); in advanceTo()
[all …]
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/transition/tracing/
DPerfettoTransitionTracer.java26 import android.os.Trace;
72 Trace.traceBegin(Trace.TRACE_TAG_WINDOW_MANAGER, "logDispatched"); in logDispatched()
76 Trace.traceEnd(Trace.TRACE_TAG_WINDOW_MANAGER); in logDispatched()
119 Trace.traceBegin(Trace.TRACE_TAG_WINDOW_MANAGER, "logMergeRequested"); in logMergeRequested()
123 Trace.traceEnd(Trace.TRACE_TAG_WINDOW_MANAGER); in logMergeRequested()
151 Trace.traceBegin(Trace.TRACE_TAG_WINDOW_MANAGER, "logMerged"); in logMerged()
155 Trace.traceEnd(Trace.TRACE_TAG_WINDOW_MANAGER); in logMerged()
182 Trace.traceBegin(Trace.TRACE_TAG_WINDOW_MANAGER, "logAborted"); in logAborted()
186 Trace.traceEnd(Trace.TRACE_TAG_WINDOW_MANAGER); in logAborted()
/frameworks/base/services/core/java/com/android/server/wm/
DPerfettoTransitionTracer.java25 import android.os.Trace;
69 Trace.traceBegin(Trace.TRACE_TAG_WINDOW_MANAGER, "logSentTransition"); in logSentTransition()
73 Trace.traceEnd(Trace.TRACE_TAG_WINDOW_MANAGER); in logSentTransition()
113 Trace.traceBegin(Trace.TRACE_TAG_WINDOW_MANAGER, "logFinishedTransition"); in logFinishedTransition()
117 Trace.traceEnd(Trace.TRACE_TAG_WINDOW_MANAGER); in logFinishedTransition()
145 Trace.traceBegin(Trace.TRACE_TAG_WINDOW_MANAGER, "logAbortedTransition"); in logAbortedTransition()
149 Trace.traceEnd(Trace.TRACE_TAG_WINDOW_MANAGER); in logAbortedTransition()
171 Trace.traceBegin(Trace.TRACE_TAG_WINDOW_MANAGER, "logRemovingStartingWindow"); in logRemovingStartingWindow()
175 Trace.traceEnd(Trace.TRACE_TAG_WINDOW_MANAGER); in logRemovingStartingWindow()
DRemoteDisplayChangeController.java24 import android.os.Trace;
88 if (Trace.isTagEnabled(Trace.TRACE_TAG_WINDOW_MANAGER)) { in performRemoteDisplayChange()
89 Trace.beginAsyncSection(REMOTE_DISPLAY_CHANGE_TRACE_TAG, callback.hashCode()); in performRemoteDisplayChange()
133 if (Trace.isTagEnabled(Trace.TRACE_TAG_WINDOW_MANAGER)) { in onContinueTimedOut()
134 Trace.endAsyncSection(REMOTE_DISPLAY_CHANGE_TRACE_TAG, callback.hashCode()); in onContinueTimedOut()
167 if (Trace.isTagEnabled(Trace.TRACE_TAG_WINDOW_MANAGER)) { in continueDisplayChange()
168 Trace.endAsyncSection(REMOTE_DISPLAY_CHANGE_TRACE_TAG, in continueDisplayChange()
183 if (Trace.isTagEnabled(Trace.TRACE_TAG_WINDOW_MANAGER)) { in continueDisplayChange()
184 Trace.endAsyncSection(REMOTE_DISPLAY_CHANGE_TRACE_TAG, callback.hashCode()); in continueDisplayChange()
/frameworks/base/core/tests/mockingcoretests/src/android/util/
DTimingsTraceLogTest.java18 import static android.os.Trace.TRACE_TAG_APP;
32 import android.os.Trace;
65 .spyStatic(Trace.class) in startMockSession()
106 TimingsTraceLog log = new TimingsTraceLog("TEST", Trace.TRACE_TAG_APP); in testGetUnfinishedTracesForDebug()
135 verify((MockedVoidMethod) () -> Trace.traceBegin(TRACE_TAG_APP, "test")); in testOneLevel()
136 verify((MockedVoidMethod) () -> Trace.traceEnd(TRACE_TAG_APP)); in testOneLevel()
142 TimingsTraceLog log = new TimingsTraceLog(TAG, Trace.TRACE_TAG_APP, 10); in testMultipleLevels()
148 verify((MockedVoidMethod) () -> Trace.traceBegin(TRACE_TAG_APP, "L1")); in testMultipleLevels()
149 verify((MockedVoidMethod) () -> Trace.traceBegin(TRACE_TAG_APP, "L2")); in testMultipleLevels()
150 verify((MockedVoidMethod) () -> Trace.traceEnd(TRACE_TAG_APP), times(2)); // L1 and L2 in testMultipleLevels()
[all …]
/frameworks/base/tools/aapt2/trace/
DTraceBuffer.h33 class Trace {
35 Trace(const char* tag);
36 Trace(std::string tag);
37 Trace(std::string_view tag, const std::vector<android::StringPiece>& args);
38 ~Trace();
66 #define TRACE_CALL() Trace __t(__func__)
67 #define TRACE_NAME(tag) Trace __t(tag)
68 #define TRACE_NAME_ARGS(tag, args) Trace __t(tag, args)
/frameworks/base/services/core/java/com/android/server/health/
DHealthRegCallbackAidl.java25 import android.os.Trace;
65 Trace.traceBegin(Trace.TRACE_TAG_SYSTEM_SERVER, "HealthUnregisterCallbackAidl"); in onRegistration()
69 Trace.traceEnd(Trace.TRACE_TAG_SYSTEM_SERVER); in onRegistration()
72 Trace.traceBegin(Trace.TRACE_TAG_SYSTEM_SERVER, "HealthRegisterCallbackAidl"); in onRegistration()
76 Trace.traceEnd(Trace.TRACE_TAG_SYSTEM_SERVER); in onRegistration()
/frameworks/base/services/core/java/com/android/server/display/
DDisplayOffloadSessionImpl.java23 import android.os.Trace;
111 Trace.traceBegin(Trace.TRACE_TAG_POWER, "DisplayOffloader#startOffload"); in startOffload()
119 Trace.traceEnd(Trace.TRACE_TAG_POWER); in startOffload()
130 Trace.traceBegin(Trace.TRACE_TAG_POWER, "DisplayOffloader#stopOffload"); in stopOffload()
138 Trace.traceEnd(Trace.TRACE_TAG_POWER); in stopOffload()
/frameworks/libs/systemui/tracinglib/core/android/src-public-api/src/
DTraceProxy.jetpack.kt19 import androidx.tracing.Trace
24 return Trace.isEnabled() in isEnabled()
28 Trace.setCounter(counterName, counterValue) in traceCounter()
32 Trace.beginSection(methodName) in traceBegin()
36 Trace.endSection() in traceEnd()
40 Trace.beginAsyncSection(methodName, cookie) in asyncTraceBegin()
44 Trace.endAsyncSection(methodName, cookie) in asyncTraceEnd()
71 if (Trace.isEnabled()) { in instantForTrack()
/frameworks/base/packages/SystemUI/src/com/android/systemui/wallpapers/
DImageWallpaper.java39 import android.os.Trace;
187 Trace.beginSection("ImageWallpaper.CanvasEngine#onCreate"); in onCreate()
201 Trace.endSection(); in onCreate()
309 Trace.beginSection("ImageWallpaper.CanvasEngine#drawFrame"); in drawFrameOnCanvas()
328 Trace.endSection(); in drawFrameOnCanvas()
355 Trace.beginSection("ImageWallpaper.CanvasEngine#unloadBitmap"); in unloadBitmapInternal()
369 Trace.endSection(); in unloadBitmapInternal()
373 Trace.beginSection("WPMS.ImageWallpaper.CanvasEngine#loadWallpaper"); in loadWallpaperAndDrawFrameInternal()
377 Trace.beginSection("WPMS.getBitmapAsUser"); in loadWallpaperAndDrawFrameInternal()
390 Trace.beginSection("WPMS.clearWallpaper"); in loadWallpaperAndDrawFrameInternal()
[all …]
/frameworks/base/apct-tests/perftests/core/src/android/os/
DTracePerfTest.java51 Assert.assertTrue(Trace.isEnabled()); in verifyTracingEnabled()
58 Trace.isEnabled(); in testEnabled()
66 Trace.beginSection("testBeginEndSection"); in testBeginEndSection()
67 Trace.endSection(); in testBeginEndSection()
75 Trace.beginAsyncSection("testAsyncBeginEnd", 42); in testAsyncBeginEnd()
76 Trace.endAsyncSection("testAsyncBeginEnd", 42); in testAsyncBeginEnd()
84 Trace.setCounter("testCounter", 123); in testCounter()
/frameworks/base/packages/SystemUI/src/com/android/systemui/
DSystemUIApplication.java31 import android.os.Trace;
84 Trace.registerWithPerfetto(); in SystemUIApplication()
108 Trace.TRACE_TAG_APP); in onCreate()
119 rootComponent.getMainLooper().setTraceTag(Trace.TRACE_TAG_APP); in onCreate()
274 Trace.TRACE_TAG_APP); in startServicesIfNeeded()
379 if (Trace.isEnabled()) { in notifyBootCompleted()
380 Trace.traceBegin( in notifyBootCompleted()
381 Trace.TRACE_TAG_APP, in notifyBootCompleted()
385 Trace.endSection(); in notifyBootCompleted()
405 if (Trace.isEnabled()) { in startAdditionalStartable()
[all …]
/frameworks/opt/bitmap/src/com/android/bitmap/
DUnrefedPooledCache.java22 import com.android.bitmap.util.Trace;
73 Trace.beginSection("cache get"); in get()
82 Trace.endSection(); in get()
89 Trace.beginSection("cache put"); in put()
92 Trace.endSection(); in put()
104 Trace.endSection(); in put()
111 Trace.beginSection("pool offer"); in offer()
113 Trace.endSection(); in offer()
117 Trace.endSection(); in offer()
122 Trace.beginSection("pool poll"); in poll()
[all …]
/frameworks/base/packages/SystemUI/shared/src/com/android/systemui/shared/system/
DInputMonitorCompat.java20 import android.os.Trace;
46 Trace.instant(Trace.TRACE_TAG_INPUT, "InputMonitorCompat-" + mName + " created"); in InputMonitorCompat()
70 Trace.instant(Trace.TRACE_TAG_INPUT, "InputMonitorCompat-" + mName + " disposed"); in dispose()
79 Trace.instant(Trace.TRACE_TAG_INPUT, "InputMonitorCompat-" + mName + " receiver created"); in getInputReceiver()

12345678910>>...20