Commit Graph

1099 Commits

Author SHA1 Message Date
Beth Thibodeau
5898ac47b2 Adding screen recording function.
Screen recording can be launched via long press on screenshot in
the global actions menu if the local feature flag is enabled.
Otherwise, long press on screenshot will also trigger a screenshot.

Demo videos: https://drive.google.com/open?id=1oJzfzJb8aGXSUqn4CZ_Yn7qWmJ2dvRd5

Test: manual
Change-Id: I373d38ad86291ff6f26f7dca3195001bd8f5ee16
Bug: 111395687
Bug: 118826991
2018-11-01 15:56:39 -04:00
yuanjiahsu
8d09dd4285 Default enable EMERGENCY_DIAL_SHORTCUTS feature
Set feature flag default value to be true so that this feature will be
enabled by default.

Test: Manually
Bug: 113539598
Change-Id: I3caec4f437a5c574763215a31efd0df1be40ab6e
2018-10-30 11:31:04 +08:00
TreeHugger Robot
07e23a0e52 Merge "Remove obsolete lock screen UI" 2018-10-29 23:55:31 +00:00
Lucas Dupin
ed00262486 Remove obsolete lock screen UI
Removes obsolete KeyguardSliceView title area and adds doze callbacks
necessary to support new lock screen design.

Bug: 111405682
Test: manual
Test: atest KeyguardSliceViewTest
Change-Id: I07e96dbde68d4e5e38e1371526bedf59fc925b86
2018-10-29 11:07:00 -07:00
Antony Sargent
dbaeac07a2 Add a feature flag for new version of Network and internet settings page
Bug: 116349402
Test: Manual (settings_network_and_internet_v2 flag should should up in
Settings -> System -> Developer options -> Feature flags)

Change-Id: I9715b6b33478d992857538756d2515a560396e8b
2018-10-25 16:48:23 -07:00
TreeHugger Robot
c4b7e853c1 Merge "Change the feature flag for Hearing Aid behavior" 2018-10-17 04:57:55 +00:00
Neil Fuller
39568a2436 Remove usage of StringFactory
Code outside of the runtime should not use StringFactory.
The java.lang.String API works fine.

Bug: 113148576
Test: build only
Change-Id: I67ce6d7a13afd3ca7c0beffb33289d93e906e4be
2018-10-16 13:24:15 +01:00
kopriva
5569b5757c docs: bug 37077993, object instead of array am: 2cb96ab8a1
am: 434a0a5370

Change-Id: I42ce04dae49f3496c0993e60957137e58abb2d07
2018-10-03 17:09:53 -07:00
kopriva
434a0a5370 docs: bug 37077993, object instead of array
am: 2cb96ab8a1

Change-Id: I527d10e66525810bda0083bed92f4b31ae13bcb9
2018-10-03 16:52:26 -07:00
kopriva
2cb96ab8a1 docs: bug 37077993, object instead of array
also fixing import order to get past repo hooks

Test: make ds-docs

Bug: 37077993

Change-Id: I0a0d6338f714108eb632caacc6dda4b422dc697b
Exempt-From-Owner-Approval: Docs-only change
2018-10-03 14:14:13 -07:00
Michael Groover
a117b0d4bd Add PackageSignatures readXml tests
This fix also refactors PackageParser.SigningDetails to move the
pastSigningCertificatesFlags to be a data member of Signature; this
allows the capabilities of a previous signing certificate to be
accessed directly from the Signature object as opposed to relying
on the 1-1 mapping of the past certs and flags in the SigningDetails.

Fixes: 73927696
Fixes: 73925989
Test: adb shell am instrument -w -e class com.android.server.pm.PackageSignaturesTest \
      com.android.frameworks.servicestests/android.support.test.runner.AndroidJUnitRunner

Change-Id: I635f2d2209350d066d1fa2ef07460071da0c023e
2018-10-03 09:47:14 -07:00
Stanley Tng
a5866c647e Add Feature Flag for Hearing Aid Profile
Using the Settings App-Developer Options-Feature Flag, allow the user to
enable or disable the Hearing Aid Profile.

Bug: 116317072
Bug: 116044083
Test: Manual testing using Settings App
Merged-In: I58a9d339941e235242c443c85b6f4194b5a296c9
(cherry picked from commit fe8c8337ed)

