Commit Graph

86066 Commits

Author SHA1 Message Date
TreeHugger Robot
8eb75d3d74 Merge "Add debug logs" 2018-01-17 01:06:29 +00:00
TreeHugger Robot
fc12cc51d3 Merge "Add DISALLOW_CONFIG_SCREEN_TIMEOUT." 2018-01-17 00:22:08 +00:00
TreeHugger Robot
0f2accd30a Merge "Remove search_v2 flag" 2018-01-17 00:04:50 +00:00
Makoto Onuki
13ccf0b951 Merge "Log sync stop (== onStopJob) reason in the sync log." 2018-01-16 23:04:15 +00:00
TreeHugger Robot
182b3f994b Merge "Fix a couple PIP related issues." 2018-01-16 22:55:17 +00:00
TreeHugger Robot
aea5cfe8c3 Merge "Beginning implementation of quickscrub (1/3)" 2018-01-16 21:59:43 +00:00
Lenka Trochtova
c141d08b70 New management API for making backups mandatory.
Let the device owner make backups with a chosen backup
transport mandatory.

BUG: 64012357
Test: make RunFrameworksServicesRoboTests
Test: manually together with the corresponding GmsCore change.
Test: cts-tradefed run cts -m CtsDevicePolicyManagerTestCases --test
com.android.cts.devicepolicy.DeviceOwnerTest#testGetAndSetMandatoryBackupTransport
Test: cts-tradefed run cts -m CtsBackupHostTestCase --test
android.cts.backup.BackupDeviceOwnerHostSideTest#testMandatoryBackupTransport

Change-Id: I9bfae5799beae3459659e697813b75a9b508ae55
2018-01-16 22:24:11 +01:00
Fan Zhang
55c4e3dcb2 Remove search_v2 flag
Change-Id: I606111f510d2d44276aac2e71fdc5e87b0e2babe
Fixes: 69851037
Test: rebuild
2018-01-16 13:16:55 -08:00
Makoto Onuki
d2bfec6359 Log sync stop (== onStopJob) reason in the sync log.
Bug: 71866667
Test: Manual test

Change-Id: I89e492362759fe6318102b61a28818b642f5bc2f
2018-01-16 20:47:24 +00:00
Andreas Gampe
e8e016838a Merge "ActivityThread: Attempt to attach agent with app's classloader" am: f779d7e3be am: 9f1f950c31
am: 9853a65386

Change-Id: I064033ab86013dd80efa3cb4eb22b89ac143e7b6
2018-01-16 20:08:30 +00:00
Andreas Gampe
9853a65386 Merge "ActivityThread: Attempt to attach agent with app's classloader" am: f779d7e3be
am: 9f1f950c31

Change-Id: I0df113aff5a54c5a1dbc5f968679bb9d4f8ea158
2018-01-16 19:59:02 +00:00
TreeHugger Robot
020b579dd4 Merge "DisplayCutout: LayoutInDisplayCutoutMode API" 2018-01-16 19:58:17 +00:00
Andreas Gampe
9f1f950c31 Merge "ActivityThread: Attempt to attach agent with app's classloader"
am: f779d7e3be

Change-Id: Id5ae3b90ca4b75046419fb1a6c02ef556d225f77
2018-01-16 19:46:36 +00:00
Winson Chung
2a35e6db84 Fix a couple PIP related issues.
- Only show settings button when in the full PIP menu (71709327)
- Fix issue with PIP not moving with keyboard due to new callback order
  (71584422)
- Make home button consistent with recents button when in an activity
  over the lockscreen (64137485).  When you tap home, it will now prompt
  you to unlock before going home (and auto-entering PIP if the app
  supports it)

Bug: 71709327
Bug: 71584422
Bug: 64137485

Test: Manual, ensure that pip shifts with keyboard and verify that it
      launches into PIP from show-over-lockscreen activity

