Commit Graph

73365 Commits

Author SHA1 Message Date
TreeHugger Robot
1b167ae047 Merge "port notificaiton logs to Tron v2" 2017-01-27 23:04:09 +00:00
TreeHugger Robot
904aca762c Merge "Move autofill-specific logic from EditText to TextView." 2017-01-27 22:27:50 +00:00
TreeHugger Robot
0ee455a899 Merge "Convert native changing config flags to Java flags" 2017-01-27 20:38:39 +00:00
TreeHugger Robot
977b106de6 Merge "Notification: Fix Ambient view text color" 2017-01-27 20:17:28 +00:00
TreeHugger Robot
7d670b4f73 Merge "OMS: introduce the OverlayManagerService" 2017-01-27 19:42:59 +00:00
Adrian Roos
72171629e6 Notification: Fix Ambient view text color
Change-Id: Ib45e2288932939896bb05fc1dc606e3551dd951d
Test: Trigger Ambient Display, check text is readable.
Fixes: 34767438
2017-01-27 10:42:20 -08:00
Chris Wren
9eb5e102dc port notificaiton logs to Tron v2
remove uninteresting people lookup timer logs

Bug: 34705522
Test: mmma -j20 platform_testing/tests/functional/notificationtests && adb install -r -g $OUT/data/app/NotificationFunctionalTests/NotificationFunctionalTests.apk && adb shell am instrument -w -e iterations 1 -e class com.android.notification.functional.NotificationInteractionTests com.android.notification.functional/android.support.test.runner.AndroidJUnitRunner
Change-Id: I27c17deab4372c93b41dd2821f08c8d10b73cfbf
2017-01-27 18:27:12 +00:00
Julia Reynolds
1af50e2da1 Merge "Show channel groups in settings" 2017-01-27 18:22:15 +00:00
TreeHugger Robot
035e5d4278 Merge "add a comparator for LogMaker" 2017-01-27 17:08:23 +00:00
Paul Navin
7d0f5e8d40 Add hidden API for whether permission review mode is on. am: 7b89a7b1f7 am: 7c230c6f3c
am: dd91db5515

Change-Id: I936449f717e3c2919622181c9068ec8a48b452ad
2017-01-27 17:03:38 +00:00
Paul Navin
dd91db5515 Add hidden API for whether permission review mode is on. am: 7b89a7b1f7
am: 7c230c6f3c

Change-Id: I89c9a580a96d0f69ed30cad9ec2e4f9c215a403b
2017-01-27 16:59:33 +00:00
Paul Navin
7c230c6f3c Add hidden API for whether permission review mode is on.
am: 7b89a7b1f7

Change-Id: I925b6de9f79850dcc816a73357d1d589eeac6333
2017-01-27 16:55:03 +00:00
TreeHugger Robot
36d32c37a3 Merge "Camera2: Correct EXIF GPS timestamp" 2017-01-27 16:46:50 +00:00
TreeHugger Robot
39cb8895a5 Merge "Update doc to allow system image app to display terms in ManagedProvisioning" 2017-01-27 16:09:28 +00:00
Victor Chang
98607130fe Update doc to allow system image app to display terms in ManagedProvisioning
Bug: 34320095
Test: javadoc update only. built successfully
Change-Id: I9f023a12adbbd5f3d5ed3594508642b8dd573896
2017-01-27 14:04:19 +00:00
Julia Reynolds
f02562aeee Show channel groups in settings
Empty groups shouldn't be visible to client code.

Test: runtest systemui-notification
Change-Id: I319b035886ce1bd4b6839ebf46a2c3be7b2387cf
2017-01-27 08:51:45 -05:00
Chris Wren
58047b9451 add a comparator for LogMaker
Tests need to be able to compare partial log structures.

Bug: 34705522
Test: runtest --path frameworks/base/core/tests/coretests/src/android/metrics
Change-Id: I4e26e43f5f5ea3fbba5a2a2a9563982c7260671b
2017-01-27 08:28:45 -05:00
Jason Long
31e8939491 Move autofill-specific logic from EditText to TextView.
Change-Id: I92725144d737ed182e6ece7018a9f8d075fb5ba7
Test: Manual
2017-01-27 01:57:46 -08:00
Andrii Kulian
fc8f82bc6b Allow showing content on virtual displays when locked
This adds new flag to virtual display that changes its
behavior when keyguard is shown, but can be dismissed without
entering credentials. This can be applied only to private
virtual displays.

