/frameworks/base/core/java/android/service/translation/ |
D | TranslationService.java | 114 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()
|
D | ITranslationService.aidl | 36 void onCreateTranslationSession(in TranslationContext translationContext, int sessionId, in onCreateTranslationSession() argument
|
/frameworks/base/core/java/android/view/translation/ |
D | TranslationManager.java | 138 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()
|
D | Translator.java | 172 @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()
|
D | ITranslationManager.aidl | 41 void onSessionCreated(in TranslationContext translationContext, in onSessionCreated() argument
|
D | UiTranslationController.java | 596 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/ |
D | RemoteTranslationService.java | 88 public void onSessionCreated(@NonNull TranslationContext translationContext, int sessionId, in onSessionCreated() argument 90 run((s) -> s.onCreateTranslationSession(translationContext, sessionId, resultReceiver)); in onSessionCreated()
|
D | TranslationManagerService.java | 197 public void onSessionCreated(TranslationContext translationContext, in onSessionCreated() argument 203 service.onSessionCreatedLocked(translationContext, sessionId, receiver); in onSessionCreated()
|
D | TranslationManagerServiceImpl.java | 186 void onSessionCreatedLocked(@NonNull TranslationContext translationContext, int sessionId, in onSessionCreatedLocked() argument 190 remoteService.onSessionCreated(translationContext, sessionId, resultReceiver); in onSessionCreatedLocked()
|