Change-Id: I7d0b6759e7acba3fb2a4d1afdba35d5a95387777
2018-10-01 21:49:13 -07:00
Jake Wharton
a8a0435d59 Expose a few APIs in util collections.
These are either already exposed on other specialized collection variants or are exposed as public API on the androidx versions, or both.

With these APIs exposed, all of the unsupported app usage can be done through public API. As a result, all unsupported app usage is now locked to apps targeting API 28 or earlier.

Bug: 116877302
Test: none, no implementation change
Change-Id: I548d71319bffb0a6b529e380ea936df674dbf515
2018-09-29 02:04:33 -04:00
Victor Hsieh
27300925e6 Disambiguate fs-verity and apk-verity
Standard fs-verity does not allow skipping part of the file.  Let's call
the original version for APK "apk-verity" for now.

Test: atest PtsApkVerityTestCases
Bug: 112037636
Change-Id: I11264d5959b034fe373802c53d08f329fa926e58
2018-09-28 13:03:27 -07:00
Stanley Tng
afa1f9c5c5 Change the feature flag for Hearing Aid behavior
Previously, this feature flag for Hearing Aid Profile is to disable the
profile on supported phone . This CL will reverse the logic and is
to enable the Hearing Aid profile on unsupported phone. This is to allow
testing of this profile on unsupported phone.

Test: Manual tests on different types of phones
Bug: 116861680
Change-Id: Ic8db4445a58942c5f75598dce0503f6670ff9c7b
2018-09-28 12:37:56 -07:00
Stanley Tng
172efa1ed8 Add Feature Flag for Hearing Aid Profile
Using the Settings App-Developer Options-Feature Flag, allow the user to
enable or disable the Hearing Aid Profile.

Bug: 116317072
Bug: 116044083
Test: Manual testing using Settings App
Change-Id: I58a9d339941e235242c443c85b6f4194b5a296c9
Merged-In: I58a9d339941e235242c443c85b6f4194b5a296c9
(cherry picked from commit fe8c8337ed)
2018-09-26 14:10:44 -07:00
Victor Hsieh
92513d9fea Support regular fs-verity Merkle tree
In addition to the legacy "apk-verity" Merkle tree that skips the
Signing Block, now the builder supports the regular Merkle tree.

The class and methods are made public because it will be used in
different package.

Test: atest PtsApkVerityTestCases
Test: With other changes, observe the hash matches what other tool
      generates.
Bug: 112037636
Change-Id: I3d96932cd16f4f330170547d6a7689d2997e4b85
2018-09-25 17:03:18 -07:00
TreeHugger Robot
7ba1d9bbd1 Merge "Refactor: break fs-verity data gen into 2 parts" 2018-09-20 18:29:44 +00:00
yuanjiahsu
8eb9d4711b resolve merge conflicts of 2cb9a70cac to master
Bug: None
Test: I solemnly swear I tested this conflict resolution.
Change-Id: Ic1db72d57f3003bcec0fd8f7fbb2dc4ec7b5dcf3
2018-09-17 23:46:14 +08:00
Yuanjia Hsu
2cb9a70cac Merge "Add feature flag in Settings." am: 55b91f6d93
am: b04fcd5842

Change-Id: I22e073bcbe7c2bacfdce44dd4c05b47fab3059f1
2018-09-17 07:25:33 -07:00
TreeHugger Robot
f147f12863 Merge "Add feature flag for seamless transfer" 2018-09-14 02:43:02 +00:00
Victor Hsieh
25195132a8 Refactor: break fs-verity data gen into 2 parts
Break fs-verity generation method into Merkle tree generation and
fs-verity footer (was called header + extension) generation.  This makes
them easier to reuse later.

Also:
 * Add some null-ness annotations.
 * Move generateApkVerity from ApkSigningBlockUtils to ApkVerityBuilder,
   since it's more related to verity but not APK signing format.
 * Rename some of "fs-verity" to "apk-verity" to disambiguate between
   our experimental implementation (deprecated) and upstream.

Test: atest PtsApkVerityTestCases
Bug: 112037636

Change-Id: I0d70121071a3e78f80ae059a60e193afbadea337
2018-09-13 14:00:35 -07:00
Michael Wachenschwanz
3f6039393e Merge "Intial ProtoInputStream checkin" 2018-09-13 02:02:19 +00:00
Michael Wachenschwanz
8d38b29ba7 Intial ProtoInputStream checkin
Enable proto reading on the Android Framework with a memory efficient
pull parser.

