20625 Commits

Author SHA1 Message Date
Esteban Talavera
d09fbafa92 Merge "Add new adb dpm (= DevicePolicyManager) command" into lmp-dev 2014-09-12 10:35:44 +00:00
Esteban Talavera
b5ef162129 Add new adb dpm (= DevicePolicyManager) command
Adds new adb command to execute DevicePolicyManager tasks. First subcommand
allows us to set a device owner on a provisioned device (provided no accounts
are associated with the device). This is required as GTS tests run on provisioned
devices. We plan to add more subcomands required for new GTS tests, such as the
ability to create a managed profile.

Bug: 17312478, 17316711
Change-Id: I2613178ea82a6c6268e7f8012e74c4a852fea0d4
2014-09-12 11:33:59 +01:00
Jinsuk Kim
3b9309a01c CEC: Stub MHL Device
Replaced HdmiMhlLocalDevice with stub implementation,
and removed other MHL classes.

Bug: 17479050

Change-Id: I08880b0703eb4a94ae5e8aa973886a15f8160a38
2014-09-12 17:30:32 +09:00
Yuncheol Heo
690dbf10c1 am 0a03389d: am d9ff6887: Merge "Respond <Feature Abort: Invaild operand> for the invaild messages." into lmp-dev
* commit '0a03389de4ac40d9f84ddaf5746b2739ad13e57b':
  Respond <Feature Abort: Invaild operand> for the invaild messages.
2014-09-12 08:27:42 +00:00
Griff Hazen
1ef8f70c43 am c2560fd4: am c94ea9aa: Merge "Fix a NPE in NotificationManagerSerivice.cancelNotificationFromListener" into lmp-dev
* commit 'c2560fd4e7e10b5c6d00a3473c8a1545e65ca786':
  Fix a NPE in NotificationManagerSerivice.cancelNotificationFromListener
2014-09-12 08:27:26 +00:00
Jungshik Jang
c2623e92bf am ffde71e6: am e051e231: Use async polling for HPD action
* commit 'ffde71e639bdd390f261da4bb016b7c725744831':
  Use async polling for HPD action
2014-09-12 08:27:18 +00:00
Jeff Sharkey
37800dba25 am f804cd88: am 7ba3d751: Merge "Consistent clean up of failed installs." into lmp-dev
* commit 'f804cd8897161803ca8b85045b67dd7f0348094b':
  Consistent clean up of failed installs.
2014-09-12 08:27:11 +00:00
Jinsuk Kim
a94417a516 CEC: Refactoring for MHL
This helps MHL code clean-up.

- Factored MHL constants out to a new class
- Renamed some methods

Bug: 17479050
Change-Id: Ia39f8bb51ce552ac10f587e6ee0431951f2f494b
2014-09-12 17:25:58 +09:00
Jinsuk Kim
d4a94db1cd CEC: Bug fixes for vendor-specific command handling
- Add sendStandby()
- Respond with <Feature Abort>[INCORRECT_MODE] when the listener
  is not ready

Bug: 17379243
Bug: 17358887
Change-Id: I26a4157a70f11206978763fbbe69e4190e3e1d5c
2014-09-12 16:22:23 +09:00
Yuncheol Heo
753fcc8a8a Merge "Handle <Menu Status> message." into lmp-dev 2014-09-12 07:17:32 +00:00
Yuncheol Heo
29b3e79dc3 Merge "Respond <Feature Abort: Invaild operand> for the invaild messages." into lmp-dev 2014-09-12 06:27:37 +00:00
Griff Hazen
929d5ac575 Merge "Fix a NPE in NotificationManagerSerivice.cancelNotificationFromListener" into lmp-dev 2014-09-12 06:15:13 +00:00
Yuncheol Heo
184b124ec2 Handle <Menu Status> message.
- Just accept the message, not to response <Feature Abort>.
- Added the CEC message validation info.