Change-Id: I9122b7e20a5bfe82b32c8b576bd4fa11b5659c31
2018-01-16 11:39:08 -08:00
TreeHugger Robot
b0538e6dac Merge "[Magnifier - 14] Follow finger instead of cursor" 2018-01-16 19:22:36 +00:00
TreeHugger Robot
dede23b0f0 Merge "Created hidden constants and metrics for ScopedAccessProvider." 2018-01-16 19:14:58 +00:00
Treehugger Robot
f779d7e3be Merge "ActivityThread: Attempt to attach agent with app's classloader" 2018-01-16 18:25:32 +00:00
TreeHugger Robot
38e2249aa8 Merge "Reenable Strictmode disk reads checks in WebViewFactory." 2018-01-16 17:42:18 +00:00
Felipe Leme
12e15cc6ed Created hidden constants and metrics for ScopedAccessProvider.
Test: echo 'Not yet!'
Bug: 63720392

Change-Id: I811cde225fdcf5271fda9b357da742e408de0627
2018-01-16 09:28:44 -08:00
Mihai Popa
1d1ed0cd6e [Magnifier - 14] Follow finger instead of cursor
This CL makes the magnifier follow the finger rather than the cursor in
text editing. Hence, the magnifier's movement becomes horizontally
smooth, rather than only jumping at the same time with the cursor.
Vertically it remains stable relative to the current line.

Bug: 70508649
Test: bit CtsWidgetTestCases:android.widget.cts.MagnifierTest
Change-Id: I7e06a7064f0a413379b30c5e2d11ee85d2ad3720
2018-01-16 17:28:11 +00:00
Adrian Roos
fa02da6250 DisplayCutout: LayoutInDisplayCutoutMode API
Replace the FLAG2_LAYOUT_IN_DISPLAY_CUTOUT flag with a
dedicated layoutInDisplayCutout field; given the change
in behavior of SYSTEM_UI_FLAG_LAYOUT_FULLSCREEN with respect
to the display cutout, apps that request this now also need
a way to request the same behavior as FLAG_FULLSCREEN.

Broadly, there's three categories of apps:

1) Apps that want to make dedicated use of the cutout
   area -> no letterbox ever

2a) Apps that hide the status bar, but don't expect the
    cutout to be there cutting into their content
    -> we want those to get letterboxed

 b) Some apps may only be transiently fullscreen, but always
    want to get letterboxed
     -> we want those to get letterboxed even if not currently
        fullscreen

3) Apps that never go fullscreen, and just draw the status
   bar background in the cutout area (i.e. the most common type
   of app)
   -> these need to get letterboxed whenever the cutout and
      status bar don't coincide (under our current guidelines
      that's only in fullscreen and landscape)

To cover each use case, we have:

ALWAYS: Always allow the app to draw into the cutout, never letterbox it; covers 1
NEVER: Never allow the app to draw into the cutout, always letterbox it; covers 2a and 2b
DEFAULT: Allow the app to draw into the cutout if that area is covered by the status bar
         anyways. This does the right thing for most existing apps (2a and 3).

Bug: 65689439
Test: atest PhoneWindowManagerLayoutTest
Change-Id: Ib8d551251e9be4ef9d580ca2151bf40a9678acae
2018-01-16 17:56:32 +01:00
TreeHugger Robot
4ae9eacc84 Merge "Unhide InputMethodService#requestShowSelf()" 2018-01-16 16:10:53 +00:00
Yohei Yukawa
fbc2f7acd5 Unhide InputMethodService#requestShowSelf()
This is a follow up CL to a recent CL [1], which aimed to move several
APIs only for InputMethodService from InputMethodManager to
InputMethodService.

This CL removes InputMethodService#hideSoftInputFromInputMethod(),
which is exactly the same as InputMethodService#requestHideSelf() that
is already available as a public API for IME developers.

This CL also virtually renames
InputMethodService#showSoftInputFromInputMethod() to
InputMethodService#requestShowSelf(), which has existed as a
private method but not been exposed to IME developers yet.

 [1]: I3163f3cbe557c85103ca287bee0874a3b4194032
      d8d03a8e1b