Fixes: 112269636
Test: atest CtsProtoTestCases
Change-Id: If8331edb1ec393acd724ffb5d27d6efad1a42a80
2018-09-12 18:54:19 -07:00
jackqdyulei
5caf811f99 Remove battery app list feature flag
It is not used anymore

Bug: 115542275
Test: Build
Change-Id: I91be9c4179e6ddf9f6613ec05d9eeb1fc458b536
2018-09-12 12:59:17 -07:00
yuanjiahsu
88363e9b2f Add feature flag in Settings.
User can enable/disable faster emergency phone call feature by switching
this flag from Settings, and the old flag switched by adb command was
replaced by this feature flag.

Test: Manually
Bug: 113539598
Change-Id: Ie38f4657bfd76d8386ce2a075f4ec5d0038f5c3d
2018-09-11 15:04:51 +08:00
jackqdyulei
c2da1a2244 Add feature flag for seamless transfer
Change-Id: Ic9edff6ee60125794c1db5a8e271919d92cbe570
Fixes: 114451741
Test: Build
2018-09-07 13:37:32 -07:00
Ashley Rose
2b9a3355ec Fix javadoc syntax in TypedValue
Fixes: 114296097
Test: make
Change-Id: Ib5b8fef1607487cc0a37f58fe63f67c151cd12fb
2018-09-06 19:06:51 -04:00
Ashley Rose
66b0919dd2 Merge "Add isColorType to TypedValue" 2018-09-06 15:44:41 +00:00
Ashley Rose
aa554ae636 Add isColorType to TypedValue
There's a lot of places that used TypedValue.TYPE_FIRST_COLOR_INT and
TypedValue.TYPE_LAST_COLOR_INT, and I'd like to propose that it's enough
of an implementation detail that it should have a dedicated public
method to query it.

Fixes: 114126626
Test: CTS tests to be added
Change-Id: I4d2a927cc3d2e999985d7e1c9b647d513fff53fc
2018-09-05 19:30:53 -04:00
TreeHugger Robot
46fef17ee5 Merge "Add feature flag for data usage v2." 2018-09-05 20:16:27 +00:00
st.ji
298cce2320 Merge "Add DENSITY_600" am: 8ac363088c am: e79f44a393
am: cd6e61cd53

Change-Id: Ifa769017f525bbbfc8f2a94871e33aaaf0606407
2018-09-03 14:08:57 -07:00
st.ji
cd6e61cd53 Merge "Add DENSITY_600" am: 8ac363088c
am: e79f44a393

Change-Id: I9a4cc11b8d45bafa5a4c25171c51b663b1091188
2018-09-03 13:59:46 -07:00
Doris Ling
1098ab0e07 Add feature flag for data usage v2.
Bug: 111751694
Test: build
Change-Id: I5700ddd9d1c92a104fa87d0150e2de2f5d13574a
2018-08-30 15:07:16 -07:00
jackqdyulei
cbfdc1d172 Add feature flag for mobile network v2
Bug: 113069948
Test: Build
Change-Id: I72d7d8db164a4c99692366f0d8a4d8421e385d0b
2018-08-22 15:26:24 -07:00
Fan Zhang
ce580b1e49 Remove condition_manager_v2 flag
Bug: 112485407
Test: rebuild
Change-Id: Ib04299b7e74729cb9fe01be84b3a79b1ec5c06d8
2018-08-21 11:03:50 -07:00
st.ji
d41b9ac699 Add DENSITY_600
Add 600dpi as a supported screen density

Test: run android.dpi.cts.ConfigurationTest#testScreenConfiguration and android.app.cts.ActivityManagerMemoryClassTest#testGetMemoryClass

Change-Id: Iac673eae2d82c27d96e279c076454af2f5933208
Signed-off-by: st.ji <st.ji@samsung.com>
2018-08-20 02:23:42 +00:00
Fan Zhang
af22d050b4 Turn on condition manager v2 in Settings homepage.
Bug: 112485407
Test: rebuild
Change-Id: I5637db9eff4f3121a731685940808260a1cc5a94
2018-08-16 16:18:34 -07:00
Mathew Inwood
63e3a1744a Merge "Add @UnsupportedAppUsage annotations" am: 06f2e6b7c8
am: b95f9ef8ed

