- 14 Jul, 2015 19 commits
-
-
Amit Mahajan authored
-
Jason Monk authored
-
Marco Nelissen authored
-
Amit Mahajan authored
Callers will have either PRIVILEGED or regular READ_PHONE_STATE. Bug: 22468536 Change-Id: I60251f61250a975f4147b027d2539824a728e3b5
-
Craig Lafayette authored
-
Chris Craik authored
-
Jason Monk authored
Some tiles now won't do updates if the state hasn't changed (rotation) to avoid breaking the animation state. To handle this, state is cleared when the configuration changes. Bug: 22206214 Change-Id: I029fb4c75cc920a6c9907b65e8c48d28c21d529a
-
Alex Klyubin authored
-
Yohei Yukawa authored
-
Marco Nelissen authored
Bug: 22376538 Change-Id: I2f6af4fa31c097e2e2d619a068cf83721091c450
-
Ronghua Wu authored
-
Craig Lafayette authored
The javadoc for newChooseAccountIntent says that a null value for the allowableAccounts parameter is valid and an acceptable default. This CL makes sure that when this parameter is null, a NullPointerException is not thrown. Bug: 22475546 Change-Id: Ieb0d67dd02628e1ae5629499b3be3c6382efc9aa
-
Andrei Stingaceanu authored
-
Julia Reynolds authored
-
Julia Reynolds authored
Bug: 21448052 Change-Id: Id5db428a6faca4a905684088c47e070752ac2899
-
Yohei Yukawa authored
Currently PopupWindow used for the floating toolbar specifies neither FLAG_LAYOUT_NO_LIMITS nor FLAG_LAYOUT_IN_SCREEN. As a result, the floating toolbar can overlap the selected text when the attached window does not have enough height. Here is the repro code. final TextView textView = new TextView(this); textView.setLayoutParams( new ViewGroup.LayoutParams( ViewGroup.LayoutParams.MATCH_PARENT, ViewGroup.LayoutParams.WRAP_CONTENT)); textView.setText("A test sentence."); textView.setTextIsSelectable(true); final AlertDialog dialog = new AlertDialog.Builder(this) .setView(textView) .create(); dialog.getWindow().setGravity(Gravity.BOTTOM) dialog.show(); If you tap a word in the dialog, the floating toolbar unintentionally overlaps the selected text due to the limited height of the AlertDialog. It also turns out that just calling PopupWindow.setClippingEnabled(false) to specify FLAG_LAYOUT_NO_LIMITS is not sufficient and ends up showing the toolbar on the NavBar because we have mistakenly compared bounds in window-local coordinates (e.g. FloatingActionModemContentRectOnWindow) with bounds in screen coordinates (e.g. FloatingActionMode#mScreenRect). Hence the confusion of window-local coordinates and screen coordinates in FloatingToolbar and FloatingToolbar also needs to be addresses. To summarize here are the notable changes in this CL: - Specify FLAG_LAYOUT_NO_LIMITS so that the floating toolbar can be placed outside of the attached window. (We do this with PopupWindow#setClippingEnabled) - Switch to use screen coordinates from window-local coordiantes in FloatingToolbar and FloatingActionMode because some system components such as WindowManager prefer screen coordinates. - Put -OnScreen suffix for Rect and Point variables as long as they are in screen coordinates. Bug: 22335001 Change-Id: I71a8d356e868dc7715b030ca1078da4ec39368c3
-
Andrei Stingaceanu authored
Stop calling onExtractTextContextMenuItem if "Select All" is selected (the action does not modify text thus does not need batch editing). Editor#finishBatchEdit reports that text changed which in turn can stop the action mode and the selection after it was started by onPreDraw. Bug: 22059417 Change-Id: I5354cbe4bae374e0d5f3de39616336170ee33b92
-
Andrei Stingaceanu authored
-
Erik Kline authored
-
- 13 Jul, 2015 21 commits
-
-
Zach Johnson authored
Sockets accepted on a server socket didn't populate the mPfd field, which is used to close out the java end of the native-and-java communication socket when the overall rfcomm socket is closed. #badnewsbears b/21398841 Change-Id: I3adb0a9965f83d0f3006fa4f79ea4abeab5c9a17
-
Erik Kline authored
Bug: 21641983 Bug: 22235775 Bug: 22299819 Bug: 22358164 Change-Id: I48a2d162dd499a3590f06d805267a63822856969
-
Svet Ganov authored
Change-Id: I2c97e405eaec7ee1569fcddc872ff2a98c829efe
-
Svet Ganov authored
-
Svet Ganov authored
For modern apps targeting M SDK and up the external storage state is deterined by granted permissions. For apps targeting older SDK the storage access is determined by app ops correspning to the storage permissions as the latter are always granted. When app ops change we do not remount as we kill the app process in both cases enabling and disabling an app op since legacy code is not prepared for dynamic behavior where an operation that failed may next succeed. Hence, we remount when we start the app. For modern apps we don't kill the app process on a permission grant, therefore we synchronously remount the app storage. bug:22104923 Change-Id: I601c19c764a74c2d15bea6630d0f5fdc52bf6a5a
-
Christopher Tate authored
-
Christopher Tate authored
Bug 22304850 Change-Id: Ie4deffea2621fdc03a9bfe35690ecd109eed1a04
-
Svet Ganov authored
Merge "Check signatures of privileged persistent apps for granting defailt permissions" into mnc-dev
-
Christopher Tate authored
-
Svetoslav authored
-
Svetoslav authored
1. When querying for components to which to grant default permissions we are now getting disabled components as well as we want such packages to get default pemrissions on upgrade as disabled components may get reenabled. 2. When resolving activities to whose packages to grant default permissions we skip the corss-profile and skip-profile filters as they are set by device policy which should not affect implicitly default permission grants. Policy has explicit APIs for permission management. bug:22405963 Change-Id: Idf56d35e567a6fd6e097cd45988d1561422ee6fc
-
Robert Schaub authored
am 70d39c28: am 2b856100: Merge "docs: Removed references to lockscreen widgets, added note to Android 5.0 changes page" into mnc-preview-docs * commit '70d39c28': docs: Removed references to lockscreen widgets, added note to Android 5.0 changes page
-
Robert Schaub authored
am 2b856100: Merge "docs: Removed references to lockscreen widgets, added note to Android 5.0 changes page" into mnc-preview-docs * commit '2b856100': docs: Removed references to lockscreen widgets, added note to Android 5.0 changes page
-
Jason Monk authored
-
Christopher Tate authored
In the case when multiple apps handle a given web-link action, all of which have been marked as "launch the app instead of a browser" and so are otherwise ambiguous, always prefer the app that was most recently placed into the always-handle-links state. Bug 22051035 Change-Id: I3f43c19b0d7b74e9843445e41971bb5433affb1c
-
Robert Schaub authored
am 28006a3b: am 7182f075: Merge "docs: Changed text as requested in Android TV advertising bug, with minor cleanup" into mnc-preview-docs * commit '28006a3b': docs: Changed text as requested in Android TV advertising bug, with minor cleanup
-
Robert Schaub authored
am 1962b730: am 3430bec7: Merge "docs: Removed parenthetic phrase that made explanation unnecessarily confusing" into mnc-preview-docs * commit '1962b730': docs: Removed parenthetic phrase that made explanation unnecessarily confusing
-
Eric Gilmore authored
am f13e914d: am 8cce3984: Merge "Adding a link to what is currently our most popular "100 Days" video." into mnc-preview-docs * commit 'f13e914d': Adding a link to what is currently our most popular "100 Days" video.
-
Jinsuk Kim authored
-
Robert Schaub authored
Merge "docs: Removed references to lockscreen widgets, added note to Android 5.0 changes page" into mnc-preview-docs
-