Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 53c034b8 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "[API Review] BluetoothActivityenergyInfo doc + rename" into tm-dev

parents 2c1418b7 845c2699
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -3602,7 +3602,7 @@ public class AdapterService extends Service {
                    AttributionSource source) {
            BluetoothActivityEnergyInfo info = reportActivityInfo(source);
            try {
                listener.onBluetoothActivityEnergyInfo(info);
                listener.onBluetoothActivityEnergyInfoAvailable(info);
            } catch (RemoteException e) {
                Log.e(TAG, "onBluetoothActivityEnergyInfo: RemoteException", e);
            }
+4 −2
Original line number Diff line number Diff line
@@ -871,7 +871,7 @@ public final class BluetoothAdapter {
        }

        @Override
        public void onBluetoothActivityEnergyInfo(BluetoothActivityEnergyInfo info) {
        public void onBluetoothActivityEnergyInfoAvailable(BluetoothActivityEnergyInfo info) {
            Executor executor;
            OnBluetoothActivityEnergyInfoListener listener;
            synchronized (mLock) {
@@ -2733,7 +2733,9 @@ public final class BluetoothAdapter {
     * A null value for the activity info object may be sent if the bluetooth service is
     * unreachable or the device does not support reporting such information.
     *
     * @param result The callback to which to send the activity info.
     * @param executor the executor that the listener will be invoked on
     * @param listener the listener that will receive the {@link BluetoothActivityEnergyInfo}
     *                 object when it becomes available
     * @hide
     */
    @SystemApi
+1 −1
Original line number Diff line number Diff line
@@ -30,5 +30,5 @@ oneway interface IBluetoothActivityEnergyInfoListener
     * activity energy info.
     * @param info the Bluetooth activity energy info
     */
    void onBluetoothActivityEnergyInfo(in BluetoothActivityEnergyInfo info);
    void onBluetoothActivityEnergyInfoAvailable(in BluetoothActivityEnergyInfo info);
}
 No newline at end of file