@@ -1090,11 +1090,8 @@ private final void realStartServiceLocked(ServiceRecord r,
10901090
10911091 boolean created = false ;
10921092 try {
1093- mAm .mStringBuilder .setLength (0 );
1094- r .intent .getIntent ().toShortString (mAm .mStringBuilder , true , false , true , false );
1095- EventLog .writeEvent (EventLogTags .AM_CREATE_SERVICE ,
1096- r .userId , System .identityHashCode (r ), r .shortName ,
1097- mAm .mStringBuilder .toString (), r .app .pid );
1093+ EventLogTags .writeAmCreateService (
1094+ r .userId , System .identityHashCode (r ), r .shortName , r .app .pid );
10981095 synchronized (r .stats .getBatteryStats ()) {
10991096 r .stats .startLaunchedLocked ();
11001097 }
@@ -1242,9 +1239,8 @@ private final void bringDownServiceLocked(ServiceRecord r, boolean force) {
12421239 }
12431240
12441241 if (DEBUG_SERVICE ) Slog .v (TAG , "Bringing down " + r + " " + r .intent );
1245- EventLog .writeEvent (EventLogTags .AM_DESTROY_SERVICE ,
1246- r .userId , System .identityHashCode (r ), r .shortName ,
1247- (r .app != null ) ? r .app .pid : -1 );
1242+ EventLogTags .writeAmDestroyService (
1243+ r .userId , System .identityHashCode (r ), (r .app != null ) ? r .app .pid : -1 );
12481244
12491245 mServiceMap .removeServiceByName (r .name , r .userId );
12501246 mServiceMap .removeServiceByIntent (r .intent , r .userId );
0 commit comments