219255 Commits

Author SHA1 Message Date
Chris Craik
a44cd33b98 Use FastJNI for trivial MotionEvent native methods
Change-Id: I4f1b1ee913e994808986fc177da5857c902f8976
2015-10-13 09:33:58 -07:00
John Reck
8b6c79f5fc Merge "Microbench hackery" 2015-10-12 22:56:32 +00:00
John Reck
4a4bc892e8 Microbench hackery
Change-Id: I35428350e16982824bb4e8a0015a4cb98b1c0799
2015-10-12 15:45:01 -07:00
Dianne Hackborn
d019d4ab3f Merge "Add new "shell command" feature to Binder objects." 2015-10-12 21:41:39 +00:00
Chong Zhang
3425909285 Merge "Fix missing frame or wrong frame position when resize starts" 2015-10-12 20:47:38 +00:00
Jason Monk
c7e19d9f14 Merge "Quick prototype of new header" 2015-10-12 20:16:41 +00:00
Jason Monk
c34befb319 Quick prototype of new header
- Has first 4 quick tiles shown in collapsed mode
 - Shows date + settings gear in expanded mode
 - Still has a few gaps (alarms probably don't work)
 - Fix issue with placement of cell data type indicator

Change-Id: I629798b96f4f088fde47c7b67feea304dcc8450c
2015-10-12 16:15:26 -04:00
Chong Zhang
25ad8e7ea3 Merge "Fix bogus warning in startResizingTask" 2015-10-12 19:19:51 +00:00
Denis Kuznetsov
dbb478dc7a Merge "Fix Notification settings upon installation after Restore." 2015-10-12 19:18:18 +00:00
Filip Gruszczynski
094948641b Merge "Improve relaunch merging in activity thread." 2015-10-12 19:04:47 +00:00
Chong Zhang
fe98b064bc Fix bogus warning in startResizingTask
win will be null if no window is found for resizing which is normal.

bug: 24814867
Change-Id: I16fc55af62b8f90643a3e85ca6d741db92fae958
2015-10-12 12:04:02 -07:00
Filip Gruszczynski
db5dec271e Improve relaunch merging in activity thread.
To reduce the number of times that we load resources based on
configuration changes ActivityThread employs an optimization
strategy that merges relaunch operations. If it receives a
relaunch request why one is already queued, it will just update
the queued request instead of creating a new one. Unfortunately
this breaks the guarantee of executing lifecycle events in the
order they were received.

Consider following scenario of requestes from Activity Manager:
1) relaunch the activity in not resumed state;
2) resume the activity;
3) relaunch the activity in resumed state.

The Activity Thread can process these commands in following order:
1) receive the request to relaunch in not resumed state;
2) receive the request to resume the activity;
3) receive the request to resumed state, update the exisiting
request;
4) execute the request to relaunch in resume state;
5) execute the request to resume.

This causes the activity to perform resume twice.

Since we need the merging of relaunch operations for performance
reasons, we need to introduce a secondary mechanism for ordering
of lifecycle requests. Relaunching, pausing, stopping and resuming
receive a sequence number based on when the request was received. If
the last executed sequence number is higher then the operations
sequence number then the operation will be dropped.

In the above scenario the sequence number would be:
1) request to relaunch not resumed receives seq + 0;
2) request to resume receives seq + 1;
3) request to relaunch resumed receives seq + 2;
4) execution of of request to relaunch resumed set current sequence
number to seq + 2;
5) since seq + 1 < seq + 2, then the execution of request to resume
is prevented.

Bug: 24806374

Change-Id: Ia520dd1aa215827d4172a9891a7cc01db2ce627e
2015-10-12 12:00:38 -07:00
Jeff Sharkey
1da9e733d1 Merge branch 'master' of https://googleplex-android.googlesource.com/_direct/platform/frameworks/base 2015-10-12 18:39:17 +00:00
Winson Chung
3f669082aa Merge "Allowing multiple preferred drag regions for tablets." 2015-10-12 18:38:59 +00:00
Vinu Deokaran
98a6fd733c am 18b60e61: am f6747190: am 04166953: am 6be61a98: wm: call displayReady for all built in displays when system is ready.
* commit '18b60e612f45fd7f8c57ae397a325a8eb7eec20f':
  wm: call displayReady for all built in displays when system is ready.