Bug: 17382771
Change-Id: I0c1ba870b0acfcd0414f0a3e7bb6c41483879116
2014-09-12 15:09:07 +09:00
Dianne Hackborn
06655020b6 am e460038d: am de7f97c2: Merge "Work on issue #17477510: Time change notifications sent too often" into lmp-dev
* commit 'e460038d7f145257b25eb317ea01d22b5b6cfff4':
  Work on issue #17477510: Time change notifications sent too often
2014-09-12 05:47:37 +00:00
Dianne Hackborn
fee238ad53 am 2a8068f5: am 029bd75a: Merge "Fix issue #17377423: Frequently see 500ms latency on app open..." into lmp-dev
* commit '2a8068f56ace65b96c6fa8f5ea1a5d4808872465':
  Fix issue #17377423: Frequently see 500ms latency on app open...
2014-09-12 05:47:32 +00:00
Craig Mautner
c0e422db09 am a7f809d3: am 3a6fdd4f: Merge "Add null checks to WindowState.getStack() calls." into lmp-dev
* commit 'a7f809d3b4f74272953b985b099193069e32725a':
  Add null checks to WindowState.getStack() calls.
2014-09-12 05:47:25 +00:00
Jinsuk Kim
73046f81a6 am 6d4c60e8: am b3ac0ef8: Merge "Replace the MHL register name \'scratchpad\' with \'vendor\'" into lmp-dev
* commit '6d4c60e82ccf11122b7dec64695c20104119af83':
  Replace the MHL register name 'scratchpad' with 'vendor'
2014-09-12 05:47:20 +00:00
Craig Mautner
6ec7cd9dab am a7027783: am 31632435: Merge changes Ia6fe9724,I682b9acb into lmp-dev
* commit 'a7027783e39e4da9ef6cc66a200746ffb81e720e':
  Show all windows from activity that hides keyguard
  Make sure FLAG_DISMISS_KEYGUARD brings up bouncer
2014-09-12 05:47:14 +00:00
Adam Lesinski
8b46195929 am d02321d5: am 2e35ab0a: Merge "UsageStats should deal with changing time" into lmp-dev
* commit 'd02321d57860265a646a0cda1062d3c77c7f0045':
  UsageStats should deal with changing time
2014-09-12 05:47:09 +00:00
Amith Yamasani
c834748ce5 am f4514492: am c80b482e: Merge "Check for singleUser attribute even for persistent apps" into lmp-dev
* commit 'f4514492796e6357ab72c0d61a9f4a6e0f314f37':
  Check for singleUser attribute even for persistent apps
2014-09-12 05:46:34 +00:00
Michael Wright
3dd0a6aabc am 79870899: am 44c97df3: Change constant to PowerManager.RELEAES_FLAG_WAIT_FOR_NO_PROXIMITY
* commit '7987089963e29c993146a24470d412c2e83f98fa':
  Change constant to PowerManager.RELEAES_FLAG_WAIT_FOR_NO_PROXIMITY
2014-09-12 05:46:19 +00:00
Craig Mautner
4afc28096e am c7617201: am 7f97f2c3: Merge "Add null check to TaskPersister file list." into lmp-dev
* commit 'c761720117885259a8938c4998a25a2b24c907d9':
  Add null check to TaskPersister file list.
2014-09-12 05:45:18 +00:00
Christopher Tate
a4da322ca7 am 55b0fbea: am e32b2a5d: Merge "Write new wallpaper files from scratch..." into lmp-dev
* commit '55b0fbea29e0058f51354337067f29daef26afa4':
  Write new wallpaper files from scratch...
2014-09-12 05:44:04 +00:00
Michael Wright
3eda6b7d23 am 4b5e1fbe: am 54bc6182: Change callback methods from add to register.
* commit '4b5e1fbebd00f9a96185cd513b847b09928136b9':
  Change callback methods from add to register.
