Commit Graph

95283 Commits

Author SHA1 Message Date
Abodunrinwa Toki
e428c32653 Merge "Introduce TextClassifier.detectLanguage() API." 2018-10-19 14:27:26 +00:00
Chalard Jean
03eb7e1905 Merge "Fix a bug where Uri can't parse IPv6 literal addresses." am: 54677a86d4 am: 86ff3f4c7a
am: 6997192f35

Change-Id: I591c592e64a48f71f5528d999426343977fe48ce
2018-10-19 06:28:37 -07:00
Chalard Jean
6997192f35 Merge "Fix a bug where Uri can't parse IPv6 literal addresses." am: 54677a86d4
am: 86ff3f4c7a

Change-Id: Iec4629bc84bb32185be7120a6f5dfc5e97a5dbff
2018-10-19 06:14:19 -07:00
Chalard Jean
86ff3f4c7a Merge "Fix a bug where Uri can't parse IPv6 literal addresses."
am: 54677a86d4

Change-Id: Ibf681262344904990f77f9016f3ffc9efbce08ba
2018-10-19 05:10:55 -07:00
Treehugger Robot
54677a86d4 Merge "Fix a bug where Uri can't parse IPv6 literal addresses." 2018-10-19 11:04:29 +00:00
Ajay Panicker
a42f058908 Merge "Synchronize on a static final object to lock mDeviceBusy" am: 34f9a3e9e9 am: 56d37b7c43
am: 9020cf9a48

Change-Id: Ia12ca64ff5acca55182bac2fb8bae2523c7fc06a
2018-10-18 23:44:18 -07:00
Ajay Panicker
9020cf9a48 Merge "Synchronize on a static final object to lock mDeviceBusy" am: 34f9a3e9e9
am: 56d37b7c43

Change-Id: Ic53518b0e62803bb68b60ed318d6a0825b192164
2018-10-18 23:34:44 -07:00
Ajay Panicker
56d37b7c43 Merge "Synchronize on a static final object to lock mDeviceBusy"
am: 34f9a3e9e9

Change-Id: I8547f2f6f7caed16887558416525fb7d40cda46a
2018-10-18 23:24:17 -07:00
Seigo Nonaka
2683a99d42 Merge "Change add{StyleRun, ReplacementRun} to append{StyleRun, ReplacementRun}" 2018-10-19 05:22:22 +00:00
Chalard Jean
1a1d52ebb4 Fix a bug where Uri can't parse IPv6 literal addresses.
Bug: 25540738
Test: added CTS in aosp change #793137 and ran them
Change-Id: Ibf870b7e87799090fae9ed456286c11990b01461
2018-10-19 11:25:27 +09:00
David Brazdil
aa0d977f6f Merge "Add entries to hidden api greylist" am: 7d044566c6 am: be42ec18df
am: 65240e8229

Change-Id: Ic085da7cd80379633706b890a320473974ac8e14
2018-10-18 15:12:06 -07:00
Treehugger Robot
34f9a3e9e9 Merge "Synchronize on a static final object to lock mDeviceBusy" 2018-10-18 22:00:49 +00:00
Seigo Nonaka
7b86fe573c Change add{StyleRun, ReplacementRun} to append{StyleRun, ReplacementRun}
Giving any range to the Builder is too much freedum and hard to tell
errors. Changes to accept length instead of ranges. By this change, we
can prevent and tell errors about
- The gap in the text that no Paint is assigned.
- The given range is overlapped.
- The given range exceeds the text length.

Bug: 112327179
Test: TreeHugger

Change-Id: Iefc078b1f7be2d006a65b46e0b4ea1018ecb29e7
2018-10-18 14:58:18 -07:00
David Brazdil
65240e8229 Merge "Add entries to hidden api greylist" am: 7d044566c6
am: be42ec18df

Change-Id: I33b270876d603d19a752c5f3fabb44cebe4bf95f
2018-10-18 14:56:52 -07:00
David Brazdil
be42ec18df Merge "Add entries to hidden api greylist"
am: 7d044566c6

Change-Id: Id7966477ee57cd3a8d3b02c4772b6a572e3f5f1a
2018-10-18 14:25:12 -07:00
Cody Northrop
fdd0229da8 Merge "Find and load ANGLE rules, pass to libEGL" 2018-10-18 21:01:24 +00:00
TreeHugger Robot
b3a793d969 Merge "Add activity options flag to force launching an activity in a new task" 2018-10-18 20:31:30 +00:00
TreeHugger Robot
dc315fd243 Merge "WebView: add new integer for billing threats" 2018-10-18 19:50:08 +00:00
TreeHugger Robot
cbc3b7a295 Merge "Adding support for cross-task hero transition" 2018-10-18 17:29:10 +00:00
TreeHugger Robot
a02e61107f Merge "Temporarily revert device identifier access check to previous behavior" 2018-10-18 15:59:18 +00:00
Cody Northrop
7fd4421f7f Find and load ANGLE rules, pass to libEGL
In order to load a text file from an APK, it must be present
in the assets folder and be uncompressed. The AssetManager can
find assets from any application, so we point it at ANGLE. We
then pass the file descriptor, offset, and size, down to the loader
so it can parse json from the asset.

