Commit Graph

90943 Commits

Author SHA1 Message Date
Andrii Kulian
76ea768bd3 Allow transitioning through lifecycle when finished
When finish was requested for an activity, certain
lifecycle transitions were blocked to avoid delivering
invalid callbacks in the past. The checks and early
returns that were left from the old way of resolving
lifecycle cancelled delivering STARTED, RESUMED and
PAUSED state if an activity called finish().
This is no longer required with Lifecycler infrastructure
that takes care of ensuring validity of all transition
sequences.

Bug: 127106719
Bug: 126693030
Test: ActivityLifecycleTests#testFinishInOn*
Change-Id: Ia9e76dae2f2b5cede046140ef0f196a07accb8c3
2019-03-05 13:39:16 -08:00
Zak Cohen
28bfe37108 Merge "ContentSuggestions - mark request builder returns as NonNull." 2019-03-04 19:33:09 +00:00
Zak Cohen
5749c76b11 Merge "ContentSuggestions - make extras in request @NonNull." 2019-03-04 19:33:03 +00:00
Android Build Merger (Role)
bebec75d6e Merge "Merge "Adding new APN type for Mission Critical Services." am: 36791ef41e am: c45dc5916a am: aec43bb247" 2019-03-04 19:13:17 +00:00
Amit Mahajan
cee0e5935e Merge "Adding new APN type for Mission Critical Services." am: 36791ef41e am: c45dc5916a
am: aec43bb247

Change-Id: Iaa216ae164b1bbc1c27be0549bd9e19fa9803cb8
2019-03-04 11:10:07 -08:00
TreeHugger Robot
b1b4a4fc14 Merge "Improve documentation of secure lock screen feature." 2019-03-04 19:08:56 +00:00
Amit Mahajan
aec43bb247 Merge "Adding new APN type for Mission Critical Services." am: 36791ef41e
am: c45dc5916a

Change-Id: I374b11d4300e31aea7143307f1e8b9eb4c300ae1
2019-03-04 10:54:19 -08:00
TreeHugger Robot
b5766bd50a Merge "Support for @InspectableProperty on public fields" 2019-03-04 18:49:35 +00:00
Amit Mahajan
c45dc5916a Merge "Adding new APN type for Mission Critical Services."
am: 36791ef41e

Change-Id: I4ae43791c9444f792d69e27b76a5bf57f8dfb4c8
2019-03-04 10:43:30 -08:00
Amit Mahajan
36791ef41e Merge "Adding new APN type for Mission Critical Services." 2019-03-04 18:23:30 +00:00
Jeff Sharkey
ac4eafc9cf Merge "Mark @Nullable annotation to String parameter" 2019-03-04 17:33:32 +00:00
Svetoslav Ganov
2a980300bc Merge "Slice and dice app ops - framework" 2019-03-04 17:22:20 +00:00
TreeHugger Robot
ab916e39be Merge "Add the check for UID presence to Display#hasAccess()" 2019-03-04 15:33:58 +00:00
Andrei-Valentin Onea
52f7220a06 Merge "Add @UnsupportedAppUsage annotations" 2019-03-04 12:42:01 +00:00
Adam Vartanian
f15b8a042d Merge "Add @Nullable to new method" am: 70c0efdd86 am: 2948be98c2
am: a343750304

Change-Id: I743d3fae43073eebf1a9abecd45fe71456f4ab43
2019-03-04 04:19:34 -08:00
Adam Vartanian
a343750304 Merge "Add @Nullable to new method" am: 70c0efdd86
am: 2948be98c2

Change-Id: I6f73879bd791af4ce2e0f6669a2d39f3648a5595
2019-03-04 04:10:20 -08:00
Adam Vartanian
2948be98c2 Merge "Add @Nullable to new method"
am: 70c0efdd86

Change-Id: I1e2f40e60dfb55810d7978cd00f91411ed91fa5a
2019-03-04 03:56:59 -08:00
Treehugger Robot
70c0efdd86 Merge "Add @Nullable to new method" 2019-03-04 11:43:48 +00:00
shawnlin
e40033eb24 Mark @Nullable annotation to String parameter
Test: make, make system-api-stubs-docs-update-current-api
Bug: 126700130
Change-Id: I89b9bf726bda3241cf8bfb4737d2c25cb65b8369
2019-03-04 17:01:34 +08:00
lumark
ec75b42179 Add the check for UID presence to Display#hasAccess()
It would be nice if there is a common & reliable method for both outer
& internal modules to check the UID presense of the display.

