Merge "Added BinderCallsStats Bluetooth initialization"
This commit is contained in:
committed by
Android (Google) Code Review
commit
5c31c58990
@@ -200,6 +200,7 @@ import com.android.internal.annotations.GuardedBy;
|
||||
import com.android.internal.annotations.VisibleForTesting;
|
||||
import com.android.internal.app.IVoiceInteractor;
|
||||
import com.android.internal.content.ReferrerIntent;
|
||||
import com.android.internal.os.BinderCallsStats;
|
||||
import com.android.internal.os.BinderInternal;
|
||||
import com.android.internal.os.RuntimeInit;
|
||||
import com.android.internal.os.SomeArgs;
|
||||
@@ -7812,6 +7813,8 @@ public final class ActivityThread extends ClientTransactionHandler
|
||||
MediaFrameworkPlatformInitializer.setMediaServiceManager(new MediaServiceManager());
|
||||
MediaFrameworkInitializer.setMediaServiceManager(new MediaServiceManager());
|
||||
BluetoothFrameworkInitializer.setBluetoothServiceManager(new BluetoothServiceManager());
|
||||
BluetoothFrameworkInitializer.setBinderCallsStatsInitializer(context -> {
|
||||
BinderCallsStats.startForBluetooth(context); });
|
||||
}
|
||||
|
||||
private void purgePendingResources() {
|
||||
|
||||
@@ -1159,6 +1159,17 @@ public class BinderCallsStats implements BinderInternal.Observer {
|
||||
: Integer.compare(a.transactionCode, b.transactionCode);
|
||||
}
|
||||
|
||||
/** @hide */
|
||||
public static void startForBluetooth(Context context) {
|
||||
new BinderCallsStats.SettingsObserver(
|
||||
context,
|
||||
new BinderCallsStats(
|
||||
new BinderCallsStats.Injector(),
|
||||
com.android.internal.os.BinderLatencyProto.Dims.BLUETOOTH));
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Settings observer for other processes (not system_server).
|
||||
|
||||
Reference in New Issue
Block a user