Bug: 80239516
Test: Manual build, ensure we can inspect rules from modified APK
Test: cts-tradefed run singleCommand cts -m CtsAngleIntegrationHostTestCases
Change-Id: Ib3ecce34b043753b2894915975b6dd8440154ae2
(cherry-picked from commit cfaa0ba52fcf60578acdd64bc4dc9a00f6e300ed)
2018-10-18 09:16:57 -06:00
Jeff Sharkey
64d704f0fb Merge "Catch more invalid file modes." 2018-10-18 14:51:08 +00:00
Dan Sandler
134e4b284b resolve merge conflicts of aad998c0b4 to pi-dev-plus-aosp
Bug: None
Test: I solemnly swear I tested this conflict resolution.
Change-Id: Icf172daeb848f746c81acd25a4406decc00ed875
Merged-In: Ib32dafbd3c6fcbe11186dc8ecab6b09c9b734067
2018-10-18 13:44:22 +00:00
Nate Fischer
f9a235316c WebView: add new integer for billing threats
No change to logic, this adds a new integer constant for Safe Browsing
billing threats.

This also adds ending periods in the docs for existing threat types.

Bug: 117470538
Test: N/A
Change-Id: I5368601efc7d587af1f530b7bf2825f277424082
2018-10-17 20:30:54 -07:00
Abodunrinwa Toki
7cefd4f20c Introduce TextClassifier.detectLanguage() API.
Implementation will follow in TextClassifierImpl (for AOSP)
and SystemTextClassifier (for OEM version).

Bug: 116020587
Test: atest android.view.textclassifier.TextLanguageTest
Change-Id: Iaf7e8df2a14fe22335805bee41f138468430aea6
2018-10-18 03:04:28 +01:00
Michael Groover
9db22c7a89 Temporarily revert device identifier access check to previous behavior
If a calling package does not meet the new requirements for device identifier
access the calling package and method will be logged and the previous
READ_PHONE_STATE permission check will be performed to grant access to the
requested identifier. This is to prevent additional breakage for apps that
currently require device identifiers but have not yet been granted the
privileged permission or carrier privileges.

Bug: 117585389
Test: cts-tradefed run cts -m CtsPermissionTestCases \
      -t android.permission.cts.TelephonyManagerPermissionTest
Test: Manually invoked an app targeting pre-Q and verified access
      to device identifiers with the READ_PHONE_STATE permission.

Change-Id: I03339486a2d6971b93472479b79959c888beba1e
2018-10-17 18:05:46 -07:00
Jeff Sharkey
0c91451bc8 Catch more invalid file modes.
Bug: 117440225
Test: atest android.os.FileUtilsTest
Change-Id: Id5e8c0869182b6391994dd9266a455dd3152e653
2018-10-17 18:32:27 -06:00
TreeHugger Robot
eab8ebbda7 Merge "Remove IInputMethodManager#finishInput(), which is NOP" 2018-10-18 00:02:01 +00:00
Sunny Goyal
d85bed510f Adding support for cross-task hero transition
> Do not show starting window when using hero transition
> When running cross-task, only play the enter animation
> Allow transitions when using intent-sender

Bug: 113071278
Test: atest cts/tests/tests/transition/src/android/transition/cts/ActivityTransitionTest.java
atest cts/tests/tests/app.usage/src/android/app/usage/cts/ActivityTransitionTest.java

Change-Id: Id973d52412a9a2cde3ebcae3b718556c47dfff5d
2018-10-18 00:01:18 +00:00
Wale Ogunwale
7aa64840b8 Merge "Moved appNotResponding handling into ProcessRecord (23/n)" 2018-10-17 23:35:32 +00:00
Matt Pape
ba266c7b7f Merge "Add a new config table to the settings provider for remotely configured parameters. This includes the minimum number of changes necessary to make the table work, but no API surface yet." 2018-10-17 22:02:14 +00:00
TreeHugger Robot
1abd4feabb Merge "Removed AMS.mStackSuperivor (22/n)" 2018-10-17 20:08:41 +00:00
Ajay Panicker
6c96b70195 Synchronize on a static final object to lock mDeviceBusy
Synchronizing on a field doesn't lock the object in a predictable way.

