235657 Commits

Author SHA1 Message Date
Michal Karpinski
6235a94ffa Unifying method names and comments to security logging, not device logging
Also move SecurityLog to android.app.admin package.

Bug: 27531824
Bug: 27532560
Bug: 27532564
Bug: 27532425
Change-Id: I2677afdb5685bc5d21e52c41b381b57a41e364b6
2016-03-16 14:32:09 +00:00
Tomasz Mikolajewski
54f264fcdb Merge "Precompute cursor indexes in DocumentsUI and improve perf by 2.7%." into nyc-dev 2016-03-16 09:25:29 +00:00
Lorenzo Colitti
6b7c9ec19c Merge "APF: add debug code." into nyc-dev 2016-03-16 08:13:22 +00:00
Tomasz Mikolajewski
d35a974b76 Precompute cursor indexes in DocumentsUI and improve perf by 2.7%.
Bug: 27286016
Change-Id: I0ad852faef46ba9eccc90ca32d8c2ea0e2d5cd98
2016-03-16 16:40:09 +09:00
Daichi Hirono
4327283240 Merge "Handle SQLite disk IO error in MtpDocumentsProvider#onCreate." into nyc-dev 2016-03-16 07:34:15 +00:00
Donghyun Cho
b71b54887a Merge "HdmiControlService does not broadcast CEC <standby> message on shutdown" into nyc-dev 2016-03-16 07:08:02 +00:00
Lorenzo Colitti
5ff640d1f2 APF: add debug code.
1. Store additional debug information when RA filtering.
2. Add a toString method for RA packets.
3. Make "adb shell dumpsys connectivity apf" dump APF filter
   state.

Bug: 26238573
Change-Id: I1441ff7bc90e63624f8b10a220b2ac97f4d390a5
2016-03-16 15:45:47 +09:00
Daichi Hirono
5884e1fa87 Handle SQLite disk IO error in MtpDocumentsProvider#onCreate.
The error should be regarded as an expected error that failes onCreate,
rather than crash.

BUG=27244513

Change-Id: Icf5164b0cba6cb919077539afe7701ada1e0c247
2016-03-16 14:36:27 +09:00
Rob McConnell
3059556f60 HdmiControlService does not broadcast CEC <standby> message on shutdown
When the STB is shutting down the CEC <standby> message should be
broadcast to all CEC devices to place them in to standby. This is
not happening because the ACTION_SHUTDOWN Intent has not been
added to the list of Intent filters that the HdmiControlService
should be listening for.

This one-line change adds the ACTION_SHUTDOWN Intent filter so that
when the STB is shutting down (e.g. via a long press of the POWER
button), the CEC <standby> message can be broadcast to all devices.
This allows a connected HDMI TV to be automatically placed in to
standby.

Bug: 27596547
Change-Id: I4cdd2eaaad86e98bdf86c74fb0c377eb716f3c83
2016-03-16 13:54:32 +09:00
Daichi Hirono
5551228717 Merge "Move to downloads root instead of home root." into nyc-dev 2016-03-16 04:21:06 +00:00
Donghyun Cho
f1264c95c7 Merge "Add a system property for the 'Set Menu Language' feature of CEC" into nyc-dev 2016-03-16 04:20:59 +00:00
Lorenzo Colitti
71b61cd483 Merge "Ignore the checksum when comparing RAs for equality." into nyc-dev 2016-03-16 03:27:49 +00:00
Lorenzo Colitti
e6dfc1736b Ignore the checksum when comparing RAs for equality.
When comparing two RAs for equality, Ra#matches intentionally
ignores lifetimes. It should ignore the checksum instead, because
otherwise-identical packets with different lifetimes will almost
certainly have different checksums.

In order to avoid the generated APF program also matching the
checksum, we treat the checksum as if it were a lifetime, but
take care not to use its value when calculating mMinLifetime or
when checking the lifetimes in the APF program.

Bug: 27595799
Bug: 26238573
Change-Id: I526fdc17e99803a1ddec6275a3c542014434c429
2016-03-16 03:16:20 +00:00
Donghyun Cho
a09256c72f Add a system property for the 'Set Menu Language' feature of CEC
The CEC feature, <Set Menu Language>, is enabled by setting a system
property 'ro.hdmi.set_menu_language', which is false by default.

