Commit Graph

346796 Commits

Author SHA1 Message Date
TreeHugger Robot
04281fe36e Merge "PowerUI: Update temperature warnings on thermal throttling events" 2017-10-13 23:39:18 +00:00
Calin Juravle
4618f1e2eb Merge "[framework] Add check that classpath is up to date to getDexOptNeeded" 2017-10-13 22:59:06 +00:00
TreeHugger Robot
05b4d48094 Merge "Fix an unnecessary dependency (framework => health@2.0-java)" 2017-10-13 22:13:54 +00:00
Bryce Lee
d09afdc4cd Merge "ActivityStarter cleanup" 2017-10-13 22:12:24 +00:00
TreeHugger Robot
b19cfe6a54 Merge "AAPT2: Update SDK development codename to P" 2017-10-13 21:27:52 +00:00
Todd Poynor
fb95e121d8 PowerUI: Update temperature warnings on thermal throttling events
Subscribe to thermal throttling start/stop events from thermalservice,
if the vendor thermal management subsystem supports push notifications
of throttling events.  Update temperature warnings immediately when
throttling start/stop events are received.

Fixup existing comment to reflect current code regarding default warning
temperature value.

Bug: 66698613
Test: PowerNotificationWarningsTest, PowerUITest,
      manual: taimen with artificially low temperature threshold and
      logcat debugging messages

Change-Id: I021bcd0d06af861fd3a18a1790815a836659cee6
2017-10-13 14:22:29 -07:00
TreeHugger Robot
7d9d0bb73b Merge "Remove obsolete user agent strings." 2017-10-13 21:15:45 +00:00
TreeHugger Robot
049b12a9cc Merge "Process joystick MotionEvents correctly." 2017-10-13 21:01:39 +00:00
TreeHugger Robot
58f4762934 Merge "SystemUI: Clarify default temperature warning notification value" 2017-10-13 20:11:54 +00:00
Wale Ogunwale
35712aeaa8 Merge "Cache reference to stack objects we use a lot in AM." 2017-10-13 19:56:38 +00:00
Adam Lesinski
ec58a00635 AAPT2: Update SDK development codename to P
Also deleted unused method of finding attribute API levels.