2015-10-12 18:38:50 +00:00
Winson
882072baac Allowing multiple preferred drag regions for tablets.
Change-Id: I514e501d185f4139ce21798fc92bc931626c8239
2015-10-12 11:26:33 -07:00
Chong Zhang
8dbd9ad682 Fix missing frame or wrong frame position when resize starts
When multi-thread renderer is used, delay the report to draw to the
first doFrame in ResizeFrameThread. Otherwise we could unfreeze the
window before the frame is drawn.

Also when content draw bounds is updated for the first frame, let
content draw before ResizeFrameThread so that the bounds get applied.

bug: 24715185

Change-Id: I5485dc0be3eae24c555bcc31ee8f71523b68ca8d
2015-10-12 11:01:14 -07:00
Dianne Hackborn
9461b6f91f Add new "shell command" feature to Binder objects.
IBinder has a new common interface for sending shell commands
to it.  This can be implemented by system services to provide
a shell interface to the service, without needing to have separate
shell java code.

This includes changes to DeviceIdleController to implement the
shell interface for all of the commands it has been providing
through dumpsys.

Change-Id: I76518ea6719d1d08a8ad8722a059c7f5fd86813a
2015-10-12 10:38:41 -07:00
Wale Ogunwale
446433da24 am 4b6a829a: am 83a39080: am 1ca9f481: Merge "Fix resumeHomeStackTask can\'t resume home if activity is finishing."
* commit '4b6a829ac2c7af671f131a738437f1e393b13ec6':
  Fix resumeHomeStackTask can't resume home if activity is finishing.
2015-10-12 17:13:47 +00:00
Geoff Mendal
b4c0ad9775 am 94127464: (-s ours) am 99ec3595: (-s ours) am ef2f6596: (-s ours) am ac3b53a7: (-s ours) Import translations. DO NOT MERGE
* commit '94127464b460b65ca6689e1c5156789decca8488':
  Import translations. DO NOT MERGE
2015-10-12 17:13:36 +00:00
Pirama Arumuga Nainar
de5fe60afb am e1ffb406: am 05f0dc28: am d5992114: Merge "Fix punctuation and typos in AllocationAdapter\'s documentation."
* commit 'e1ffb406edd5f7bc224669a2f544fad26aff1d31':
  Fix punctuation and typos in AllocationAdapter's documentation.
2015-10-12 17:13:00 +00:00
Lorenzo Colitti
6bb16f4291 am 068da682: am 553a934c: am 647ec7f8: am 4e4d59ee: Connect the DHCP UDP socket to the server.
* commit '068da68200ce5551f1a77ac1e83a3c5157c35701':
  Connect the DHCP UDP socket to the server.
2015-10-12 17:12:19 +00:00
Lorenzo Colitti
eda0ea4190 am 3d3f766c: am 871d96b4: am 13c5dd5c: am eb0bbd45: Merge changes Id6a0b0de,I5f03b8b2,I62464b92 into mnc-dr-dev
* commit '3d3f766c8b37dcf495235ca4a500494498712eed':
  Support DHCP replies with multiple default gateways.
  Accept DHCP responses from non-67 server source ports
  Improve logging of DHCP parse errors using exceptions.
2015-10-12 17:12:08 +00:00
Vinu Deokaran
18b60e612f am f6747190: am 04166953: am 6be61a98: wm: call displayReady for all built in displays when system is ready.
* commit 'f67471900a36d272aac77425274593495331fcbc':
  wm: call displayReady for all built in displays when system is ready.
2015-10-12 16:21:20 +00:00
Vinu Deokaran
f67471900a am 04166953: am 6be61a98: wm: call displayReady for all built in displays when system is ready.
* commit '0416695348eae12cae0baa5adee65004d0caabe5':
  wm: call displayReady for all built in displays when system is ready.
