API for get modem activity info

Change-Id: I4785e1dfce14468de8ba5a376c7c3aa57178ce7b
This commit is contained in:
Prerepa Viswanadham
2015-06-04 13:56:26 -07:00
parent 5c72899431
commit 3d0f09433a

View File

@@ -4595,7 +4595,22 @@ public class TelephonyManager {
}
} catch (RemoteException ex) {
}
return null;
}
/**
* Returns the modem activity info.
* @hide
*/
public ModemActivityInfo getModemActivityInfo() {
try {
ITelephony service = getITelephony();
if (service != null) {
return service.getModemActivityInfo();
}
} catch (RemoteException e) {
Log.e(TAG, "Error calling ITelephony#getModemActivityInfo", e);
}
return null;
}
}