Commit Graph

7 Commits

Author SHA1 Message Date
Alejandro Nijamkin
1f6d4e0e1b Updates developer docs for quick affordances.
Fix: 257547914
Test: N/A
Change-Id: Ica0c3f7503d2c528eccd50cf8aa94239e9a43889
2022-11-22 14:50:55 +00:00
Alejandro Nijamkin
7237112d22 Moves quick affordances to data layer.
Because we need to implement a data layer repository that will access
quick affordance configs, we need the latter to be moved to the data
layer as well (since currently they are in the domain layer and code in
the data layer is not allowed to depend on code in the domain layer).

This CL has no changes, only moves and renames.

Bug: 254858696
Test: All tests still pass. Bottom area affordances still work.
Change-Id: Ibe1f0387886950ef7e9ef11a8716603aa547493e
2022-10-25 13:23:58 -07:00
Beverly
c6231ed7b3 Update doze + auth documentation
Reformat tables

Test: n/a
Fixes: 251832110
Change-Id: I1dad7dfcc07e95c960ea812e33c8f2259eea5c35
2022-10-10 17:36:55 +00:00
Alejandro Nijamkin
6b4f8b1adf Moves quick affordances into domain layer.
After much discussion, it became clear that it would be better to move
quic affordance config definitions out of the data layer and into the
domain layer.

This CL does the following:
1. Moves config definitions to the domain layer
2. Moves the "configs" class to the domain layer and renames it to
   "registry"
3. Eliminates the quick affordance repository from the data layer,
   merging its logic into the observe quick affordance use-case
4. Updates the documentation

Fix: 241681067
Test: Unit tests updated. Manually verified the bottom area quick
affordances still work properly when locked, unlocked, and dozing.
Played with the settings under Display > Lock screen to turn the on and
off.

Change-Id: I4b293eeef02e5546fc834008b096e4a7935657fe
2022-08-11 13:37:23 -07:00
Alejandro Nijamkin
619cd2a8a4 Developer-facing document for quick affordances
This is a guide for developers for how to add new quick affordance
buttons to the lockscreen.

Bug: 235403546
Test: N/A
Change-Id: Id8417c48732e25331027f11442c16d0220e690c4
2022-08-02 14:31:03 -07:00
Chandru
ea6e54502f Suspend and resume DozeTriggers when entering and exiting car mode.
This change introduces a new DozeMachine state DOZE_SUSPEND_TRIGGERS
that is equivalent of DOZE but also suspends any triggers that awaken
the device. Entering car mode transitions the state machine to
DOZE_SUSPEND_TRIGGERS and leaving the car mode transitions to either
DOZE or DOZE_AOD depending on whether Always on Display is enabled.

Current behavior when entering car mode:
  - DozeService is finished.
  - Always on display is turned off
  - Tap on screen doesn’t wake up the device
  - Lifting device doesn’t wake up the device
  - Sending a notification doesn’t wake up the device.

New behavior when entering car mode:
  - DozeService is not finished.
  - Remaining behavior is the same as DozeTrigger stops listening to all
    triggers (sensors, intents, notifications)

Current behavior when exiting car mode:
  - DozeService is not running, normal triggers don't wake up the device

New behavior when exiting car mode:
  - DozeService is running, normal triggers wake up the device as
    expected.
  - DozeSuppressor transitions from DOZE_SUSPEND_TRIGGERS to DOZE/DOZE_AOD

Bug: 230968777
Fixes: 230968777
Test: manual
Test: atest com.android.systemui.doze
Change-Id: I5f49bb5700d7ed38763dccc8c5b6438d934c6476
2022-05-31 17:12:05 +00:00
Beverly
239e898e2e Update device-entry docs + add glossary
Note: images were resized to be height 300px

Test: manual
Bug: 218838846
Change-Id: I6a9b077286a09a42f3aa69a57c837e803bbb2f15
2022-04-05 14:53:22 +00:00