openthos multi window introduction
play

OpenTHOS Multi-window Introduction Chen Gang - PowerPoint PPT Presentation

OpenTHOS Multi-window Introduction Chen Gang <chengang@emindsoft.com.cn> 2016-09-24 Android Architecture Application Level Normal Apps packages Externals (java) Frameworks Level frameworks/base/packages frameworks/base frameworks/*


  1. OpenTHOS Multi-window Introduction Chen Gang <chengang@emindsoft.com.cn> 2016-09-24

  2. Android Architecture Application Level Normal Apps packages Externals (java) Frameworks Level frameworks/base/packages frameworks/base frameworks/* ... frameworks/native Middle Level libcore Virtual Machine Middle Library HAL Kernel Level

  3. Runtime environments zygote SystemServer Application Application AM APP APP WM resources resources resources resources java obj java obj java obj java obj virtal machine virtal machine virtal machine virtal machine libraries libraries libraries libraries

  4. Multiwindow Related Objects AMS WMS ActivityDisplay DisplayContent ActivityStack TaskStack TaskRecord Task ActivityRecord AppWindowToken WindowState Session <AppTaskImp> TaskGroup ActivityManager WindowManagerGlobal StackInfo WindowManager <AppTask> ViewRootImp ... Window (PhoneWindow) View ViewGroup Activity (mToken, mWindow) APP ...

  5. Multiwindow implementation 1. Originally support: PhoneWindow::Decor ViewRootImp::mWinFrame TaskStack::mBounds WindowState::mContainingFrame 2. Implementation( 500 lines patch ): PhoneWindow:: DecorMW, TouchListener, mStackId DisplayContent:: relayoutWindow(), stackIdFromPoint() 3. Notice: Home stack (launcher) Window/View styles (fullscreen, floating, dialog, rotation …) Display metrics and dpi (not implement).

  6. Multiwindow Relate Features 1. Shadow: transparent surface. setbounds for Drawable. Draw shadow image in template layout with clearing dirty contents. 2. Dialog: WMS catch and process messages. Adjust dialog size to avoid overriding application window header. half-transparent black view between dialog and application window. 3. Auto-hide header: WMS catch and process messages. Decor customize the layout dynamically.

  7. Frameworks related features 1. SystemUI StartupMenu, StatusBar, NotificationBar, Alt+Tab ... 2. System Applications Launcher, Settings, FileManager, Brower, Auto-Update, AppStore ... 3. User Applications WPS, WeChat, QQ, Player, Camera …

  8. Global Related Features 1. Mainly in Frameworks Animation, Video, Capture ... 2. Related with Frameworks Ethernet, Resolution, Shadow/Extend Display ... 3. Almost Independent from Frameworks Printer, Run Linux GUI application ...

  9. Desktop OS 1. Framework Level: 2. All Features Level: 3. Stability and Performance Level: 4. Architecture Level:

  10. Thanks

Recommend


More recommend