2014-09-12 05:43:50 +00:00
Xin Guan
a830e7ef2e am dcfbab57: am 314712e9: Temp enable the log to identify the wake up cause.
* commit 'dcfbab57f037a04e61cfe7b3633fa60bf5d4e2fe':
  Temp enable the log to identify the wake up cause.
2014-09-12 05:43:41 +00:00
Yuncheol Heo
4c21289781 Respond <Feature Abort: Invaild operand> for the invaild messages.
- Previously it responsed <Feature Abort: Unrecognized opcode>, for the
  invaild messages, but 'Invaild operand' is more accurate response.
- It'll not response <Feature Abort> for the invaild source and the destination.

Bug: 17382769
Change-Id: I4c5a146a57cc64f54224fa86810a777c232f4c9b
2014-09-12 14:32:46 +09:00
Jungshik Jang
b3ecb72af8 Use async polling for HPD action
Since Device polling holds whole IO thread while it's running,
other sending requests would be blocked until it's finished.
Usually polling takes more than 1 seconds and some action might
be timeouted.
This change sends polling message asynchrousely for
each device address.

Bug: 17381548

Change-Id: I2f47931c5882649d6ac56092986d34d1da48f710
2014-09-12 13:37:33 +09:00
Jeff Sharkey
5c0ed94deb Merge "Consistent clean up of failed installs." into lmp-dev 2014-09-12 04:25:06 +00:00
Jeff Sharkey
e980804df1 Bring install and install-multiple into parity.
This ensures that both are using (almost) identical logic when
deciding what installs to proceed with.  Installs from "pm" for all
users now run as OWNER, and rely solely on INSTALL_ALL_USERS to
express intent.  This keeps install session notifications simple.

Since installer UID can vary from installer package name, start
persisting the UID.  Also parse some missing flags for install
sessions.

Bug: 17469392
Change-Id: I6d89b1a787aa2024cc4bebf6b9c29317c358e147
2014-09-11 21:24:00 -07:00
Dianne Hackborn
aeb88ed612 Merge "Work on issue #17477510: Time change notifications sent too often" into lmp-dev 2014-09-12 02:34:36 +00:00
Dianne Hackborn
d7f460936c Merge "Fix issue #17377423: Frequently see 500ms latency on app open..." into lmp-dev 2014-09-12 02:32:55 +00:00
Craig Mautner
20d97e1ce2 Merge "Add null checks to WindowState.getStack() calls." into lmp-dev 2014-09-12 02:24:42 +00:00
Dianne Hackborn
998e608ddd Work on issue #17477510: Time change notifications sent too often
Record the number of time change events seen by the alarm manager.

Change-Id: I154e7e068626c71f76ee7b26f3e38a885025e0fa
2014-09-11 19:13:23 -07:00
Jinsuk Kim
68ab6cf0ea Merge "Replace the MHL register name 'scratchpad' with 'vendor'" into lmp-dev 2014-09-12 02:12:36 +00:00
Craig Mautner
cbc771f50e Merge changes Ia6fe9724,I682b9acb into lmp-dev
* changes:
  Show all windows from activity that hides keyguard
  Make sure FLAG_DISMISS_KEYGUARD brings up bouncer
2014-09-12 01:45:29 +00:00
Adam Lesinski
3bab7c188d Merge "UsageStats should deal with changing time" into lmp-dev 2014-09-12 01:42:21 +00:00
Jinsuk Kim
b3fbf9dbe8 Replace the MHL register name 'scratchpad' with 'vendor'
Bug: 17479050
Change-Id: If6fe2949d17ad2d407df5b797c1915eb0e9bf421
2014-09-12 10:42:14 +09:00
Craig Mautner
41a7b7911e Add null checks to WindowState.getStack() calls.
Fixes bug 12786011.

