Commit Graph

70106 Commits

Author SHA1 Message Date
Joe Fernandez
81a1217b71 Merge "docs: Update EditText JavaDoc comments" into oc-dev
am: cc7f08e997

Change-Id: I756fae9374b0bd2f30c7c1a856acdc09fe249adb
2017-04-27 05:33:23 +00:00
Joe Fernandez
bb2eecd532 Merge "docs: Update Button JavaDoc comments" into oc-dev
am: 1e5d0768cd

Change-Id: Ice1626bc12b0b605a97c8d921c352c5e600bc43a
2017-04-27 05:31:24 +00:00
TreeHugger Robot
cc7f08e997 Merge "docs: Update EditText JavaDoc comments" into oc-dev 2017-04-27 05:24:51 +00:00
TreeHugger Robot
1e5d0768cd Merge "docs: Update Button JavaDoc comments" into oc-dev 2017-04-27 05:21:23 +00:00
Felipe Leme
bd67d13bfc Merge "Autofill binding permission fixes." into oc-dev
am: d915c42150

Change-Id: I355fe15bed198f2db1bd819bbeb138be9bea56d2
2017-04-27 05:11:38 +00:00
Julia Reynolds
7ee513c27b Merge "Api updates" into oc-dev
am: f84467e19f

Change-Id: I136a7713ee8f2b625b58aac29f5315c5b336256b
2017-04-27 05:04:18 +00:00
Peng Xu
5d34ce7f65 Merge "[Stability]: fix system_server crash issue caused by fd leak." into oc-dev
am: 3ab258c98d

Change-Id: I2c36bf36a085f9c4535d74dc3245abfe56a2b322
2017-04-27 05:00:12 +00:00
TreeHugger Robot
d915c42150 Merge "Autofill binding permission fixes." into oc-dev 2017-04-27 04:56:44 +00:00
TreeHugger Robot
f84467e19f Merge "Api updates" into oc-dev 2017-04-27 04:51:46 +00:00
Peng Xu
3ab258c98d Merge "[Stability]: fix system_server crash issue caused by fd leak." into oc-dev 2017-04-27 04:49:16 +00:00
Joe Fernandez
41043c27a7 Merge "docs: Update ScrollView JavaDoc comments" into oc-dev
am: 47ca22e361

Change-Id: I420d715eb686c1a27f888a394d764358cb227df6
2017-04-27 04:42:27 +00:00
Joe Fernandez
6e76d0dd0a Merge "docs: Update RelativeLayout.LayoutParams JavaDoc comments" into oc-dev
am: b312d38868

Change-Id: I1452e7e30f5eea7da222b093b0e8d6d1fb400c10
2017-04-27 04:40:19 +00:00
Svet Ganov
9bf772566b Merge "Handle package changes in autofill manager service" into oc-dev
am: 01d51288df

Change-Id: Idcc327443e903d7b5b09526babf62426e3b83291
2017-04-27 04:36:08 +00:00
Joe Fernandez
6fcab388e1 Merge "docs: Update LinearLayout JavaDoc comments" into oc-dev
am: ca105f6c29

Change-Id: I474bae032506243df9035056155fc0738f49e445
2017-04-27 04:33:16 +00:00
Joe Fernandez
140a0c4569 Merge "docs: Update ProgressBar JavaDoc comments" into oc-dev
am: 80fe019f6b

Change-Id: Ia821d6edb1c0c1b44b7a1f33490c4046d81ff2cc
2017-04-27 04:31:10 +00:00
TreeHugger Robot
47ca22e361 Merge "docs: Update ScrollView JavaDoc comments" into oc-dev 2017-04-27 04:29:14 +00:00
TreeHugger Robot
b312d38868 Merge "docs: Update RelativeLayout.LayoutParams JavaDoc comments" into oc-dev 2017-04-27 04:28:36 +00:00
TreeHugger Robot
01d51288df Merge "Handle package changes in autofill manager service" into oc-dev 2017-04-27 04:22:24 +00:00
TreeHugger Robot
ca105f6c29 Merge "docs: Update LinearLayout JavaDoc comments" into oc-dev 2017-04-27 04:21:15 +00:00
TreeHugger Robot
80fe019f6b Merge "docs: Update ProgressBar JavaDoc comments" into oc-dev 2017-04-27 04:12:48 +00:00
Bartosz Fabianowski
06269a51a3 Merge "Add device ID attestation method to keymaster" into oc-dev
am: 9138c5dfa7