Bug: 25704899
Change-Id: I941b238bcc06227c128f09d38d422b8295e81b7b
2016-03-16 11:34:54 +09:00
Tomasz Mikolajewski
fe023137d0 Update docs for ACTION_QUICK_VIEW.
Bug: 27531273
Change-Id: I917ca16c14db20e6a2773018e00a61ff5fcf7ecd
2016-03-16 02:08:53 +00:00
Steve McKay
709be25f04 Merge "Add FLAG_PARTIAL. Partial files can't be copied." into nyc-dev 2016-03-16 01:37:08 +00:00
Adam Powell
3c8702dd81 Merge "Add View#onVisibilityAggregated" into nyc-dev 2016-03-16 00:22:22 +00:00
Doris Liu
d75f694c1a Merge "Workaround for PathMeasure.getSegment() behavior change" into nyc-dev 2016-03-16 00:21:14 +00:00
Shreyas Basarge
833c312ea4 Merge "Fix for JobScheduler jobs not running" into nyc-dev 2016-03-16 00:20:52 +00:00
Doris Liu
24ba125158 Workaround for PathMeasure.getSegment() behavior change
SkPathMeasure::getSegment(SkScalar startD, SkScalar stopD, SkPath* dst,
bool startWithMoveTo) in SkPathMeasure used to ignore the case when
startD == stopD in MNC release. In NYC, the same paramaters would yield
a tiny segment, which leaves undesirable artifacts as shown in the bug
below.

Bug: 27665826
Change-Id: I8289dc32773fd55d686458183af44ff072866c6e
2016-03-15 17:01:55 -07:00
Steve McKay
168e464812 Add FLAG_PARTIAL. Partial files can't be copied.
This allows us to exclude in-progress downloads from copy.
Will update Downloads in a followup CL to flag active downloads.

Bug: 27526321
Change-Id: I50d1db5cfb69bc6b47e10cc0f520a51e3d3cb43e
2016-03-15 16:51:23 -07:00
Adrian Roos
e49ede4ed4 Merge "Prevent Log.wtf crash in benign case" into nyc-dev 2016-03-15 23:31:13 +00:00
Jaesung Chung
36a20cdde3 Merge "ExifInterface: ignore exceptions when getting wrong images" into nyc-dev 2016-03-15 23:27:13 +00:00
Joseph Pirozzo
d91859d246 Merge "Add BluetoothProfile for PBAP PCE role." into nyc-dev 2016-03-15 23:21:12 +00:00
Adam Powell
41d9690c3e Add View#onVisibilityAggregated
There's a common misconception (even across the framework) that
View#onVisibilityChanged determines and reports visibility on 'this'
up to the changed view and the total visibility within the
window. Knowing this is useful for things like starting/stopping
animations. onVisibilityChanged only reports the visibility for the
specific changed view, not the effects that would have down the tree.

Add onVisibilityAggregated to report what some code thought it was
getting already, and move ImageView and ProgressBar over to using it.

Bug 27461617

Change-Id: I433f41de453e27a53f907f1d9805350f30f31de9
2016-03-15 16:20:11 -07:00
Suprabh Shukla
ff29237e89 Merge "Updating javadoc for DPM apis" into nyc-dev 2016-03-15 23:18:20 +00:00
Adrian Roos
6a04cb1efc Prevent Log.wtf crash in benign case
Fixes a crash that happens when you turn of the screen
while moving the finger. Some touches still come in even
when the screen went to sleep. No need to get upset over
those.

Bug: 27595423
Change-Id: If75ae3b6c2c83a87f38daaf8777f89d8c74a9cd1
2016-03-15 15:47:14 -07:00
Chong Zhang
1974381809 Merge "Fix black frame when unlocking device via clicking on notification" into nyc-dev 2016-03-15 22:31:18 +00:00
Shreyas Basarge
0529dac587 Fix for JobScheduler jobs not running
If the device is powered off when a job is
supposed to run, its delay and deadline both
are set to 0 on boot. If the deadlineExpired alarm
runs first, the job is discarded from
TimeController's tracked jobs list. The delay
constraint is never set to true and the job
would never be executed. This behavior is fixed
here.

Dump modified to print jobId and uId instead of
hash to make it more meaningful.

Bug: 27619643
Change-Id: If03e3d6f194f15fe43b697dcb4198137fa7ed646
2016-03-15 22:19:04 +00:00
Etan Cohen
de2fa62f86 [NAN] Removed NAN event registration - dispatch all callbacks. [DO NOT MERGE]
am: a5ed693788  -s ours

* commit 'a5ed693788ea64408ccf18850ee38905218ec4f4':
  [NAN] Removed NAN event registration - dispatch all callbacks. [DO NOT MERGE]
2016-03-15 22:10:18 +00:00
Etan Cohen
5392a7abef [NAN] Consolidate publish/subscribe callback sets into single set [DO NOT MERGE]
am: 8414f5cf2b  -s ours

* commit '8414f5cf2bd86dcbaea1976590e838e41af554b3':
  [NAN] Consolidate publish/subscribe callback sets into single set [DO NOT MERGE]