Change-Id: Ice1ee09aa09e1fb37be596592aed3b0da2c4b10a
2018-08-16 03:01:23 -07:00
Mathew Inwood
b407568c55 Add @UnsupportedAppUsage annotations
For packages:
  android.util.proto
  android.util.jar
  android.util.apk
  android.util

This is an automatically generated CL. See go/UnsupportedAppUsage
for more details.

Exempted-From-Owner-Approval: Mechanical changes to the codebase
which have been approved by Android API council and announced on
android-eng@

Bug: 110868826
Test: m
Change-Id: I18848448a81132399f6878812acf5031ed8cec9f
Merged-In: Ia0f48c244b0fbe33d40d797702a82303648196ed
2018-08-14 17:32:44 +01:00
Mathew Inwood
4eb56abe8b Add @UnsupportedAppUsage annotations
For packages:
  android.util.proto
  android.util.jar
  android.util.apk
  android.util

This is an automatically generated CL. See go/UnsupportedAppUsage
for more details.

Exempted-From-Owner-Approval: Mechanical changes to the codebase
which have been approved by Android API council and announced on
android-eng@

Bug: 110868826
Test: m
Change-Id: Ia0f48c244b0fbe33d40d797702a82303648196ed
2018-08-14 17:24:32 +01:00
TreeHugger Robot
0242372fe5 Merge "Add feature flag for condition manager refactoring" 2018-08-13 20:39:47 +00:00
Fan Zhang
c6834b6e3d Add feature flag for condition manager refactoring
Bug: 112485407
Test: rebuild
Change-Id: I8938166c9af0cdf9e5fcd25589c1787093e6ebd8
2018-08-13 12:12:34 -07:00
Josh Gao
ff39377b5c Merge "MemoryIntArray: track the owned file descriptor in a PFD." am: dccbfca194 am: 873c70a8fd am: 1fb65f1798
am: 461fb59073

Change-Id: Ie5c01958466b3ba1612defd0e0a8b7ec79098d1c
2018-08-10 17:19:22 -07:00
Josh Gao
461fb59073 Merge "MemoryIntArray: track the owned file descriptor in a PFD." am: dccbfca194 am: 873c70a8fd
am: 1fb65f1798

Change-Id: I4c4e372f3122cd41b8b6831abf8e215e972dd893
2018-08-10 16:12:41 -07:00
Josh Gao
c81f53f7f1 MemoryIntArray: track the owned file descriptor in a PFD.
AUPT is triggering an fdsan diagnostic when creating a temporary
ParcelFileDescriptor to write to a Parcel. This code seems correct at
first glance, so under the assumption that some other code is closing
the file descriptor out from under us, keep our owned file descriptor
around as a ParcelFileDescriptor to catch the perpetrator in the act.

Bug: http://b/112405224
Test: atest MemoryIntArrayTest
      (testAshmemSizeMatchesMemoryIntArraySize failed/crashed before, fails now)
Change-Id: Ie8ff7562c78ecde4cf1757d572ecb733213cc975
2018-08-09 16:32:42 -07:00
Mathew Inwood
3bbdabce1f Merge "Code formatting change for upcoming annotations." am: 5d669f79f2 am: 5d44cf6f72 am: 37030d9884
am: 2b55fef6b9

Change-Id: I4110c2cb0273dc3eb617bf10687d4f4781ae98aa
2018-08-01 18:20:55 -07:00
Mathew Inwood
2b55fef6b9 Merge "Code formatting change for upcoming annotations." am: 5d669f79f2 am: 5d44cf6f72
am: 37030d9884

Change-Id: I3526cd00cffc1e4857cfda9bab32b0f1a130d55c
2018-08-01 17:28:24 -07:00
Mathew Inwood
5d44cf6f72 Merge "Code formatting change for upcoming annotations."
am: 5d669f79f2

Change-Id: Iffd38fbc5ee5cd01d5900afbfee331e005b860c6
2018-08-01 16:05:35 -07:00
Laura Davis
c49f34dffc Merge "Docs: fixed typo and made minor edits" into pi-dev am: ae3f656146
am: 30e50fdb5d

Change-Id: I5ec12962b74b998a4a9ced35aa2425e314b8b93e
2018-08-01 11:26:54 -07:00