2015-10-12 16:16:31 +00:00
Geoff Mendal
c8b71bec12 Merge "Import translations. DO NOT MERGE" 2015-10-12 16:16:16 +00:00
Geoff Mendal
82221b0800 Import translations. DO NOT MERGE
Change-Id: Ibf32d55ddcff08c2e57d082666b4121a5a767054
Auto-generated-cl: translation import
2015-10-12 11:11:48 -05:00
Vinu Deokaran
0416695348 am 6be61a98: wm: call displayReady for all built in displays when system is ready.
* commit '6be61a98fccbadfdcfcefe9aa51d90bfb6c13901':
  wm: call displayReady for all built in displays when system is ready.
2015-10-12 16:09:46 +00:00
Vinu Deokaran
6be61a98fc wm: call displayReady for all built in displays when system is ready.
When system has more than one built in display, displayReady needs
to be called for all built in displays when window manager is ready.
Otherwise, some system services, such as presentation, mediarouter,
etc, won't work on these displays.

Bug: 24103683
Change-Id: Ibf08074eff555c14a318236bd06e7b4855503140
2015-10-12 16:00:54 +00:00
Tony Mantler
bae1aecfa4 Merge "Move DreamBackend to SettingsLib" 2015-10-12 15:56:54 +00:00
Wale Ogunwale
4b6a829ac2 am 83a39080: am 1ca9f481: Merge "Fix resumeHomeStackTask can\'t resume home if activity is finishing."
* commit '83a3908047f3438c5daf7c3b562cf9ad8fe76d71':
  Fix resumeHomeStackTask can't resume home if activity is finishing.
2015-10-12 14:50:32 +00:00
Wale Ogunwale
83a3908047 am 1ca9f481: Merge "Fix resumeHomeStackTask can\'t resume home if activity is finishing."
* commit '1ca9f4812749a3eff0654e2ea7773e8b3704c1da':
  Fix resumeHomeStackTask can't resume home if activity is finishing.
2015-10-12 14:44:46 +00:00
Wale Ogunwale
1ca9f48127 Merge "Fix resumeHomeStackTask can't resume home if activity is finishing." 2015-10-12 14:39:16 +00:00
Geoff Mendal
94127464b4 am 99ec3595: (-s ours) am ef2f6596: (-s ours) am ac3b53a7: (-s ours) Import translations. DO NOT MERGE
* commit '99ec3595002f98e4c67a8c23e8ef33590e460235':
  Import translations. DO NOT MERGE
2015-10-12 14:34:53 +00:00
Geoff Mendal
99ec359500 am ef2f6596: (-s ours) am ac3b53a7: (-s ours) Import translations. DO NOT MERGE
* commit 'ef2f659641d3eec9129ad726176c27818cc9d4d0':
  Import translations. DO NOT MERGE
2015-10-12 14:27:25 +00:00
Geoff Mendal
ef2f659641 am ac3b53a7: (-s ours) Import translations. DO NOT MERGE
* commit 'ac3b53a734df0ec994d6068b7c0331da1fa0aa80':
  Import translations. DO NOT MERGE
2015-10-12 14:20:03 +00:00
Geoff Mendal
ac3b53a734 Import translations. DO NOT MERGE
Change-Id: I24c1dbc83857fa0af6a57d0a834fcda1394fd313
Auto-generated-cl: translation import
2015-10-12 07:03:29 -07:00
Geoff Mendal
b52b18050a Merge "Import translations. DO NOT MERGE" 2015-10-12 13:00:47 +00:00
Geoff Mendal
5f619ac7ad Import translations. DO NOT MERGE
Change-Id: I968bf0b2a23bb1b1d15fb7a56880941c85c5a78b
Auto-generated-cl: translation import
2015-10-12 05:55:27 -07:00
Geoff Mendal
dc30cd2062 Import translations. DO NOT MERGE
Change-Id: I4f298a5bce23a006e6e77bdb199a8e4b5fd37a98
Auto-generated-cl: translation import
2015-10-12 05:11:44 -07:00
Mark Lu
a56ea12ca5 Fix resumeHomeStackTask can't resume home if activity is finishing.
Not to resume home activity in finishing stage as following case:

When only home task has 2 activities,
(ex: SetupWizard & DeviceOwnerProvisioningActivity),