Bug: 34280365
Test: android.server.cts.ActivityManagerDisplayTests
Test: #testVirtualDisplayHidesContentWhenLocked
Test: #testShowWhenLockedVirtualDisplay
Test: #testShowWhenLockedPublicVirtualDisplay
Change-Id: I9c19d36295e62f59bd1db1352af707d54ea51667
2017-01-27 00:14:06 -08:00
The Android Automerger
6a688ca1ad Merge commit '88932754ffdcbffb3cb43e03991e5eb598c10458' into nyc-mr1-dev-plus-aosp
* commit '88932754ffdcbffb3cb43e03991e5eb598c10458':
  Captive portals: login activity probes like NetworkMonitor
  Logging improvements in CaptivePortalLoginActivity
  Captive portal systel log improvements
  Fix flaky IpPrefixTest.
  Removing bogus file added by mistake
  frameworks-test: adding missing @SmallTest
  Netd events: record connect() success/errno
  Add missing dependency.
  Show notification for always-on app VPN
2017-01-27 06:39:52 +00:00
The Android Automerger
7bc2aebd53 Merge commit '48a1136c8b3000c651e8bcd86325acd1dce6e4ec' into nyc-mr1-dev-plus-aosp
* commit '48a1136c8b3000c651e8bcd86325acd1dce6e4ec':
  Implement metered tracking for NetworkStats summary queries.
2017-01-27 06:39:41 +00:00
The Android Automerger
53095bb5bd Merge commit 'a19056c35d16ddb5a6c1d3343729701b8939f1e1' into nyc-mr1-dev-plus-aosp
* commit 'a19056c35d16ddb5a6c1d3343729701b8939f1e1': (35 commits)
  NetworkMonitor: send one DNS probe per web probe
  NetworkMonitor metrics: add first validation information
  APF: also drop any ICMPv6 RSs
  ConnectivityServiceTest: fix testAvoidBadWifiSettings
  Fix ConnectivityServiceTest testRequestBenchmark
  Switch over to new "time.android.com" NTP pool.
  Define API for metering network stats buckets.
  Refactored NetworkStatsServiceTest to use Mockito instead of EasyMock.
  Use @Ignore to explicitly disable a @Test method.
  Fixed NetworkStatsServiceTest and converted it to JUnit4.
  VPN network stat accounting changes.
  ConnectivityThread: use lazy holder idiom
  ConnectivityManager: use ConnectivityThread looper
  ConnectivityManager: a simpler CallbackHandler
  Indicate the NsdServiceInfo attributes are only filled in for a resolved service.
  Add a null check for the OnStartTetheringCallback.
  TokenBucket for rate-limiting and throttling
  IpConnectivityMetrics reads buffer size in settings
  CaptivePortalLogin: set mixed content policy to compatibility.
  Add IP conn metrics to dumpsys and bug reports
  ...
2017-01-27 06:39:05 +00:00
TreeHugger Robot
e852d6731b Merge "Fix issues with launching activities on virtual displays" 2017-01-27 05:44:37 +00:00
TreeHugger Robot
e682445698 Merge changes from topic 'session_refactoring'
* changes:
  Adds autofill save ui
  Moar AutoFill Framework refactoring...
2017-01-27 03:46:36 +00:00
Andrii Kulian
4acfd858a4 Fix issues with launching activities on virtual displays
- Virtual displays might have hdr capabilities not initialized,
  which lead to exception when checking.
- Dynamic stacks were mistakenly considered an invalid launch stack.

