Commit Graph

94154 Commits

Author SHA1 Message Date
TreeHugger Robot
84f7d7b37c Merge "Deprecate Resources#getMovie()" 2018-08-27 21:06:28 +00:00
Tej Singh
008ecd3de0 Merge "DiskStats Westworld Migration" 2018-08-27 18:58:06 +00:00
TreeHugger Robot
6c05ade479 Merge "Throttle requests to ActivityManager.getProcessMemoryInfo()." 2018-08-27 15:37:33 +00:00
Sudheer Shanka
f5e4b2b275 Merge "Add @TestApi to ActivityManager.IMPORTANCE_CANT_SAVE_STATE_PRE_26." 2018-08-27 01:34:53 +00:00
Dianne Hackborn
8c76d91bd2 Throttle requests to ActivityManager.getProcessMemoryInfo().
This is very expensive and needs to run in the system process, we
don't want apps abusing it.

Also don't allow apps to get information about anything but their
own process, unless they have the appropriate privileged permissions.

Bug: 112537519
Test: manual
Change-Id: I01997d6f888341e8eb2afe6a69545dd5be013744
2018-08-26 18:19:07 -07:00
Makoto Onuki
efa01c37b7 Merge "Fix OWNERS (change google.com to android.com)" am: 7a8e363c0b am: 906a31f49f
am: 8fd96af2b1

Change-Id: Ibe5b3d6bf9d11fce9d091eb3e3872b6cd9e66afc
2018-08-25 23:33:02 -07:00
Makoto Onuki
8fd96af2b1 Merge "Fix OWNERS (change google.com to android.com)" am: 7a8e363c0b
am: 906a31f49f

Change-Id: Ie5089669974c9e9e9c99525c50eddaef6f479874
2018-08-25 23:23:37 -07:00
Makoto Onuki
906a31f49f Merge "Fix OWNERS (change google.com to android.com)"
am: 7a8e363c0b

Change-Id: Ic3e8861a95ac025d1ff6f68943ef460b94d3c501
2018-08-25 23:11:13 -07:00
TreeHugger Robot
db3e20f17f Merge "Trigger am and wm presubmit tests for code change under core/java/android/app" 2018-08-25 00:50:33 +00:00
Zhi An Ng
82e3988254 Merge "Revert "Throttle requests to ActivityManager.getProcessMemoryInfo()."" 2018-08-25 00:23:47 +00:00
TreeHugger Robot
4ace75e1b7 Merge "Remove an obsolete comment about BridgeIInputMethodManager" 2018-08-24 23:59:41 +00:00
TreeHugger Robot
8084b2b25d Merge "Truncate(*1) it if WAL file is too big when opening DB" 2018-08-24 23:30:18 +00:00
Yohei Yukawa
383c93adf5 Remove an obsolete comment about BridgeIInputMethodManager
BridgeIInputMethodManager has been removed [1].

 [1]: I6cc2ec078230064fcce3656788589af59a1f7e2d
      116000a4c644ddd562efeb1ee549909be0d7b332

Bug: 27297992
Test: compile
Change-Id: Iba6e1bb90c92692ab16ab2dd9d83665fe7e1c48c
2018-08-24 15:34:15 -07:00
Makoto Onuki
d52f363924 Merge "Actually make OWNERS in sync with the internal version" am: 7e54042f9c
am: 83c37379da

Change-Id: I1bbd7ccc7b610d9cbdcf9f7f8f52b734679766cd
2018-08-24 15:17:22 -07:00
Makoto Onuki
83c37379da Merge "Actually make OWNERS in sync with the internal version"
am: 7e54042f9c

Change-Id: Id6f2551434279d9d5be0c0cb2c72d59393bd4095
2018-08-24 15:08:00 -07:00
Makoto Onuki
96e06002ed Truncate(*1) it if WAL file is too big when opening DB
*1 -- not truncate(2) but "PRAGMA wal_checkpoint(TRUNCATE)"

Otherwise, depending on how an app operate on a DB, SQLite may not
have a chance to "shrink" the WAL file.

Fixes: 112777941
Bug: 111939259
Test: atest /android/master/frameworks/base/core/tests/coretests/src/android/database/sqlite/SQLiteCompatibilityWalFlagsTest.java
Test: Manual test with google dailer:
1. With normalized_spam.db-wal > 100MB and receive a phone call
-> WAL file gets truncated to 0 bytes.

2. Restart the dialer process and receive a phone call again
-> WAL file is already 0 bytes; won't be truncated.

3. Restart with the WAL file deleted
Same as #2. WAL file will be created before the added logic, but is 0 bytes,
so it won't be truncated.

