Home
last modified time | relevance | path

Searched refs:translationContext (Results 1 – 9 of 9) sorted by relevance

/frameworks/base/core/java/android/service/translation/
DTranslationService.java114 public void onCreateTranslationSession(TranslationContext translationContext,
117 TranslationService.this, translationContext, sessionId, receiver));
237 public abstract void onCreateTranslationSession(@NonNull TranslationContext translationContext, in onCreateTranslationSession() argument
245 public void onCreateTranslationSession(@NonNull TranslationContext translationContext, in onCreateTranslationSession() argument
335 private void handleOnCreateTranslationSession(@NonNull TranslationContext translationContext, in handleOnCreateTranslationSession() argument
337 onCreateTranslationSession(translationContext, sessionId, in handleOnCreateTranslationSession()
344 + translationContext + " not supported by service."); in handleOnCreateTranslationSession()
DITranslationService.aidl36 void onCreateTranslationSession(in TranslationContext translationContext, int sessionId, in onCreateTranslationSession() argument
/frameworks/base/core/java/android/view/translation/
DTranslationManager.java138 public void createOnDeviceTranslator(@NonNull TranslationContext translationContext, in createOnDeviceTranslator() argument
140 Objects.requireNonNull(translationContext, "translationContext cannot be null"); in createOnDeviceTranslator()
151 new Translator(mContext, translationContext, tId, this, mHandler, mService, in createOnDeviceTranslator()
182 public Translator createOnDeviceTranslator(@NonNull TranslationContext translationContext) { in createOnDeviceTranslator() argument
183 Objects.requireNonNull(translationContext, "translationContext cannot be null"); in createOnDeviceTranslator()
191 final Translator newTranslator = new Translator(mContext, translationContext, in createOnDeviceTranslator()
214 public Translator createTranslator(@NonNull TranslationContext translationContext) { in createTranslator() argument
215 return createOnDeviceTranslator(translationContext); in createTranslator()
DTranslator.java172 @NonNull TranslationContext translationContext, int sessionId, in Translator() argument
177 mTranslationContext = translationContext; in Translator()
198 @NonNull TranslationContext translationContext, int sessionId, in Translator() argument
202 mTranslationContext = translationContext; in Translator()
DITranslationManager.aidl41 void onSessionCreated(in TranslationContext translationContext, in onSessionCreated() argument
DUiTranslationController.java596 private TranslationCapability getTranslationCapability(TranslationContext translationContext) { in getTranslationCapability() argument
600 translationContext.getSourceSpec(), in getTranslationCapability()
601 translationContext.getTargetSpec(), /* uiTranslationEnabled= */ true, in getTranslationCapability()
671 final TranslationContext translationContext = in createTranslatorIfNeeded() local
678 final Translator translator = tm.createTranslator(translationContext); in createTranslatorIfNeeded()
/frameworks/base/services/translation/java/com/android/server/translation/
DRemoteTranslationService.java88 public void onSessionCreated(@NonNull TranslationContext translationContext, int sessionId, in onSessionCreated() argument
90 run((s) -> s.onCreateTranslationSession(translationContext, sessionId, resultReceiver)); in onSessionCreated()
DTranslationManagerService.java197 public void onSessionCreated(TranslationContext translationContext, in onSessionCreated() argument
203 service.onSessionCreatedLocked(translationContext, sessionId, receiver); in onSessionCreated()
DTranslationManagerServiceImpl.java186 void onSessionCreatedLocked(@NonNull TranslationContext translationContext, int sessionId, in onSessionCreatedLocked() argument
190 remoteService.onSessionCreated(translationContext, sessionId, resultReceiver); in onSessionCreatedLocked()