Add more check in Display#hasAccess() to ask system if calling UID can
precense on the specific display, to consolidate only few special UIDs
& display flag checking.

Bug: 117347985
Test: atest ActivityManagerMultiDisplayTests
Change-Id: I2f8989598c99c0962e925c5aa65500972b4fc62b
2019-03-04 14:59:41 +08:00
Jackal Guo
748d1b9ba2 Merge "Add Intent and permission for a11y service toggle screen" 2019-03-04 03:35:56 +00:00
Hugo Benichi
df44944fe6 Merge "LocalLog: add overloaded dump and reverseDump methods." am: 7c447498c3 am: 0357a9ca4c
am: 5121df9b61

Change-Id: I89cb6300ae6c86e790df702fbdf3416b2f242cd9
2019-03-03 18:19:39 -08:00
Hugo Benichi
5121df9b61 Merge "LocalLog: add overloaded dump and reverseDump methods." am: 7c447498c3
am: 0357a9ca4c

Change-Id: I720b99f3a506935bf78afe2f0645a0781d601f3b
2019-03-03 18:10:11 -08:00
Hugo Benichi
0357a9ca4c Merge "LocalLog: add overloaded dump and reverseDump methods."
am: 7c447498c3

Change-Id: I4461280413b33cabb0e7af39ef1c9b35f8876d65
2019-03-03 18:01:03 -08:00
Treehugger Robot
7c447498c3 Merge "LocalLog: add overloaded dump and reverseDump methods." 2019-03-04 01:46:23 +00:00
TreeHugger Robot
79eb65c3b0 Merge "Context: Fix nullability issues" 2019-03-03 22:07:29 +00:00
Julia Reynolds
10b6c6d10e Merge "Add @Nullable and @NonNull to new Notification API" 2019-03-03 21:07:47 +00:00
TreeHugger Robot
68ae9ebd4b Merge "Camera: Extend mandatory stream combination annotations" 2019-03-03 20:21:43 +00:00
TreeHugger Robot
ede9ed323b Merge "Camera: Annotate 'getKeysNeedingPermission'" 2019-03-03 20:03:47 +00:00
TreeHugger Robot
a1f8604603 Merge "Change Easy Connect intent naming" 2019-03-03 16:17:34 +00:00
Jack Yu
766f960766 Merge "Fixed all APIs not meeting API review requirement" am: a3f1b3f15d am: a0e1501981
am: bc6c8b99c9

Change-Id: I9683c9616e524013eda818e34d817d636ff1f365
2019-03-02 20:59:32 -08:00
Jack Yu
bc6c8b99c9 Merge "Fixed all APIs not meeting API review requirement" am: a3f1b3f15d
am: a0e1501981

Change-Id: I4fceb789ebcfff76cc0205889e9c5084c83d4471
2019-03-02 20:50:08 -08:00
Jack Yu
a0e1501981 Merge "Fixed all APIs not meeting API review requirement"
am: a3f1b3f15d

Change-Id: I84c1b55e99bf89c818c365f4954d9e3921904636
2019-03-02 20:40:56 -08:00
Treehugger Robot
a3f1b3f15d Merge "Fixed all APIs not meeting API review requirement" 2019-03-03 04:27:32 +00:00
Philip P. Moltmann
16ca3f9897 Merge "Make noteProxyOpNoThrow(String,String,int) public" 2019-03-02 16:54:08 +00:00
Svet Ganov
af189e3371 Slice and dice app ops - framework
Appops can be peformed by an app on its behalf and also on
behalf of another app, i.e. an app can perform a proxy op
and blame the work on another app. The proxy mechanims is
for apps doing work on behalf of other apps where GCore is
one example since the app doing the work needs to check if
the caller has access to the functionality - specifically
the app op backing a runtime permission in case the calling
app does not support runtime permissions.