Bug: 70282603
Test: atest CtsInputMethodTestCases
Change-Id: If6a786c5774805d041ea9672ef2721e4a38df7fc
2018-01-16 08:09:11 -08:00
Naomi Musgrave
ff350a2f35 Merge "Include ID in toString of NetworkEvent subclasses, DNS and Connect event" 2018-01-16 15:00:38 +00:00
Oscar Key
0158d976c8 Merge "Add FLAG_INCREMENTAL and FLAG_NON_INCREMENTAL to performBackup()." 2018-01-16 11:17:00 +00:00
Hugo Benichi
060f3cc2b5 Merge "MacAddress: add @NonNull annotations" am: e65a016d76 am: a7c125e5b2
am: 697b7fe9e1

Change-Id: Ib525e2429609ce12c2be5bbeacffa217b65bebe3
2018-01-16 10:40:56 +00:00
Hugo Benichi
697b7fe9e1 Merge "MacAddress: add @NonNull annotations" am: e65a016d76
am: a7c125e5b2

Change-Id: Icaa08c082797c6dbc3382e0662e24e1c84114175
2018-01-16 10:30:20 +00:00
Hugo Benichi
a7c125e5b2 Merge "MacAddress: add @NonNull annotations"
am: e65a016d76

Change-Id: Ia1ea828cfd33b5287639e4fd3ab248a58650168b
2018-01-16 10:18:55 +00:00
Neil Fuller
8e69452978 Merge "Remove code no longer used by telephony" 2018-01-16 08:39:16 +00:00
Hugo Benichi
e65a016d76 Merge "MacAddress: add @NonNull annotations" 2018-01-16 07:10:50 +00:00
TreeHugger Robot
f3fa614fee Merge changes I3d7cef4e,Ie0f43f54
* changes:
  Add missing @Override when {@inheritDoc} exists
  Remove unnecessary qualifiers from InputConnection
2018-01-16 05:50:08 +00:00
Lorenzo Colitti
7e933876fa Merge "Change the netId to nethandle mapping." am: 9456c020d8 am: feaf412e19
am: 93e0bad422

Change-Id: I06e09bfaeb1040b97afa392faace339eb5bab4ad
2018-01-16 05:32:55 +00:00
Lorenzo Colitti
93e0bad422 Merge "Change the netId to nethandle mapping." am: 9456c020d8
am: feaf412e19

Change-Id: Idd1b2f462c1c78bdb68b43a4aa77bf2358f7cb52
2018-01-16 05:16:34 +00:00
Lorenzo Colitti
feaf412e19 Merge "Change the netId to nethandle mapping."
am: 9456c020d8

Change-Id: I605ea54ff9e8e32e4fad6f0346b37849fadbc81a
2018-01-16 05:06:50 +00:00
Hugo Benichi
48872c6342 MacAddress: add @NonNull annotations
This patch adds to the MacAddress class:
  - getAddressType() method which replaces addressType(), for naming
  consistency
  - @NonNull annotations on all input and output reference values for
  all public methods (@hide and public).

TYPE_UNKNOWN, which currently cannot be observed with a non @hide
method, is also removed from the public api.

Bug: 71866627
Test: $ runtest frameworks-net
Change-Id: I2af70408d46f431b7b32183e6b48ddae9a261a2c
2018-01-16 13:32:59 +09:00
Yohei Yukawa
7a8c9aaad8 Add missing @Override when {@inheritDoc} exists
Otherwise, Checkstyle keeps nagging us with the following lint warning
whenever we touch the lines around them.

  Must include @java.lang.Override annotation when {@inheritDoc}
  Javadoc tag exists.

This CL also re-format the license header just to make Checkstyle
happy.

This is purely a no-op style change. There must be no behavior change.

Test: prebuilts/checkstyle/checkstyle.py -f frameworks/base/core/java/android/view/inputmethod/InputConnectionWrapper.java
Change-Id: I3d7cef4e6c1407a6c6d8ee75c0d8b75943d8701c
2018-01-15 19:43:38 -08:00
Yohei Yukawa
77efd914b5 Remove unnecessary qualifiers from InputConnection
Otherwise, Checkstyle keeps nagging us whenever we touch lines around
them.

This CL also re-formats the license header and keep all the lines
within 100 colmun just to make Checkstyle happy.

This is purely a no-op style change. There must be no behavior change.

