Coder Social home page Coder Social logo

systemui's Introduction

StatusBar

System UI Plugin을 사용한 클래스 설계

1차 설계

Figure 1

  • 컨트롤러와 뷰를 분리
  • 컨트롤러에서 시스템 라이브러리 사용 ( 필요할 경우 컨트롤러에서 서비스, 쓰레드를 사용하여 라이브러리들과 통신 )

2차 설계

Figure 2

  • UI 는 System UI Processor 에서 Control service는 statusbar remote processor에서 동작
  • 두 processor 사이는 aidl interface를 통해 통신

Droplist

설계

참조 Application 분석 ( Hvac )

Drop List 설계

  • class diagram ( droplist.vsd )
  • Broadcast Receiver로 부터 부팅 시점에 서비스를 시작
  • UI 컨트롤을 위한 Main thread와 System 컨트롤을 위한 Sub thread
  • UI 서비스의 각 컨트롤러에서 binder를 통해 System 서비스를 사용

Figure 3

Volume UI

설계

  • 하나의 system 서비스로 boot completed 를 통해 시작 하도록 android.intent.action.BOOT_COMPLETED
  • UI를 컨트롤 하는 VolumeDialogService와 Volume을 컨트롤 하는 VolumeControlService로 분리
  • window type을 TYPE_VOLUME_OVERLAY로 하고, Dialog window 로 생성 show, hide등의 기능을 이용하기 위해
  • CarAudioManagerEx를 통해 Volume Control
  • ICarVolumeCallback을 통해 Car volume event
  • 설계 문서 참고 : volumeUI.vsd

Figure 4

Notification

설계

Figure 5

systemui's People

Contributors

kskim2 avatar algamza avatar sgyeo avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.