2016-03-15 22:10:17 +00:00
Etan Cohen
87bb9401de [NAN] Replace session callback configuration control [DO NOT MERGE]
am: e393f57d0d  -s ours

* commit 'e393f57d0de5a27d1cfd04a8c83a61559430539c':
  [NAN] Replace session callback configuration control [DO NOT MERGE]
2016-03-15 22:10:15 +00:00
Etan Cohen
8314d2ca84 [NAN] Expose match style configuration as public API. [DO NOT MERGE]
am: 8ef7453416  -s ours

* commit '8ef74534169bd3f3296e2ee42c0fda95c8518383':
  [NAN] Expose match style configuration as public API. [DO NOT MERGE]
2016-03-15 22:05:27 +00:00
Tao Bao
1b478f756a Merge "Don't reboot into recovery if block map file is missing." into nyc-dev 2016-03-15 22:02:10 +00:00
Wei Liu
3ceea7b333 Merge "Add null-checks to mStatusBar." into nyc-dev 2016-03-15 21:50:07 +00:00
Wei Liu
f122f9f5a2 Merge "The startup of the system services should be conditional." into nyc-dev 2016-03-15 21:48:54 +00:00
Suprabh Shukla
34d92ef631 Updating javadoc for DPM apis
Added @throws tag in the javadoc for many APIs which might throw a
SecurityException in cases when such information might be useful for the
caller. E.g. when the caller has to be a device owner or must request
certain policies before making the API call.

Bug: b/27532288
Change-Id: I18e1a49a5e86a0322c035996ed7e9c3217da78c8
2016-03-15 14:43:46 -07:00
Wei Wang
e1e3d99c46 Merge "Fix device reboot when ranging empty params." into nyc-dev 2016-03-15 21:32:03 +00:00
Chris Wren
b41abcc064 Merge "fix NPE when dump wins the race against emit" into nyc-dev 2016-03-15 21:03:59 +00:00
Makoto Onuki
ed1b89878b Merge "Fix launcher side callback" into nyc-dev 2016-03-15 21:02:48 +00:00
Felipe Leme
1f7659ba34 Merge "Log received intent." into nyc-dev 2016-03-15 20:53:14 +00:00
Felipe Leme
39355fb5f7 Log received intent.
BUG: 27660862
Change-Id: Ibe49080c15448ac2672f5e1d5eeaf6d9ff8d282e
2016-03-15 13:52:14 -07:00
Wei Liu
6aaabaef56 The startup of the system services should be conditional.
The system services not used by Wear is tracked in go/ncwss
b/26877020

Change-Id: I45f77aecbdf4d4a54fef592d543e928b6a8cd6b9
2016-03-15 13:24:12 -07:00
Felipe Leme
213e355c77 Handle AccountManager failures so Shell doesn't crash.
BUG: 27665208
Change-Id: Iccb6ce810c8e1c93bded58871d7ec220b7d14ba9
2016-03-15 13:21:43 -07:00
Chong Zhang
dea4bd980c Fix black frame when unlocking device via clicking on notification
- Make sure to tell the app to start drawing if it has been stopped, app
  could be stopped in visible state.

- When activity is started with NEW_TASK + CLEAR_TASK flags, skip
  resuming of the soon-to-be-removed activity, and run enter animation
  directly on the new activity. Resuming the old activity causes delay,
  and we also run extra enter-exit transition in short succession which
  cause glitches.

bug: 27391256
Change-Id: I390ef9fc9855d70a4a9642c06c87cbe548b8b466
2016-03-15 12:50:03 -07:00
Mahaver Chopra
8a8e8ea19a Merge "Update DPM.reboot with new restriction" into nyc-dev 2016-03-15 19:48:33 +00:00
Mahaver Chopra
1216ae5d02 Update DPM.reboot with new restriction
DPM.reboot() should not be called when there is an ongoing call on the
device.

Bug:27531799
Change-Id: Idc1fa4c7aa79b20ec9c2afcccf855455ee316787
2016-03-15 19:46:05 +00:00
Makoto Onuki
4dbe0ded4a Fix launcher side callback
- Fix crash in work profile case
- Calculate shortcuts for each caller
- Add tests

Bug 27548047

Change-Id: I1a5b6a96956abac75d01eb5cc1cec9a9e8e379a3
2016-03-15 12:38:41 -07:00
Jason Monk
93a075ecdd Merge "Fix crashes during density changes" into nyc-dev 2016-03-15 19:25:21 +00:00
Lajos Molnar
bd4acc2f9b Merge "media: don't expose private keys in MediaFormat" into nyc-dev 2016-03-15 19:22:28 +00:00