Test: android.server.cts.ActivityManagerDisplayTests
Change-Id: I20356d6e25cf9e5fa4a3d7bd3699a8e82a73f21a
2017-01-26 19:43:13 -08:00
Paul Navin
7b89a7b1f7 Add hidden API for whether permission review mode is on.
BUG: 34240393
Change-Id: I68e55767a7da1d457a6cedd210aac9e339fb996c
2017-01-27 03:42:32 +00:00
Doris Liu
6ba5ed322c Use listener to determine whether an Animator has ended
BUG: 34736819
Test: ran cts test for ValueAnimator and AnimatorSet
Change-Id: Ia1070f83833940cb09d26243f5873751d9ca2a38
2017-01-26 19:23:22 -08:00
TreeHugger Robot
11c80cf32b Merge "Lifecycle guarantees for target fragments" 2017-01-27 02:45:17 +00:00
TreeHugger Robot
903f98e37f Merge "Expose Java side for parenting SurfaceControl" 2017-01-27 02:43:52 +00:00
TreeHugger Robot
18c9dc53d2 Merge "StrictMode detectAll() based on target API level." 2017-01-27 01:41:35 +00:00
TreeHugger Robot
416903e7c4 Merge "Unhide ApplicationInfo.volumeUuid." 2017-01-27 01:34:40 +00:00
Mårten Kongstad
eabc9e9576 OMS: introduce the OverlayManagerService
Add a new system service to manage Runtime Resource Overlays. This will
offload the PackageManagerService and allow administration of overlay
packages while affected packages continue to execute.

Overlays can be enabled or disabled during runtime. Running applications
will re-create their ResourcesImpl objects and restart their activities
via the usual activity life cycle.

The order in which a set of overlays is loaded may also be changed
during runtime. The underlying mechanics are the same as for when an
overlay is enabled or disabled.

When an overlay changes state, e.g. becomes enabled, the
OverlayManagerService will broadcast one of the new intents
android.intent.action.OVERLAY_ADDED, *_CHANGED, *_REMOVED or
*.OVERLAYS_REORDERED.

Clients that wish to read information about overlays for users other
than themselves are required to hold the
android.permission.INTERACT_ACROSS_USERS_FULL permission. This mirrors
the protection level of PackageManager.getPackageInfo.

Clients that wish to change the information are required to
hold the permission android.permission.CHANGE_OVERLAY_PACKAGES.

Each pair of overlay package and corresponding target package is
respresented by a new OverlayInfo class. This class mirrors the
existing PackageInfo class.

Overlay packages are handled per Android user. The data is persisted in
/data/system/overlays.xml.

Co-authored-by: Martin Wallgren <martin.wallgren@sonymobile.com>
Signed-off-by: Zoran Jovanovic <zoran.jovanovic@sonymobile.com>
Bug: 31052947
Test: run tests from 'OMS: tests for OverlayManagerService'
Change-Id: I15325e173193df3240b8dc0a58c852fd7a3d5916
2017-01-26 17:04:53 -08:00
TreeHugger Robot
8dc7ccc6e1 Merge "Push mapping from file extension to GID." 2017-01-27 01:03:11 +00:00
Adam Powell
ab209a63a2 Lifecycle guarantees for target fragments
Ported from frameworks/support change id
I824eb312fbdfd6b548fe94aa2cd5b03afbaa97c7

When a target fragment was set using Fragment#setTargetFragment, all
bets were off, especially when restoring from instance state. Order of
lifecyle initialization was undefined meaning that two bugs could
occur, both of which manifested as the target fragment was not
initialized by the time the referring fragment's onCreate ran. One
could happen if the target fragment is on the back stack, the other
could happen if the target fragment was ordered unfortunately in
FragmentManager implementation details. (!)

Fix both by guaranteeing that any target fragment gets pushed forward
to at least the CREATED state before we dispatch any lifecycle events
for the referring fragment.

Add some sanity checks that try to keep developers from setting target
fragments across different FragmentManagers or from creating target
cycles, both of which are bad ideas.

Bug: 33653458
Test: CTS FragmentLifecycleTest
Change-Id: If624d4665d29e205d37b9b384322e64d6d6d3615
2017-01-27 00:52:26 +00:00
Android Build Merger (Role)
766f462763 Merge "Add a flag to enable/disable the diskstats logging service. am: 88e45dcd1f am: 2297fd2946" 2017-01-27 00:50:06 +00:00
Daniel Nishi
6321bdce18 Add a flag to enable/disable the diskstats logging service. am: 88e45dcd1f
am: 2297fd2946

Change-Id: I15391057ae632e36f05231a1d188dd01c1e5da90
2017-01-27 00:49:10 +00:00
Makoto Onuki
2c631ab46d Merge "Cache isManagedProfile()." 2017-01-27 00:49:09 +00:00
Daniel Nishi
2297fd2946 Add a flag to enable/disable the diskstats logging service.
am: 88e45dcd1f