4. Test with settings put global sqlite_compatibility_wal_flags truncate_size=1024
-> make sure the threshold is overridden

Change-Id: I2b193603e5dfa493ccccb8123db592f0e9c0e7ae
2018-08-24 15:07:21 -07:00
Makoto Onuki
1fda56bbda Fix OWNERS (change google.com to android.com)
Bug: N/A
Test: N/A
Change-Id: I9a9eecfff1a72d7da55be0df73f29985b19c1e38
2018-08-24 14:58:42 -07:00
Makoto Onuki
7e54042f9c Merge "Actually make OWNERS in sync with the internal version" 2018-08-24 21:56:34 +00:00
Dan Shi
a0ed8af84b Trigger am and wm presubmit tests for code change under core/java/android/app
The imports setting allows Test Mapping to automatically run presubmit tests
for ActivityManager and WindowManager, when code is changed under
core/java/android/app

Bug: 111302567
Test: local run atest
Change-Id: I5e2c935a56f339c2073426c9b01c7f4b345c16f2
2018-08-24 14:46:17 -07:00
Bill Napier
d7d338f359 Revert "Throttle requests to ActivityManager.getProcessMemoryInfo()."
This reverts commit 1f3b0302fd.

Reason for revert: broke SDK builds.  See ab/4976218

Change-Id: Id532e20eed8e13735a09cca5affc92005b685744
2018-08-24 21:13:13 +00:00
Sudheer Shanka
ae6d1c9a28 Merge "Create sandboxes for newly installed apps." 2018-08-24 21:06:29 +00:00
Chih-hung Hsieh
625a46dfb1 Merge "Use multiple patterns and emails in per-file syntax." am: 62d0edc6ef am: f16ded6120
am: 26b072d20d

Change-Id: I5929eb1f8c5906dd6fb1dc1f2166d26a7f6d7c27
2018-08-24 13:39:51 -07:00
Chih-hung Hsieh
26b072d20d Merge "Use multiple patterns and emails in per-file syntax." am: 62d0edc6ef
am: f16ded6120

Change-Id: I76a342fdc7097ba5941f78873145999612379e6c
2018-08-24 13:13:34 -07:00
TreeHugger Robot
fd6c590953 Merge "Throttle requests to ActivityManager.getProcessMemoryInfo()." 2018-08-24 19:56:34 +00:00
Chih-hung Hsieh
f16ded6120 Merge "Use multiple patterns and emails in per-file syntax."
am: 62d0edc6ef

Change-Id: I15a2aaf9dd002f1164146d81e8adbbe2bca74231
2018-08-24 12:48:10 -07:00
Makoto Onuki
83c1a68491 Actually make OWNERS in sync with the internal version
Bug: N/A
Test: N/A
Change-Id: Idc1dcc7753a5cf731475ae0f8f01ccd54ac0e3b3
2018-08-24 12:47:20 -07:00
Ryan Mitchell
2d50001f29 Merge "AFW: Lookup shared library resource ids" 2018-08-24 19:20:16 +00:00
Chih-hung Hsieh
62d0edc6ef Merge "Use multiple patterns and emails in per-file syntax." 2018-08-24 18:52:43 +00:00
Makoto Onuki
49a46611ef Merge "Update OWNERS for database code" am: aea74ff62a
am: 92732c2a25

Change-Id: I43a02b809a275df2ddbc2987f811a5f40c2a8461
2018-08-24 11:29:37 -07:00
Dianne Hackborn
1f3b0302fd Throttle requests to ActivityManager.getProcessMemoryInfo().
This is very expensive and needs to run in the system process, we
don't want apps abusing it.

Also don't allow apps to get information about anything but their
own process, unless they have the appropriate privileged permissions.

Bug: 112537519
Test: manual
Change-Id: I103a11f8d5b49fd4536795ea52c05de297698cb5
2018-08-24 11:27:50 -07:00
Ryan Mitchell
b9b540baf1 AFW: Lookup shared library resource ids
Shared libraries were failing to retrieve correct resource ids from the
values of attributes in xml files. The packages of the shared ids were
not changed from 0 to their runtime assigned package ids.

Bug: 112776204
Test: atest FieldsClassificationTest#testGetAlgorithm
Change-Id: I509bc7632f5ec3e9b644e590934e6cf569a4d938
2018-08-24 10:11:01 -07:00
Makoto Onuki
92732c2a25 Merge "Update OWNERS for database code"
am: aea74ff62a