Change-Id: I27c7bd606df0c584d897523c787ae684e9c0c30c
2017-04-27 04:04:45 +00:00
TreeHugger Robot
9138c5dfa7 Merge "Add device ID attestation method to keymaster" into oc-dev 2017-04-27 03:51:35 +00:00
songjinshi
b5322b2be5 [Stability]: fix system_server crash issue caused by fd leak.
If an app incorrect use of registerListener, it will cause
system_server socket fd leak, for example:
    protected void onResume() {
        super.onResume();
        mSensorManager.registerListener(new MySensorEventListener(),
                mSensor, SensorManager.SENSOR_DELAY_UI);
Each time a new SensorEventQueue, then in the system_server
will open a new socket fd, as time increases system_server's
fd will be more than 1024 and crash, so we needed add count limit
for sensor listener to improve the system stability.

Test: use the apk attached in the issue
      https://code.google.com/p/android/issues/detail?id=258634
Bug: 37543280

Change-Id: I35006966a1638c25bb0f54611e117e16a764e12b
Signed-off-by: songjinshi <songjinshi@xiaomi.com>
2017-04-27 02:40:45 +00:00
Svet Ganov
48f10a2ab5 Handle package changes in autofill manager service
Autofill manager service was not observing package changes thus
we did not properly handle the cases of the service being updated,
added, and removed. Handling, additions is needed to properly
support restore from a backup. Fixed a few missing locks.

Test: all autofill CTS tests pass and manually tested update, add,
      and remove of autofill services.

bug:36638606
bug:36978445

Change-Id: Idd47891774ba2a4e562a1952cbb5a048211fd4e3
2017-04-26 19:22:05 -07:00
Daniel Sandler
c467559093 Merge "Avoid ClassCastException in ArrayMap." into oc-dev
am: f9e5395081

Change-Id: I2b8b50865bd6db37092ac5752bf280a74e840074
2017-04-27 01:31:40 +00:00
Daniel Sandler
f9e5395081 Merge "Avoid ClassCastException in ArrayMap." into oc-dev 2017-04-27 01:23:57 +00:00
Felipe Leme
decd887f01 Autofill binding permission fixes.
- Removed deprecated BIND_AUTO_FILL
- Renamed BIND_AUTOFILL to BIND_AUTOFILL_SERVICE
- Kept BIND_AUTOFILL as @hide
- Fixed the permission code

The permission check was actually ignored; it was probably broken when we
introduced support to settings.

Fixes: 37723410
Bug: 37563972
Test: manual verification with existing client
Test: CtsAutoFillServiceTestCases pass

Change-Id: If3abdcb0ae850f0a327bfdbb9ca6c44a24823047
2017-04-26 17:57:53 -07:00
Winson Chung
1aef4da275 Updating PiP API and documentation.
am: 709904f800

Change-Id: I28e4de6ab2072c53cc5d7da77b7d70acb63d8ef0
2017-04-27 00:46:25 +00:00
Winson Chung
709904f800 Updating PiP API and documentation.
- Renaming PictureInPictureArgs to PictureInPictureParams, making it
  immutable and built with a builder class.  In addition, making the
  aspect ratio rational.
- Moving the check to get max number of actions to the activity to have
  more flexibility going forward
- Also ensures that enterPictureInPictureMode() returns true if the
  activity is already in PiP mode.
- Will follow up with CL to remove PictureInPictureArgs and related methods
  once this CL drops

Bug: 35765211
Bug: 37638323
Bug: 37637423
Bug: 37636674
Bug: 36342780
Test: android.server.cts.ActivityManagerPinnedStackTests
Test: android.app.cts.PictureInPictureParamsBuilderTest

Change-Id: I54a487d55a59c9ce8ac7bd6c80c61209c8b26224
Signed-off-by: Winson Chung <winsonc@google.com>
2017-04-26 17:14:19 -07:00
Felipe Leme
889bdc8dc9 Merge "Provide support for optimized ACTION_REQUEST_SET_AUTOFILL_SERVICE." into oc-dev
am: 62bb027d12

Change-Id: If9e223a9cc7585568eb86995f0d0ef458d2c658c
2017-04-26 23:54:31 +00:00
Makoto Onuki
9e3f4ac593 Merge "Enhance DeviceAdminService javadoc and remove TODO." into oc-dev
am: 397335d926

Change-Id: Ie69d82114c5df99261c3d9fcfe2dd47eb6d7ddf1
2017-04-26 23:49:58 +00:00
Felipe Leme
62bb027d12 Merge "Provide support for optimized ACTION_REQUEST_SET_AUTOFILL_SERVICE." into oc-dev 2017-04-26 23:46:21 +00:00
Makoto Onuki
397335d926 Merge "Enhance DeviceAdminService javadoc and remove TODO." into oc-dev 2017-04-26 23:34:00 +00:00
Seigo Nonaka
7de96042ed Merge "Font API clean up" into oc-dev
am: 25c2cdc052

Change-Id: Ica94609836262103b721138eaac413c8192a7ca7
2017-04-26 23:32:57 +00:00
Seigo Nonaka
25c2cdc052 Merge "Font API clean up" into oc-dev 2017-04-26 23:20:01 +00:00
Rob Carr
96a018166a Merge "Fix logspam NPE." into oc-dev
am: bd1ef76684

Change-Id: I16bfcd16236ba42302208dce37e3eb08907f2c91
2017-04-26 21:54:48 +00:00
Rob Carr
bd1ef76684 Merge "Fix logspam NPE." into oc-dev 2017-04-26 21:43:30 +00:00
Felipe Leme
bb81092a31 Provide support for optimized ACTION_REQUEST_SET_AUTOFILL_SERVICE.
Also removed obsolete 'cmd autofill save'

Bug: 2153814
Test: manual verification

Change-Id: I082e6bb098e9be5d9e26d0941efcf6f28ab01e1d
2017-04-26 12:07:17 -07:00
Makoto Onuki
cbc0d11d21 Enhance DeviceAdminService javadoc and remove TODO.
Test: Javadoc only
Bug: 37706621
Change-Id: Iac09675ca923adf40aef8f1871ddd0de797d4a08
2017-04-26 12:03:59 -07:00
Felipe Leme
58510a2d6b Merge "Provide a way to set AutofillId on ViewStructure." into oc-dev
am: 5f7979222d

Change-Id: I64c55257b3652f1435f7beba1640fc0081ce4229
2017-04-26 18:50:39 +00:00
Felipe Leme
5f7979222d Merge "Provide a way to set AutofillId on ViewStructure." into oc-dev 2017-04-26 18:38:21 +00:00
Dan Sandler
d0ecb1ed10 Avoid ClassCastException in ArrayMap.
Only happens if you're put()ing and clear()ing the map from
different threads, and Dianne told you not to do that.

In addition to avoiding the cache poisoning that results
from concurrent access, ArrayMap now attempts to throw
ConcurrentModificationException if clear() or
ensureCapacity() or put() notices you've modified the map
elsewhere.

Bug: 32994281
Test: runtest -x frameworks/base/core/tests/coretests/src/android/util/ArrayMapTest.java
      runtest -x cts/tests/tests/util/src/android/util/cts/ArrayMapTest.java
Change-Id: Ia75970aa9e2b2b65692179f51243584b9773797f
2017-04-26 14:18:15 -04:00
Nathan Harold
35eb324bf1 Merge "Hide IpSecManager, IpSecTransform, and IpSecAlgorithm" into oc-dev 2017-04-26 18:03:00 +00:00
Seigo Nonaka
6c0dd10a7c Merge "Load font file from remote provider synchronously." into oc-dev
am: 1c661d1943

Change-Id: I29b540d331a40ad47ad0561ecefb1269cb76a188
2017-04-26 18:02:17 +00:00
Seigo Nonaka
080b054bdd Font API clean up
- Move FontRequest from android.graphics.fonts to android.provider since
  this is only used by android.provider.FontsContract and never draw
  anything.
- FontRequest is no longer being Parcelable.
- Remove FontSpec.aidl which is not necessary.

Bug: 37326126
Test: am instrument -w -e class android.provider.FontsContractTest
      com.android.frameworks.coretests/\
      android.support.test.runner.AndroidJUnitRunner
Test: am instrument -w -e class android.provider.cts.FontProviderTest
      android.provider.cts/android.support.test.runner.AndroidJUnitRunner
Test: am instrument -w -e class android.provider.cts.FontRequestTest
      android.provider.cts/android.support.test.runner.AndroidJUnitRunner

Change-Id: I0eb501844247c2f07eaa1fc7a71f72e404888b5b
2017-04-26 18:00:17 +00:00
Seigo Nonaka
927353aa3e Merge "Update FontsContract.requestFonts" into oc-dev
am: 57dc8328f5

Change-Id: I0d12ebae014abf185d05bc6dc7a37bdf3c5e44b3
2017-04-26 17:59:59 +00:00
Seigo Nonaka
1c661d1943 Merge "Load font file from remote provider synchronously." into oc-dev 2017-04-26 17:49:59 +00:00
Seigo Nonaka
57dc8328f5 Merge "Update FontsContract.requestFonts" into oc-dev 2017-04-26 17:48:42 +00:00
nharold
9f218096de Merge "Hide IpSecManager, IpSecTransform, and IpSecAlgorithm" am: 01e368f26d am: 939528045a
am: 52dab83f7a

Change-Id: I3bf240b35c3d509c4e016ffe20519c1bda5ab0b3
2017-04-26 17:38:58 +00:00
nharold
52dab83f7a Merge "Hide IpSecManager, IpSecTransform, and IpSecAlgorithm" am: 01e368f26d
am: 939528045a

Change-Id: Ic415f9f6d45f8c2477c3708c87af31ef725aa224
2017-04-26 17:31:23 +00:00