File tree Expand file tree Collapse file tree 1 file changed +7
-0
lines changed
services/java/com/android/server/am Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Original file line number Diff line number Diff line change 1717package com .android .server .am ;
1818
1919import android .os .Binder ;
20+ import android .os .SystemClock ;
21+ import android .util .TimeUtils ;
2022
2123/**
2224 * Represents a link between a content provider and client.
2325 */
2426public class ContentProviderConnection extends Binder {
2527 public final ContentProviderRecord provider ;
2628 public final ProcessRecord client ;
29+ public final long createTime ;
2730 public int stableCount ;
2831 public int unstableCount ;
2932 // The client of this connection is currently waiting for the provider to appear.
@@ -39,6 +42,7 @@ public class ContentProviderConnection extends Binder {
3942 public ContentProviderConnection (ContentProviderRecord _provider , ProcessRecord _client ) {
4043 provider = _provider ;
4144 client = _client ;
45+ createTime = SystemClock .elapsedRealtime ();
4246 }
4347
4448 public String toString () {
@@ -83,5 +87,8 @@ public void toClientString(StringBuilder sb) {
8387 if (dead ) {
8488 sb .append (" DEAD" );
8589 }
90+ long nowReal = SystemClock .elapsedRealtime ();
91+ sb .append (" " );
92+ TimeUtils .formatDuration (nowReal -createTime , sb );
8693 }
8794}
You can’t perform that action at this time.
0 commit comments