Test: none
Change-Id: I92c1dd398bde3b19da2d274b6abda12636aa3d4f
2017-10-13 12:31:34 -07:00
Calin Juravle
576e6c0cbb [framework] Add check that classpath is up to date to getDexOptNeeded
Bug: 62269291
Test: manual, install new apk/splits and force updates.
I used com.android.cts.classloadersplitapp as the test app.
1) install-multiple split apks with dependency: Base -> A -> B
2) push an update for A
3) adb shell cmd package compile
4) check that A & B got recompiled and that B was because a class loader
context mismatch (e.g. "ClassLoaderContext classpath element checksum
mismatch for position 1.").

Change-Id: I4092562966413dc8976c9d41b26a90bbb9e37e1e
2017-10-13 12:13:39 -07:00
TreeHugger Robot
d469600a2a Merge "mItarSpeedLimitExceeded thread safety" 2017-10-13 19:05:50 +00:00
TreeHugger Robot
f32edc9f65 Merge "Replace mNotifyAutofillManagerOnClick by mPrivateFlag." 2017-10-13 18:31:52 +00:00
Todd Poynor
150059093f SystemUI: Clarify default temperature warning notification value
Update comment to describe which value the default temperature
warning notification is used by default.

Test: compile
Change-Id: I421d8f665827c4b45efa169b6ce50ce6655eb74b
2017-10-13 11:29:53 -07:00
TreeHugger Robot
02a20b7025 Merge "Added new ViewNode properties for Autofill (minEms, maxEms, maxLength)." 2017-10-13 18:13:04 +00:00
Hangyu Kuang
e76ee40093 Merge "recorder: Change the file read/write mode to be rw." 2017-10-13 18:11:19 +00:00
TreeHugger Robot
8a0f0ed4d8 Merge changes Ia6c335db,Id8079104
* changes:
  AssetManager2: Provide a method for iterating over packages
  AssetManager2: Implement IDMAP support
2017-10-13 17:27:39 +00:00
Adam Lesinski
d480f7ba8c AssetManager2: Provide a method for iterating over packages
Test: none
Change-Id: Ia6c335db1ed7d09cd444d387a29f18dc342a697f
2017-10-13 10:23:35 -07:00
Adam Lesinski
970bd8d283 AssetManager2: Implement IDMAP support
This enables RRO (runtime resource overlays) with AssetManager2

Test: make libandroidfw_tests
Test: out/host/<platform>/nativetest64/libandroidfw_tests/libandroidfw_tests --testdata=frameworks/base/libs/androidfw/tests/data
Change-Id: Id8079104faefbfaa3f4017d8f7ee1a8968f151a2
2017-10-13 10:23:34 -07:00
Donald Chai
a7963492dd Merge "AAPT: treat "-I" with lower precedence than main APK for dumping." 2017-10-13 16:40:03 +00:00
Felipe Leme
f39c3c1395 Replace mNotifyAutofillManagerOnClick by mPrivateFlag.
Test: cts-tradefed run commandAndExit cts-dev -m CtsAutoFillServiceTestCases

Bug: 67006548

Change-Id: I2027e5d6d952b473c4d20b2aac15792d230ae43c
2017-10-13 09:37:24 -07:00
Wale Ogunwale
a0f5b5ee1e Cache reference to stack objects we use a lot in AM.
This helps with fast access since we are no longer using stack ids
to look-up stack objects.
Also,
- Made ActivityDisplay.mStacks private so no one out the ActivityDisplay
class changing the stack list order.
- Changed some methods to pass stack objects vs. ids.

Test: Existing tests pass.
Test: go/wm-smoke
Change-Id: I04490cd505c4251e115043fa2ba5134d9a641846
2017-10-13 09:26:07 -07:00
Bryce Lee
7daee3914d ActivityStarter cleanup
This changelist removes individual flags for launch modes and
VR display state.

Test: go/wm-smoke
Bug: 64750076
Change-Id: I301e44b21eca6fd6d12e64e907a13f3cfe2e2c6d
2017-10-13 08:54:10 -07:00
Makoto Onuki
a96f6a0a14 Merge "Return canned messages from getDisabledMessage for..." 2017-10-13 15:53:18 +00:00
Charles He
fe932c78ec Merge "AM: introduce ActivityOptions.setLockTaskMode()." 2017-10-13 13:38:06 +00:00
TreeHugger Robot
f3c45363bf Merge "Cache reference to stack objects we use a lot in WM." 2017-10-13 13:20:30 +00:00
TreeHugger Robot
92ec65eee1 Merge "Migrating remaining core networking tests to Junit4" 2017-10-13 05:26:31 +00:00
TreeHugger Robot
4310433ad6 Merge "Various minor magnification improvements" 2017-10-13 05:12:44 +00:00
Donald Chai
d1ac6e1f9e AAPT: treat "-I" with lower precedence than main APK for dumping.
This is the desired behavior if resource IDs may overlap, and also happens to
improve the behavior of:

  aapt dump -I base.apk badging feature.apk

when both APKs use the same package name with different package IDs
(base=0x7F, feature=0x80).  Previously, the final call to
DynamicRefTable::addMapping was for base.apk, and all references to 0x80 were
rewritten in DynamicRefTable::lookupResourceId to 0x7F.  After this
change resources defined in both APKs are resolved correctly.

Note that this is a bit of kludge, and APKs should use different names
to avoid conflating the package IDs.

Fixes: 67070085
Bug: 64058531
Test: manual with sample in b/67070085#comment2
Change-Id: I285adb6f44a297440b08fc7a1f9ad73c700eb9bc
2017-10-12 21:34:22 -07:00
Siarhei Vishniakou
461faf9d0e Process joystick MotionEvents correctly.
Joystick MotionEvents, such as AXIS_HAT0Y and AXIS_HAT0X,
are translated into KeyEvents KEYCODE_DPAD_UP,
KEYCODE_DPAD_DOWN, etc for navigating menus. When two or more
AXIS_HAT0Y events are batched into a single event, this would
not be recognized by the SyntheticJoystickHandler as a down/up
event, thus missing the event entirely. This commit updates
SyntheticJoystickHandler to use the entire MotionEvent,
including the HistoricalEvent portions.

Bug: 36069459
Test: Connected Sony DS4 joystick, recorded the event
that reproduces the bug with inputstudio. Replayed the
event after patch, the bug could not be reproduced.

Change-Id: I7c15c3a7c9ac326481214b1f6b553ae39c459bc4
2017-10-12 21:09:22 -07:00
Yohei Yukawa
0f2512db60 Merge "Suppress warnings from AppOpsManager#checkPackage()" 2017-10-13 03:48:03 +00:00
TreeHugger Robot
8ff1a4b14c Merge "Fix identation in the switch block." 2017-10-13 03:21:57 +00:00
Hugo Benichi
3d6ba6ed6d Migrating remaining core networking tests to Junit4
Bug: 62918393
Test: runtest frameworks-net
Change-Id: I30f7eaa0307b8fad5a8de7a0da235a4f76c18677
2017-10-13 12:16:32 +09:00
Yifan Hong
9750537260 Fix an unnecessary dependency (framework => health@2.0-java)
...because BatteryManager does not need to talk to the HAL
directly.

Test: boots
Bug: 63702641
Change-Id: I50c751ab383a44966e768d86ff1f3b67858e47d9
2017-10-12 18:58:10 -07:00
TreeHugger Robot
0f8970d7e6 Merge "Changing assist item strings to verbs" 2017-10-13 01:45:42 +00:00
TreeHugger Robot
fcf52c6f5e Merge "libandroidfw_tests: package test data correctly" 2017-10-13 01:14:34 +00:00
Wale Ogunwale
6191149c9c Cache reference to stack objects we use a lot in WM.
This helps with fast access since we are no longer using stack ids
to look-up stack objects.

Test: Existing tests pass.
Test: go/wm-smoke
Change-Id: I98cb6f4eb1e6d6acb81b2077aee03265a075a227
2017-10-12 18:09:44 -07:00
TreeHugger Robot
c3c2b28cb7 Merge "Remove unused recents freeform task code." 2017-10-13 00:54:04 +00:00
Yi Jin
7376615ca6 Merge "Implement Activity Manager Broadcasts dump protos" 2017-10-13 00:51:31 +00:00
Jordan Liu
1b904bb00b Merge "Add a new carrier config to suppress AoC indication" am: db95dff0d8 am: c04d233ac2 am: 23be5ee3de
am: 162d10d9dc  -s ours

Change-Id: I949db40fb3ade3fb929aab337a818ac4e0a5b3ab
2017-10-13 00:42:25 +00:00
TreeHugger Robot
f055302a73 Merge "Flags to enable/disable smart selection in EditText" 2017-10-13 00:33:44 +00:00
Jordan Liu
162d10d9dc Merge "Add a new carrier config to suppress AoC indication" am: db95dff0d8 am: c04d233ac2
am: 23be5ee3de

Change-Id: I5ea5156a5ea5541826ca1c6f4060fe7ccbfa1ff5
2017-10-13 00:30:00 +00:00
Abodunrinwa Toki
ae0df2e4c7 Merge "DO NOT MERGE Turn off logcat logging for smart selection logs." into oc-mr1-dev am: bc0dc6dcba
am: 94ab358e5f  -s ours

Change-Id: I5c1b71f21c6d357dd6bafd57c2bbad6f6b814ec7
2017-10-13 00:22:47 +00:00
Jordan Liu
23be5ee3de Merge "Add a new carrier config to suppress AoC indication" am: db95dff0d8
am: c04d233ac2

Change-Id: Ic98c8f09bee42d8dba02c512b5543fb764105a92
2017-10-13 00:17:55 +00:00
Abodunrinwa Toki
94ab358e5f Merge "DO NOT MERGE Turn off logcat logging for smart selection logs." into oc-mr1-dev
am: bc0dc6dcba

Change-Id: Ie40acfeebe656a3551900958ffb84f8897eb44c9
2017-10-13 00:12:43 +00:00
TreeHugger Robot
10cdc4206c Merge "Remove unused recents affiliated task code." 2017-10-12 23:59:21 +00:00
Jordan Liu
c04d233ac2 Merge "Add a new carrier config to suppress AoC indication"
am: db95dff0d8

Change-Id: If86b396f87e4f9f143f7abc02b4e05478693ade0
2017-10-12 23:58:55 +00:00
TreeHugger Robot
bc0dc6dcba Merge "DO NOT MERGE Turn off logcat logging for smart selection logs." into oc-mr1-dev 2017-10-12 23:58:02 +00:00
TreeHugger Robot
8596362b7e Merge "Fix group divider make chrome crash issue." 2017-10-12 23:46:53 +00:00