Change-Id: Ie822eea68dc0a02c8fad1a838ff9bf23f738106f
2017-01-27 00:42:54 +00:00
TreeHugger Robot
56ff000782 Merge "Disable RescueParty in debug/lab environments." 2017-01-27 00:14:27 +00:00
Jeff Sharkey
6112860c5c Unhide ApplicationInfo.volumeUuid.
Apps need it to interact with the new StorageStatsManager APIs.

Test: builds, boots
Bug: 34723750
Change-Id: I274d5bd425cd401e10647959ba18f9956628d810
2017-01-26 17:08:40 -07:00
Jeff Sharkey
0b558701d8 StrictMode detectAll() based on target API level.
Some apps are asking StrictMode to detectAll(), but we should only
trigger the violation types that they would expect based on their
target SDK level.  (This prevents us from starting to yell about
violations in new API levels that a developer never would have known
about.)

Test: builds, boots, older apps aren't triggered
Bug: 34735225
Change-Id: Idff1bfdf57c635b828236e34a24d55350b9fa556
2017-01-26 16:52:04 -07:00
Felipe Leme
bd00fef41c Moar AutoFill Framework refactoring...
* Encapsulated application-level auto-fill logic on AutoFillSession.
  Currently, Activity.java directly manages the IAutoFillCallback binder
  object used to auto-fill its views, but this logic need to be
  extended so Views can use it to draw the auto-fill bar.

* Pass auto-fill id and boundaries to requests
  So AutoFillUI can display its affordance in the right places.

* Uses a new auto-fill id on View (instead of reusing accessibility's).
  That allows moving the logic on whether a new request should be made or
  the existing UI moved to the service side.

* Split service methods in 2, for shell cmd and app
  And applied the right permission check on both.

* Removed CancelationSignal from onSaveRequest()
  Since it's not really needed.

* Etc...
  ¯\_(ツ)_/¯

BUG: 34637800
BUG: 31001899
Test: CtsAutoFillServiceTestCases passes
Test: manual verification

Change-Id: Ibd0cb2cfff6d0f6bb6b697a423ed5e89df687b82
2017-01-26 15:39:59 -08:00
Jeff Sharkey
f17e4cf1f9 Push mapping from file extension to GID.
An upcoming sdcardfs change will offer to automatically change the
GID of files on external storage based on the extension, but we need
to tell the kernel the mapping that we'd like to see.

This change pushes the current mappings used by installd when kernel
support is detected.

Test: builds, boots, works with old/new kernels
Bug: 34733702
Change-Id: I4a13b17f5a8e080a9bea51b01aa9f1cbf575e0ab
2017-01-26 16:23:55 -07:00
Amith Yamasani
dacf5e522e Merge "Add NPE check before stopping profiler" 2017-01-26 23:04:07 +00:00
Amith Yamasani
b1684439b5 Add NPE check before stopping profiler
During crash scenarios, stopProfiling() could be called early.

Change-Id: I6ef78a47e3431dd7c41198ec29d40ebef3928c6a
Fixes: 34744398
Test: N/A
2017-01-26 14:58:26 -08:00
Soonil Nagarkar
6c72a326bb Merge "Add background location throttling whitelist support." 2017-01-26 22:51:35 +00:00
Jeff Sharkey
cdee83a614 Disable RescueParty in debug/lab environments.
We need to strike a balance between rescuing devices of real users
in the field, while also not interfering with debugging or testing
use-cases.

This change uses "charging via USB" as a signal that the device is
under active development, or is in a lab environment.  We could try
checking for an adb connection, but UsbDebuggingManager isn't
started until much later in the boot, so BatteryManager is our best
chance of detecting this case.

Note that we continue to always recover "user" builds, and we never
recover "eng" builds.

Test: builds, boots, skips when plugged in over USB
Bug: 34722552
Change-Id: Ib095482a2ed84e8c5dfb3c71d5f9b88457c2b5e6
2017-01-26 15:29:42 -07:00
Daniel Nishi
88e45dcd1f Add a flag to enable/disable the diskstats logging service.
Bug: 34704947
Test: Service tests
Change-Id: I224cfb38682f1fd2bd33750b664bd3aacdaa4bde
2017-01-26 14:24:28 -08:00
Sunny Goyal
33d9bc529e Merge "Adding AppWidgetManager.isRequestPinAppWidgetSupported" 2017-01-26 22:22:55 +00:00
TreeHugger Robot
4e231da7fe Merge "Minor javadoc cleanup." 2017-01-26 22:18:05 +00:00