Apps being able to blame work on other apps is a problem now
that we would be using historical op data to show permission
usage in the UI as apps can start blaming each other to gain
a competitive advantage.

To address the issue we are adding APIs for querying portions
of the app op data - last and historical. One can now get
the ops for work the app did for itself, work the app blamed
on other apps if the app is trusted, work the app blamed on
other apps if the app is not trusted, work other trusted apps
blamed on the app, work other untrusted apps blamed on the app.
A trusted app is one holding the permisison to update app op
stats which is privileged.

The data slicing API allow us to show in the UI only the trusted
poriton of the data which is work the app did for itself, work
trusted apps balmed on the app, and work the app if untrusted
blamed on other apps.

Test: atest CtsAppOpsTestCases

bug:111061782

Change-Id: I9a2bcaea272cb06f38ba742cf601a6dc3b287d5e
2019-03-01 21:12:16 -08:00
Jeff Vander Stoep
97074c931c Merge "getConnectionOwnerUid: Clarify documentation" am: 63f516d1ee am: baed6a5ed5
am: f569dff59d

Change-Id: I4861a830f974d542452fb1ea8710438cf4fec14a
2019-03-01 20:24:38 -08:00
Varun Anand
cf6784f621 Merge "Add @NonNull and @Nullable annotations to VpnService#Builder." am: 1957b624ab am: 65edc0d81d
am: 5bd46a5f9a

Change-Id: Ia5bd0ea491f378bd490ebdba2f5b53dbcd18f2c5
2019-03-01 20:12:13 -08:00
Jeff Vander Stoep
f569dff59d Merge "getConnectionOwnerUid: Clarify documentation" am: 63f516d1ee
am: baed6a5ed5

Change-Id: I6897d552ed0a3f6ab6ac3616193fc4442cadc05a
2019-03-01 20:10:48 -08:00
Varun Anand
5bd46a5f9a Merge "Add @NonNull and @Nullable annotations to VpnService#Builder." am: 1957b624ab
am: 65edc0d81d

Change-Id: Ieec51805fea60fcebad362692e30a8ae80fb215a
2019-03-01 19:57:18 -08:00
Jeff Vander Stoep
baed6a5ed5 Merge "getConnectionOwnerUid: Clarify documentation"
am: 63f516d1ee

Change-Id: I6d469968754a355871655f0a29c75e7305874bc3
2019-03-01 19:56:05 -08:00
Varun Anand
65edc0d81d Merge "Add @NonNull and @Nullable annotations to VpnService#Builder."
am: 1957b624ab

Change-Id: Id7aae997be91257c2cb7f59955e7ad6e44e66045
2019-03-01 19:48:09 -08:00
Treehugger Robot
63f516d1ee Merge "getConnectionOwnerUid: Clarify documentation" 2019-03-02 03:42:22 +00:00
Treehugger Robot
1957b624ab Merge "Add @NonNull and @Nullable annotations to VpnService#Builder." 2019-03-02 03:41:57 +00:00
TreeHugger Robot
6c13d9bfd4 Merge "BUILDER, Y U @NON NULL?" 2019-03-02 03:36:29 +00:00
Paul Duffin
fc67c0d507 Merge "Fix Automated API Review: InetAddresses" am: 4daca39083 am: 670be0f20f
am: 02fa26934d

Change-Id: I20a88429cd47bf16d7b2766fde5b978c33e9272b
2019-03-01 19:35:02 -08:00
Paul Duffin
02fa26934d Merge "Fix Automated API Review: InetAddresses" am: 4daca39083
am: 670be0f20f

Change-Id: Ibcef646f539b1a871d8521d7216ecb6f7df8c0fd
2019-03-01 19:25:24 -08:00
Paul Duffin
670be0f20f Merge "Fix Automated API Review: InetAddresses"
am: 4daca39083

Change-Id: I0125d756d2026656afca9e29b7963c0e724750ac
2019-03-01 19:15:54 -08:00
Treehugger Robot
4daca39083 Merge "Fix Automated API Review: InetAddresses" 2019-03-02 03:05:18 +00:00
TreeHugger Robot
0582c28fd7 Merge "Fix NPE in companion device filter matching" 2019-03-02 02:49:54 +00:00