If SetupWizard crashed during DeviceOwnerProvisioningActivity in
finishing stage,
makes DeviceOwnerProvisioningActivity cannot destroy immediately,
In resumeHomeStackTask, will resume DeviceOwnerProvisioningActivity
(returned by getHomeActivity),
But actually, DeviceOwnerProvisioningActivity cannot be resumed.
Caused ANR when back key since no more running activity can resume.

Change-Id: Icec49e092d2e7bee7f6a2d198913c1c5db7122f2
2015-10-12 06:36:24 +00:00
Jinsuk Kim
f98b9e87f9 CEC: Process missing port/device select request
The timing issue cause some port/device select request
to return error if made while the service is being initialized
waking up from sleep.

This CL buffers the request so that it can be handled as
expected once the service initialization and device discovery
is completed.

Bug: 23084229
Change-Id: I8bcdaf3b708c6b9bf75ea15304c08bd35bd0f6d0
(cherry picked from commit d0b01dfe0aaebd054165dfe2f5f4bd7d68703970)
2015-10-11 23:00:23 +00:00
Pirama Arumuga Nainar
e1ffb406ed am 05f0dc28: am d5992114: Merge "Fix punctuation and typos in AllocationAdapter\'s documentation."
* commit '05f0dc2891377ab21b3a4262e9f5dc6fc768a2af':
  Fix punctuation and typos in AllocationAdapter's documentation.
2015-10-11 18:07:37 +00:00
Lorenzo Colitti
068da68200 am 553a934c: am 647ec7f8: am 4e4d59ee: Connect the DHCP UDP socket to the server.
* commit '553a934c47ec255b84647fa8e603bd4edf8fd7cd':
  Connect the DHCP UDP socket to the server.
2015-10-11 14:20:04 +00:00
Lorenzo Colitti
3d3f766c8b am 871d96b4: am 13c5dd5c: am eb0bbd45: Merge changes Id6a0b0de,I5f03b8b2,I62464b92 into mnc-dr-dev
* commit '871d96b44c9665238d1df87ed89656f742abe2fa':
  Support DHCP replies with multiple default gateways.
  Accept DHCP responses from non-67 server source ports
  Improve logging of DHCP parse errors using exceptions.
2015-10-11 14:19:58 +00:00
Lorenzo Colitti
553a934c47 am 647ec7f8: am 4e4d59ee: Connect the DHCP UDP socket to the server.
* commit '647ec7f80e46aa7c9b251d942bc2862646b57b3f':
  Connect the DHCP UDP socket to the server.
2015-10-11 14:11:31 +00:00
Lorenzo Colitti
871d96b44c am 13c5dd5c: am eb0bbd45: Merge changes Id6a0b0de,I5f03b8b2,I62464b92 into mnc-dr-dev
* commit '13c5dd5c19c5bcc60910b4e37f4e9e171adf099b':
  Support DHCP replies with multiple default gateways.
  Accept DHCP responses from non-67 server source ports
  Improve logging of DHCP parse errors using exceptions.
2015-10-11 14:11:25 +00:00
Lorenzo Colitti
647ec7f80e am 4e4d59ee: Connect the DHCP UDP socket to the server.
* commit '4e4d59eeef86fa8560d35c00168869b0a066f962':
  Connect the DHCP UDP socket to the server.
2015-10-11 13:43:34 +00:00
Lorenzo Colitti
13c5dd5c19 am eb0bbd45: Merge changes Id6a0b0de,I5f03b8b2,I62464b92 into mnc-dr-dev
* commit 'eb0bbd45f62fcaff26151b54a7b3ea16bb67e3be':
  Support DHCP replies with multiple default gateways.
  Accept DHCP responses from non-67 server source ports
  Improve logging of DHCP parse errors using exceptions.
2015-10-11 13:43:24 +00:00
Lorenzo Colitti
4e4d59eeef Connect the DHCP UDP socket to the server.
This makes it so that the socket cannot receive datagrams from
anybody except the DHCP server. This does not improve security,
because we never read from the UDP socket anyway, but it does
make ListeningPortsTest pass.

Bug: 23906864
Bug: 23933386
Change-Id: Ib090273a417f7eb2ac1ee3309260249b72fb8345
2015-10-11 16:06:11 +09:00