Change-Id: I7fed856f8c96eec47df0912cea9bce705ecf690a
2014-09-11 18:40:22 -07:00
Adam Lesinski
66143fa5b3 UsageStats should deal with changing time
When the system time is changed, the UsageStats API
will modify all existing entries to correspond with the
new time change. If the time changed when the device was
off, stats in the future will be deleted.

Change-Id: Ica3e9917d4d1a180f97700e52ab390e3673e1e82
2014-09-11 18:39:01 -07:00
Craig Mautner
7d7808fcf8 Show all windows from activity that hides keyguard
Popup windows from the activity hiding the keyguard weren't being
shown. This change retrieves that activity from PhoneWindowManager
and applies the show or hide call to the windows that match the
activity.

Fixes bug 16479813.

Change-Id: Ia6fe97240aec85c5233eee9038138f7d48095a6e
2014-09-11 18:02:38 -07:00
Dianne Hackborn
9d52f791b9 Fix issue #17377423: Frequently see 500ms latency on app open...
...even for apps in cache

64 bit devices are cool, so they get to use more RAM for their
caches.

Shhhh, don't tell 32 bit devices, they get terribly jealous.

Change-Id: Iec9a0c43718a75530555bac50185658a682969aa
2014-09-11 17:46:06 -07:00
Amith Yamasani
cf79a56c71 Merge "Check for singleUser attribute even for persistent apps" into lmp-dev 2014-09-12 00:44:06 +00:00
Michael Wright
1208e2718d Change constant to PowerManager.RELEAES_FLAG_WAIT_FOR_NO_PROXIMITY
Bug: 17290118
Change-Id: Iae3866bf3f7ac24f756ec4c183e848a79d1f779b
2014-09-12 00:23:14 +00:00
Amith Yamasani
12a1d81de7 Check for singleUser attribute even for persistent apps
This enables Nfc to start a service on a different user.

Bug: 17462401

Change-Id: I92b2bcc2867a380ee18f77a40032bc43e4672c23
2014-09-11 16:39:31 -07:00
Craig Mautner
532e551e68 Merge "Add null check to TaskPersister file list." into lmp-dev 2014-09-11 22:36:18 +00:00
Griff Hazen
335e1f03df Fix a NPE in NotificationManagerSerivice.cancelNotificationFromListener
If a provided notification key does not resolve to a Notification Record

Bug: 17473071
Change-Id: Ib4b4156ca91eb9e545274a36722c2dc547aa39a3
2014-09-11 14:53:23 -07:00
Cheuksan Wang
ee04543d58 Send and download MMS via content provider instead of PDU bytes.
Change-Id: Ib5a93d07799c9e14fea8be820c6bd4bc7ae8be3a
2014-09-11 14:17:15 -07:00
Craig Mautner
a5badf06dd Add null check to TaskPersister file list.
Ran out of file descriptors and got a null file list. This
checks for null file list.

Fixes bug 17461213.

Change-Id: Ia6d49d0bdb6da98623b76d2b87cd09bc0afa1f27
2014-09-11 13:35:23 -07:00
Christopher Tate
90f86baebd Write new wallpaper files from scratch...
...rather than overwriting the existing wallpaper bitmap file "in
place."  If the new bitmap is smaller than the previous one, we wind
up with the previous image's contents as spurious trailing file
contents.  Also, it means that if any wallpaper image is particularly
large on disk, then we'll forever be backing up that high-water-mark
amount of data every time the wallpaper is changed.

The fix is to open the "write the new bitmap to disk" fd with
MODE_TRUNCATE.

Bug 17285333

Change-Id: I3d8708d72e316834b7ecec20386153a703efddd9
2014-09-11 12:41:52 -07:00
Michael Wright
cde5bb45cc Change callback methods from add to register.
Also changes intent returning method from get to create. Both changes
are in response to API council feedback.

Bug: 17389882
Change-Id: I3b57e3fc202148e3bbb24ac61229f04e8b4ac41e
2014-09-11 19:37:30 +00:00