Change-Id: I7c5ea848faaf7bc463b8640f9f922c3649a46409
2018-08-24 09:38:49 -07:00
Makoto Onuki
aea74ff62a Merge "Update OWNERS for database code" 2018-08-24 16:20:55 +00:00
Bill Lin
b78d6fdaab Merge "Unable to load BRs in SAF of FileSystemProvider" 2018-08-24 14:25:40 +00:00
Blake Lawson
0cf90160c6 Merge "Fix typo in IpConfiguration comment" am: 7b7e05459f am: a42857e3a4
am: 4d0997093e

Change-Id: I58b8e7c793d73ea53f11d66bc6f709d0c4f0c5aa
2018-08-23 21:27:11 -07:00
Blake Lawson
4d0997093e Merge "Fix typo in IpConfiguration comment" am: 7b7e05459f
am: a42857e3a4

Change-Id: I0871973d37267215fc31455015a37e6a8a60d821
2018-08-23 21:17:32 -07:00
Blake Lawson
a42857e3a4 Merge "Fix typo in IpConfiguration comment"
am: 7b7e05459f

Change-Id: Ife540b3bda671dcb8016dae86f221a62063bd464
2018-08-23 21:08:12 -07:00
Sudheer Shanka
6d7e402a50 Merge "Allow some apps to get full access to external storage." 2018-08-24 04:00:25 +00:00
Remi NGUYEN VAN
6808a81793 Merge changes I2cea553a,Id8d3dcf6,I19e68e88,I35598935,Idd7dc369, ... am: e01b4ce6c7 am: e06ae295a2
am: d8f0416ffc

Change-Id: Idc8915a99710a1e2bfd456519fb2931639cd5142
2018-08-23 20:51:03 -07:00
Treehugger Robot
7b7e05459f Merge "Fix typo in IpConfiguration comment" 2018-08-24 03:43:38 +00:00
Remi NGUYEN VAN
d8f0416ffc Merge changes I2cea553a,Id8d3dcf6,I19e68e88,I35598935,Idd7dc369, ... am: e01b4ce6c7
am: e06ae295a2

Change-Id: If4f9e1b498855af05011cbd0f529e346bebd4cbd
2018-08-23 20:42:23 -07:00
Remi NGUYEN VAN
e06ae295a2 Merge changes I2cea553a,Id8d3dcf6,I19e68e88,I35598935,Idd7dc369, ...
am: e01b4ce6c7

Change-Id: I1800eb214d501e76b8705a27ca817000d009736e
2018-08-23 20:33:45 -07:00
Remi NGUYEN VAN
e01b4ce6c7 Merge changes I2cea553a,Id8d3dcf6,I19e68e88,I35598935,Idd7dc369, ...
* changes:
  Add a SharedLog method to log errors w/ stacktrace
  Add DhcpServingParams
  Add fields to DHCP packets for server use-case
  Add util to add an ARP table entry
  Add DHCP utils extracted from DhcpClient
  Add DhcpLeaseRepository
2018-08-24 03:09:55 +00:00
Eric Holk
67c0091fc7 Merge "Add more tracing for obtainStyledAttributes" am: 2ef6338351 am: 106905df2e
am: 66a177f90e

Change-Id: Ic3155c4c7685e5ea7bdf55eae2d250081d8e12f3
2018-08-23 18:03:37 -07:00
Eric Holk
66a177f90e Merge "Add more tracing for obtainStyledAttributes" am: 2ef6338351
am: 106905df2e

Change-Id: I8e7a40aab8bdf2e50c741bcad62dc81bc3df88c0
2018-08-23 17:50:19 -07:00
Eric Holk
106905df2e Merge "Add more tracing for obtainStyledAttributes"
am: 2ef6338351

Change-Id: I9f65106687262f180dd62d329c7197cb720def51
2018-08-23 17:35:16 -07:00
Treehugger Robot
2ef6338351 Merge "Add more tracing for obtainStyledAttributes" 2018-08-24 00:11:50 +00:00
Sudheer Shanka
be85ed60a8 Add @TestApi to ActivityManager.IMPORTANCE_CANT_SAVE_STATE_PRE_26.
Fixes: 112329019
Test: cts-tradefed run singleCommand cts-dev -m CtsAppTestCases -t \
      android.app.cts.ActivityManagerProcessStateTest
Change-Id: I1c6f1dd9503cde5b11e9d2c3c02841771b665660
2018-08-23 15:02:11 -07:00
Chih-Hung Hsieh
002a574a7d Use multiple patterns and emails in per-file syntax.
Test: build/make/tools/checkowners.py -c -v OWNERS
Change-Id: Ia3e1df3f5ba8ad29489a017e55890b4dbb23a64d
2018-08-23 14:53:16 -07:00
TreeHugger Robot
029ce60caf Merge "Fixing static instant of OnClickHandler is getting modified at runtime" 2018-08-23 21:00:03 +00:00