Test: prebuilts/checkstyle/checkstyle.py -f frameworks/base/core/java/android/view/inputmethod/InputConnection.java
Change-Id: Ie0f43f545d8056884c5d20a601d0a501187062c7
2018-01-15 19:43:27 -08:00
Treehugger Robot
9456c020d8 Merge "Change the netId to nethandle mapping." 2018-01-16 02:58:56 +00:00
Seigo Nonaka
b01e18c3ee Merge "Rename PremeasuredText to MeasuredText" 2018-01-16 00:47:52 +00:00
Andreas Gampe
ab8a63be6a ActivityThread: Attempt to attach agent with app's classloader
Try to use the app's (main) classloader when an attach-agent request
is handled. If that fails, retry without a classloader.

Add bind-application-time flag to ProfilerInfo. Use the flag to have
a second attach-agent point on app startup. Add --attach-agent-bind
to cmd activity start to expose the difference between pre-bind and
bind-time attaching.

Bug: 70901841
Test: m
Test: cts-tradefed run commandAndExit cts-dev -m CtsJvmtiAttachingHostTestCases
Change-Id: I21698ec3be43a6d095d577100b2adfb22daca7d5
2018-01-15 13:04:25 -08:00
Tomasz Wasilczyk
793c1030fa Merge "Implement front-end APIs for dynamic program list." 2018-01-15 18:54:19 +00:00
TreeHugger Robot
30b8dd4199 Merge "Tag brightness APIs with @SystemAPI" 2018-01-15 18:31:34 +00:00
Oscar Key
7b1d974d71 Add FLAG_INCREMENTAL and FLAG_NON_INCREMENTAL to performBackup().
These indicate if backup manager passed any previous state to the backup
agent when building a backup. The transport will use these to decide
whether to clear any existing encryption related state for the app.

I left the new flags as @hide for now.

Bug: b/71792427
Test: Tested manually with a buid of GmsCore updated to process the new
flag. I am attempting to write a robolectric test.

Change-Id: Ica0f6f578cd7d1ad29af532a45a2ee6685c84747
2018-01-15 18:22:29 +00:00
Gustav Sennton
90b38a9e38 Reenable Strictmode disk reads checks in WebViewFactory.
In an earlier release we had to allow disk reads during a part of
WebView initialization, now that this fault is fixed we can remove that
allowance.

Bug: 63324842
Test: Manual: ensure calling new WebView() doesn't cause StrictMode disk
read violation.
Test: run WebViewHostSideStartupTest.testStrictMode()

Change-Id: If7b4ad790c67469806c255427d86e5fd28d19f35
2018-01-15 18:15:19 +00:00
Richard Ledley
68b17a7ebd Merge "Add flag to control smart linkify." 2018-01-15 17:40:46 +00:00
Lorenzo Colitti
e4fc6322a4 Change the netId to nethandle mapping.
Being able to update this handle is necessary to ensure that
system-only OTAs do not break vendor code that relies on
nethandles.

Bug: 63052780
Test: walleye builds, boots, networking works
Test: MultinetworkApiTest CTS tests passes
Change-Id: I049a4ad2610ca68b8f56377b63be7e5e8ce76039
2018-01-16 02:08:09 +09:00
Neil Fuller
11351b655b Remove code no longer used by telephony
This code was previously used by telephony
but was removed by frameworks/opt/telephony
commit a0f09cee0f6328ea104b9ef965a387b4a4652e8a

Bug: 63743683
Test: make droid
Change-Id: I83deffc2aadc098e1c976bf164a752e19b96c77a
2018-01-15 17:02:07 +00:00
Tomasz Wasilczyk
436128f23a Implement front-end APIs for dynamic program list.
Bug: 69860743
Test: instrumentation
Change-Id: I326865c690d315b867626599174e34911564ef9e
2018-01-15 08:26:23 -08:00
TreeHugger Robot
23374d63ec Merge "Move startUserInBackground to standalone and avoid user from being stopped unnecessarily" 2018-01-15 13:56:36 +00:00
Richard Ledley
9cfa60673a Add flag to control smart linkify.
Test: manual

Change-Id: If72f031b37ed313828d97d500af587bed6e8383b
2018-01-15 13:14:06 +00:00