Loading packages/NeuralNetworks/service/platform/java/com/android/server/ondeviceintelligence/executors/InferenceServiceExecutor.java +4 −12 Original line number Diff line number Diff line Loading @@ -60,18 +60,10 @@ public final class InferenceServiceExecutor }); return null; } if (!manager.ensureRemoteInferenceServiceInitialized(/* shouldThrow= */ false)) { Slog.w(OnDeviceIntelligenceManagerService.TAG, "Service not available"); executeOnRemoteExecutor(() -> { try { mFailureConsumer.accept(FailureType.SERVICE_UNAVAILABLE); } catch (RemoteException e) { Slog.e(OnDeviceIntelligenceManagerService.TAG, "Failed to call service unavailable callback", e); } }); return null; } // Ensure the remote service is initialized. manager.ensureRemoteInferenceServiceInitialized(/* shouldThrow= */ true); AndroidFuture<?> future = manager.getRemoteInferenceService().postAsync(remoteCall::run); future.whenComplete( (res, ex) -> { Loading packages/NeuralNetworks/service/platform/java/com/android/server/ondeviceintelligence/executors/IntelligenceServiceExecutor.java +4 −12 Original line number Diff line number Diff line Loading @@ -60,18 +60,10 @@ public final class IntelligenceServiceExecutor }); return null; } if (!manager.ensureRemoteIntelligenceServiceInitialized(/* shouldThrow= */ false)) { Slog.w(OnDeviceIntelligenceManagerService.TAG, "Service not available"); executeOnRemoteExecutor(() -> { try { mFailureConsumer.accept(FailureType.SERVICE_UNAVAILABLE); } catch (RemoteException e) { Slog.e(OnDeviceIntelligenceManagerService.TAG, "Failed to call service unavailable callback", e); } }); return null; } // Ensure the remote service is initialized. manager.ensureRemoteIntelligenceServiceInitialized(/* shouldThrow= */ true); AndroidFuture<?> future = manager.getRemoteOnDeviceIntelligenceService().postAsync(remoteCall::run); future.whenComplete( Loading Loading
packages/NeuralNetworks/service/platform/java/com/android/server/ondeviceintelligence/executors/InferenceServiceExecutor.java +4 −12 Original line number Diff line number Diff line Loading @@ -60,18 +60,10 @@ public final class InferenceServiceExecutor }); return null; } if (!manager.ensureRemoteInferenceServiceInitialized(/* shouldThrow= */ false)) { Slog.w(OnDeviceIntelligenceManagerService.TAG, "Service not available"); executeOnRemoteExecutor(() -> { try { mFailureConsumer.accept(FailureType.SERVICE_UNAVAILABLE); } catch (RemoteException e) { Slog.e(OnDeviceIntelligenceManagerService.TAG, "Failed to call service unavailable callback", e); } }); return null; } // Ensure the remote service is initialized. manager.ensureRemoteInferenceServiceInitialized(/* shouldThrow= */ true); AndroidFuture<?> future = manager.getRemoteInferenceService().postAsync(remoteCall::run); future.whenComplete( (res, ex) -> { Loading
packages/NeuralNetworks/service/platform/java/com/android/server/ondeviceintelligence/executors/IntelligenceServiceExecutor.java +4 −12 Original line number Diff line number Diff line Loading @@ -60,18 +60,10 @@ public final class IntelligenceServiceExecutor }); return null; } if (!manager.ensureRemoteIntelligenceServiceInitialized(/* shouldThrow= */ false)) { Slog.w(OnDeviceIntelligenceManagerService.TAG, "Service not available"); executeOnRemoteExecutor(() -> { try { mFailureConsumer.accept(FailureType.SERVICE_UNAVAILABLE); } catch (RemoteException e) { Slog.e(OnDeviceIntelligenceManagerService.TAG, "Failed to call service unavailable callback", e); } }); return null; } // Ensure the remote service is initialized. manager.ensureRemoteIntelligenceServiceInitialized(/* shouldThrow= */ true); AndroidFuture<?> future = manager.getRemoteOnDeviceIntelligenceService().postAsync(remoteCall::run); future.whenComplete( Loading