Bug: 63389270
Test: Compile
Change-Id: Idd3111bc94d32bc4bb320a5c25da37fe68276337
2018-10-17 18:20:51 +00:00
Steve Elliott
730d1d5cd3 DO NOT MERGE: Add configurable default setting for assistant componentname
By requiring an explicit default setting, it eliminates all ambiguous
states where a disambiguation would normally be shown. With this
change in place, at no point should a disambiguation be shown.

Test: manual
Bug: 111603898
Change-Id: Ib32dafbd3c6fcbe11186dc8ecab6b09c9b734067
2018-10-17 17:46:28 +00:00
Eran Messeri
5cb1e8e636 Merge "Enterprise Policy for Private DNS Setting" 2018-10-17 16:59:57 +00:00
Matt Pape
1b31a331b0 Add a new config table to the settings provider for remotely configured parameters. This includes the minimum number of changes necessary to make the table work, but no API surface yet.
Test: local tests

bug: 113100523

Change-Id: I47f89f5e6657a2a347e62cb40924bba4547f7dd9
2018-10-17 09:58:32 -07:00
Wale Ogunwale
51cc98adbe Moved appNotResponding handling into ProcessRecord (23/n)
Allows for better seperation of AMS and ATMS, also the method mostly
accessed internal variables in ProcessRecord so it make sense for it
to be in that class.
Also, move inputDispatchingTimedOut back to AM side because it involves
lots of process stuff.

Test: Existing test pass
Bug: 80414790
Change-Id: I45b98dc550ff121e9df4bf004b2667af2426b79d
2018-10-17 09:47:09 -07:00
Wale Ogunwale
31913b50d1 Removed AMS.mStackSuperivor (22/n)
The stack supervisor object should only be accessed through ATMS.

Test: Existing test pass
Bug: 80414790
Change-Id: I0648a95161a6a5c4ad714264d217c7f5e55852d7
2018-10-17 09:47:08 -07:00
TreeHugger Robot
7c5c113f53 Merge "Snapshot memory state for some native processes" 2018-10-17 16:30:55 +00:00
Mihai Popa
03cc437b08 Merge "Move ViewGroup#mChildren[Count] to dark-grey list" 2018-10-17 15:21:31 +00:00
David Brazdil
cd8f6ca5ab Add entries to hidden api greylist
Bug: 116509788
Test: m appcompat
Change-Id: I5a1977fdeacab3f4aa3a7104c26931a2fcb21b20
2018-10-17 13:46:51 +01:00
Rafal Slawik
0862158f13 Snapshot memory state for some native processes
Which processes to snapshot is controlled by a whitelist.

Benchmark for taking the snapshot:
https://docs.google.com/spreadsheets/d/1vG9ku8Uu8104CmKbO4cNeEKVeeByvHY--p0_dK1GAdA/edit?usp=sharing
(The difference between the first two sheets.)
~20ms constant cost plus ~4ms per process.

Bug: 115968899
Test: manually verified that statsd is included in the report
Change-Id: Iba680531c563ba28fae849e44044313866b2103f
2018-10-17 10:34:27 +01:00
TreeHugger Robot
11f07dec94 Merge "Private DNS: Add user restriction" 2018-10-17 08:36:56 +00:00
Yohei Yukawa
e48d0ae661 Remove IInputMethodManager#finishInput(), which is NOP
Currently InputMethodManagerService#finishInput() does nothing. Until
we fully understand what is the right approach on how and when
InputMethodService#finishInput() (Bug 9216494), let's remove this
unnecessary IPC from the IME client to InputMethodManagerService.

Bug: 9216494
Test: atest CtsInputMethodTestCases CtsInputMethodServiceHostTestCases
Test: atest FrameworksCoreTests:android.view.inputmethod.InputMethodManagerTest
Change-Id: I614050d20f4a7d9611dc0502e55e6ca3458a836e
2018-10-17 16:14:34 +08:00
TreeHugger Robot
a1b9c31cbc Merge "Move displayId into MotionEvent" 2018-10-17 07:34:36 +00:00
TreeHugger Robot
c4b7e853c1 Merge "Change the feature flag for Hearing Aid behavior" 2018-10-17 04:57:55 +00:00
TreeHugger Robot
38d0bd0634 Merge "Set EXTRA_USER instead of EXTRA_USER_ID for ACTION_SHOW_ADMIN_SUPPORT_DETAILS" 2018-10-17 00:26:37 +00:00
TreeHugger Robot
0569538675 Merge "Clean-up removed RecoveryController API" 2018-10-17 00:22:02 +00:00
Yiwei Zhang
e5e555dbb4 Merge "[GraphicsEnvironment] Add whitelist support." 2018-10-17 00:18:52 +00:00
Steve Elliott
5269abcf95 Merge "Add configurable default setting for assistant componentname" 2018-10-16 21:05:23 +00:00