Searched refs:DfuResult (Results 1 – 7 of 7) sorted by relevance
127 public static class DfuResult extends Result { class in RemoteProxy129 public static final DfuResult RESULT_FAILURE = new DfuResult(Result.UNKNOWN_FAILURE_INST);130 public static final DfuResult RESULT_GATT_DISCONNECTED =131 new DfuResult(Result.GATT_DISCONNECTED_INST);132 public static final DfuResult RESULT_DEVICE_BUSY = new DfuResult(Result.DEVICE_BUSY_INST);133 public static final DfuResult RESULT_SUCCESS = new DfuResult(Result.SUCCESS_INST);134 public static final DfuResult RESULT_SUCCESS_NEEDS_PAIRING =135 new DfuResult(Result.SUCCESS_NEEDS_PAIRING_INST);142 public DfuResult(double progress) { in DfuResult() method in RemoteProxy.DfuResult147 private DfuResult(Result res) { in DfuResult() method in RemoteProxy.DfuResult[all …]
23 import com.google.android.tv.btservices.remote.RemoteProxy.DfuResult;38 void onDfuProgress(BluetoothDevice device, RemoteProxy.DfuResult result); in onDfuProgress()45 private DfuResult mCurrentProgress = null;53 public CompletableFuture<RemoteProxy.DfuResult> requestDfu( in requestDfu()55 CompletableFuture<RemoteProxy.DfuResult> ret = new CompletableFuture<>(); in requestDfu()59 mCurrentProgress = new DfuResult(0); in requestDfu()67 private void finish(Result res, CompletableFuture<RemoteProxy.DfuResult> ret) { in finish()75 ret.complete(DfuResult.RESULT_SUCCESS); in finish()78 ret.complete(DfuResult.RESULT_GATT_DISCONNECTED); in finish()82 ret.complete(DfuResult.RESULT_FAILURE); in finish()[all …]
186 public CompletableFuture<DfuResult> requestDfu( in requestDfu()192 public DfuResult getDfuState() { in getDfuState()
39 import com.google.android.tv.btservices.remote.RemoteProxy.DfuResult;231 public void onDfuProgress(BluetoothDevice device, DfuResult state) { in onDfuProgress()244 case DfuResult.SUCCESS: in onDfuProgress()248 case DfuResult.SUCCESS_NEEDS_PAIRING: in onDfuProgress()252 case DfuResult.IN_PROGRESS: in onDfuProgress()255 case DfuResult.UNKNOWN_FAILURE: in onDfuProgress()256 case DfuResult.GATT_DISCONNECTED: in onDfuProgress()
23 import com.google.android.tv.btservices.remote.RemoteProxy.DfuResult;42 DfuResult getDfuState(BluetoothDevice device); in getDfuState()
79 public RemoteProxy.DfuResult getDfuState(BluetoothDevice device) { in getDfuState()
47 import com.google.android.tv.btservices.remote.RemoteProxy.DfuResult;267 private void onDfuUpdated(BluetoothDevice device, DfuResult res) { in onDfuUpdated()475 public void onDfuProgress(BluetoothDevice device, RemoteProxy.DfuResult result) { in onDfuProgress()479 private DfuResult getRemoteDfuState(BluetoothDevice device) { in getRemoteDfuState()561 DfuResult newResult = result; in startRemoteDfu()562 if (result == DfuResult.RESULT_DEVICE_BUSY) { in startRemoteDfu()567 if (result == DfuResult.RESULT_SUCCESS && needsRepair) { in startRemoteDfu()568 newResult = DfuResult.RESULT_SUCCESS_NEEDS_PAIRING; in startRemoteDfu()860 public DfuResult getDfuState(BluetoothDevice device) { in getDfuState()