Merge "Add startImeTrace and stopImeTrace APIs in ImeTracing"
This commit is contained in:
@@ -90,6 +90,28 @@ public abstract class ImeTracing {
|
||||
mService.startProtoDump(protoDump, source, where);
|
||||
}
|
||||
|
||||
/**
|
||||
* Calling {@link IInputMethodManager#startImeTrace()}} to capture IME trace.
|
||||
*/
|
||||
public final void startImeTrace() {
|
||||
try {
|
||||
mService.startImeTrace();
|
||||
} catch (RemoteException e) {
|
||||
Log.e(TAG, "Could not start ime trace." + e);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Calling {@link IInputMethodManager#stopImeTrace()} to stop IME trace.
|
||||
*/
|
||||
public final void stopImeTrace() {
|
||||
try {
|
||||
mService.stopImeTrace();
|
||||
} catch (RemoteException e) {
|
||||
Log.e(TAG, "Could not stop ime trace." + e);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* @param proto dump to be added to the buffer
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user