OSDN Git Service

android-x86/frameworks-base.git
6 years agoConvert services/core/jni to Android.bp
Colin Cross [Wed, 6 Dec 2017 01:33:58 +0000 (17:33 -0800)]
Convert services/core/jni to Android.bp

See build/soong/README.md for more information.

Test: m checkbuild
Change-Id: I11a9a39d14adc4c202c6a1725e92e52a38ff2585

6 years agoMerge "Add SystemApis to expose runtime profile information"
Calin Juravle [Tue, 5 Dec 2017 19:10:34 +0000 (19:10 +0000)]
Merge "Add SystemApis to expose runtime profile information"

6 years agoMerge "Change TelephonyManager#getCdmaPrlVersion() from hidden to @SystemApi"
TreeHugger Robot [Tue, 5 Dec 2017 19:00:12 +0000 (19:00 +0000)]
Merge "Change TelephonyManager#getCdmaPrlVersion() from hidden to @SystemApi"

6 years agoMerge "Executors instead of Handlers; collections."
TreeHugger Robot [Tue, 5 Dec 2017 18:26:22 +0000 (18:26 +0000)]
Merge "Executors instead of Handlers; collections."

6 years agoMerge "Remove unwanted hidden APIs"
Oscar Shu [Tue, 5 Dec 2017 18:09:42 +0000 (18:09 +0000)]
Merge "Remove unwanted hidden APIs"

6 years agoMerge "Add more test configuration to StaticLayoutPerfTest"
TreeHugger Robot [Tue, 5 Dec 2017 17:45:54 +0000 (17:45 +0000)]
Merge "Add more test configuration to StaticLayoutPerfTest"

6 years agoMerge "Allocate textures in multiples of LAYER_SIZE."
TreeHugger Robot [Tue, 5 Dec 2017 17:17:33 +0000 (17:17 +0000)]
Merge "Allocate textures in multiples of LAYER_SIZE."

6 years agoMerge "Fix how DurationTracker passes results to DurationMetricProducer"
Yao Chen [Tue, 5 Dec 2017 17:15:17 +0000 (17:15 +0000)]
Merge "Fix how DurationTracker passes results to DurationMetricProducer"

6 years agoMerge "Undo changes accidentally committed with another cl"
TreeHugger Robot [Tue, 5 Dec 2017 16:54:53 +0000 (16:54 +0000)]
Merge "Undo changes accidentally committed with another cl"

6 years agoMerge "WM: Adjust TaskSnapshot for cutout layout"
TreeHugger Robot [Tue, 5 Dec 2017 16:49:58 +0000 (16:49 +0000)]
Merge "WM: Adjust TaskSnapshot for cutout layout"

6 years agoExecutors instead of Handlers; collections.
Jeff Sharkey [Tue, 5 Dec 2017 16:42:28 +0000 (09:42 -0700)]
Executors instead of Handlers; collections.

New API council guidance is to have developers provide an Executor
instead of a Handler for specifying where a callback should be
dispatched.

Recommend that raw arrays be switched to Collections<> instead.

Disable overload checking, since it's far too noisy.

Test: sanity-checked linter output
Bug: 3789378434192159
Change-Id: Ifc9a69bfed1a1004c6604e12987a606d1d3fd6af

6 years agoMerge "Add a signature to TextSelection and TextClassification"
Abodunrinwa Toki [Tue, 5 Dec 2017 16:39:28 +0000 (16:39 +0000)]
Merge "Add a signature to TextSelection and TextClassification"

6 years agoMerge "Add latency logging for rotation"
Jason Monk [Tue, 5 Dec 2017 16:11:32 +0000 (16:11 +0000)]
Merge "Add latency logging for rotation"

6 years agoMerge changes I2eef812b,I7b607192
TreeHugger Robot [Tue, 5 Dec 2017 16:03:26 +0000 (16:03 +0000)]
Merge changes I2eef812b,I7b607192

* changes:
  AAPT v1 embed compile SDK version and codename into app
  AAPT2: Embed version of framework an app was compiled against.

6 years agoMerge "Make SurfaceControl parcelable (1/2)"
Jorim Jaggi [Tue, 5 Dec 2017 15:41:12 +0000 (15:41 +0000)]
Merge "Make SurfaceControl parcelable (1/2)"

6 years agoAllocate textures in multiples of LAYER_SIZE.
Derek Sollenberger [Mon, 4 Dec 2017 20:07:08 +0000 (15:07 -0500)]
Allocate textures in multiples of LAYER_SIZE.

This matches the behavior of the old HWUI renderer and avoids
jank when trying to release a series of small textures.

Test: UiBenchJankTests #testResizeHwLayer
Bug: 69566781
Change-Id: Idc01f8438e85d4810032fd30a141132a6cdd47a1

6 years agoUndo changes accidentally committed with another cl
Julia Reynolds [Tue, 5 Dec 2017 15:20:39 +0000 (10:20 -0500)]
Undo changes accidentally committed with another cl

Test: runtest systemui
Change-Id: I4019d0063bc29f4f83433d6b4701cec20747dc4b

6 years agoWM: Adjust TaskSnapshot for cutout layout
Adrian Roos [Wed, 29 Nov 2017 15:39:44 +0000 (16:39 +0100)]
WM: Adjust TaskSnapshot for cutout layout

Makes TaskSnapshot work even when the main window top-left
position is not the same as the stack's.

Bug: 65689439
Test: Enable cutout, open Gmail, open Recents, verify transition did not jump in the end, open Gmail from recents, verify transition did not jump in the end.
Change-Id: I48053f551ed1c118764aa30e0b6408db64d4a5f1

6 years agoMerge "Ensure non app WindowTokens are removed when closing."
TreeHugger Robot [Tue, 5 Dec 2017 13:48:45 +0000 (13:48 +0000)]
Merge "Ensure non app WindowTokens are removed when closing."

6 years agoMerge "Fix bug in MacAddress.fromString()" am: cdb84d2fc7 am: 9d077ecd9d
Hugo Benichi [Tue, 5 Dec 2017 10:09:35 +0000 (10:09 +0000)]
Merge "Fix bug in MacAddress.fromString()" am: cdb84d2fc7 am: 9d077ecd9d
am: 5d2bd6bf0c

Change-Id: I7df23a45618825b874658ccbbf1d1fda6b164954

6 years agoMerge "Fix bug in MacAddress.fromString()" am: cdb84d2fc7
Hugo Benichi [Tue, 5 Dec 2017 10:01:19 +0000 (10:01 +0000)]
Merge "Fix bug in MacAddress.fromString()" am: cdb84d2fc7
am: 9d077ecd9d

Change-Id: If67d0b8fcc2270d4b152d4e07c79725b457574c6

6 years agoMerge "Fix bug in MacAddress.fromString()"
Hugo Benichi [Tue, 5 Dec 2017 09:47:50 +0000 (09:47 +0000)]
Merge "Fix bug in MacAddress.fromString()"
am: cdb84d2fc7

Change-Id: If4c85f0a5ea259f53f9cffa6eacb58fcde1fd1df

6 years agoMerge "Track API changes in libcore"
Neil Fuller [Tue, 5 Dec 2017 09:43:02 +0000 (09:43 +0000)]
Merge "Track API changes in libcore"

6 years agoMerge "Fix bug in MacAddress.fromString()"
Treehugger Robot [Tue, 5 Dec 2017 09:38:42 +0000 (09:38 +0000)]
Merge "Fix bug in MacAddress.fromString()"

6 years agoAdd more test configuration to StaticLayoutPerfTest
Seigo Nonaka [Sat, 2 Dec 2017 23:28:41 +0000 (15:28 -0800)]
Add more test configuration to StaticLayoutPerfTest

This CL adds more perf test case for StaticLayout.

The "testCreate" and "testCreateRandom" is renamed to
"testCreate_FixedText_NoStyle_Greedy_NoHyphenation" and
"testCreate_RandomText_NoStyled_Greedy_NoHyphenation".

The test configuration is now constructed with underscores.

- FixedText/RandomText
  The text contents to be used for performing StaticLayout generation.
  FixedText means using the same text.
  RandmText means generating random text.
  This configuration is mainly seeing how LayoutCache performs well.

- NoStyle/Styled
  The text styles to be used for performing StaticLayout generation.
  NoStyle means using not styled text. (CharBuffer is used).
  Styled means using randomly styled text.

- Greedy/Balanced
  The line breaking strategy to be used performing StaticLayout generation.
  Greedy means using Greedy algorithm.
  Balanced means that the line length is balanced.

- Hyphenation/NoHyphenation
  The word can be hyphenated for performing StaticLayout generation.
  Hyphenation means enable hyphenation.
  NoHyphenation means disable hyphenation.

This CL doesn't add all combination since some configuration doesn't
affect others. For example, Styled/NoStyled and
Greedy/Balanced/Hyphenation/NoHyphenation are independent.

Bug: N/A
Test: N/A
Change-Id: Ibd05a6c40b314e2db6a04459a9bfb32334d6e0c7

6 years agoMerge "Don't use path to find protoc-gen-javastream" am: 1a2a45667b am: 1c578e8032
Colin Cross [Tue, 5 Dec 2017 05:52:02 +0000 (05:52 +0000)]
Merge "Don't use path to find protoc-gen-javastream" am: 1a2a45667b am: 1c578e8032
am: b8e4d0e561

Change-Id: I4a9d4dfb15d958b28cf329c5ebc0009654345fbf

6 years agoMerge "Don't use path to find protoc-gen-javastream" am: 1a2a45667b
Colin Cross [Tue, 5 Dec 2017 05:42:40 +0000 (05:42 +0000)]
Merge "Don't use path to find protoc-gen-javastream" am: 1a2a45667b
am: 1c578e8032

Change-Id: I87059bcfa09597449aaef2e2141957ea7d181ce5

6 years agoMerge "Don't use path to find protoc-gen-javastream"
Colin Cross [Tue, 5 Dec 2017 05:33:47 +0000 (05:33 +0000)]
Merge "Don't use path to find protoc-gen-javastream"
am: 1a2a45667b

Change-Id: Idf4e12d812cf9108f8c3b22057e0bcbd90c14807

6 years agoMerge "Fix TextViewTest.testHyphenationWidth"
TreeHugger Robot [Tue, 5 Dec 2017 05:26:39 +0000 (05:26 +0000)]
Merge "Fix TextViewTest.testHyphenationWidth"

6 years agoMerge "Don't use path to find protoc-gen-javastream"
Treehugger Robot [Tue, 5 Dec 2017 05:22:25 +0000 (05:22 +0000)]
Merge "Don't use path to find protoc-gen-javastream"

6 years agoMerge "Enable obfuscation of resource names, with whitelisting support."
Luke Nicholson [Tue, 5 Dec 2017 05:20:00 +0000 (05:20 +0000)]
Merge "Enable obfuscation of resource names, with whitelisting support."

6 years agoMerge "API for apps to tag sockets with their own UID."
Jeff Sharkey [Tue, 5 Dec 2017 05:00:46 +0000 (05:00 +0000)]
Merge "API for apps to tag sockets with their own UID."

6 years agoMerge "Switch to use audio usage instead of stream_type in Car Settings UI"
TreeHugger Robot [Tue, 5 Dec 2017 04:34:09 +0000 (04:34 +0000)]
Merge "Switch to use audio usage instead of stream_type in Car Settings UI"

6 years agoFix bug in MacAddress.fromString()
Hugo Benichi [Tue, 5 Dec 2017 04:14:08 +0000 (13:14 +0900)]
Fix bug in MacAddress.fromString()

Test: runtest frameworks-net
Bug: 69390696
Change-Id: I83f01e4915092e08ed201d9b6738bb02498d3bba

6 years agoMerge "Frameworks: Silently ignore InterruptedException" am: 7e717e09cd am: a6c6c4f5d3
Andreas Gampe [Tue, 5 Dec 2017 02:57:35 +0000 (02:57 +0000)]
Merge "Frameworks: Silently ignore InterruptedException" am: 7e717e09cd am: a6c6c4f5d3
am: d52c7c9206

Change-Id: Ia6588f13809132b705d372ba132ed3f7ef179bad

6 years agoMerge "Sends resolving action to Instant App installer"
TreeHugger Robot [Tue, 5 Dec 2017 02:51:51 +0000 (02:51 +0000)]
Merge "Sends resolving action to Instant App installer"

6 years agoSwitch to use audio usage instead of stream_type in Car Settings UI
Hongwei Wang [Mon, 4 Dec 2017 20:40:49 +0000 (12:40 -0800)]
Switch to use audio usage instead of stream_type in Car Settings UI

This CL changes nothing but method name. A following CL should either
remove or refactor the CarVolumeDialogController class as we are moving
to use AudioAttributes usage instead of stream_type.

Bug: 28469751
Test: lunch bat_land-userdebug && m -j // Then flash and open the app
Change-Id: Ic3c657ed36d67fbbc18b6787b04bff147ee693a2

6 years agoMerge "Add Preferred Phone Account columns"
TreeHugger Robot [Tue, 5 Dec 2017 02:49:57 +0000 (02:49 +0000)]
Merge "Add Preferred Phone Account columns"

6 years agoMerge "Merge "Validate IpSecAlgorithm Length" am: 68b81299d2 am: 5e3d66e78b am: 7a8f0...
Android Build Merger (Role) [Tue, 5 Dec 2017 02:47:32 +0000 (02:47 +0000)]
Merge "Merge "Validate IpSecAlgorithm Length" am: 68b81299d2 am: 5e3d66e78b am: 7a8f0dc0c0"

6 years agoMerge "New Autofill API: let service set optional header and footer for dataset picker."
TreeHugger Robot [Tue, 5 Dec 2017 02:46:37 +0000 (02:46 +0000)]
Merge "New Autofill API: let service set optional header and footer for dataset picker."

6 years agoMerge "Validate IpSecAlgorithm Length" am: 68b81299d2 am: 5e3d66e78b
nharold [Tue, 5 Dec 2017 02:46:06 +0000 (02:46 +0000)]
Merge "Validate IpSecAlgorithm Length" am: 68b81299d2 am: 5e3d66e78b
am: 7a8f0dc0c0

Change-Id: I1a28d860ac7125afc1f82ac17d1834b0121c0e11

6 years agoMerge "Frameworks: Silently ignore InterruptedException" am: 7e717e09cd
Andreas Gampe [Tue, 5 Dec 2017 02:43:53 +0000 (02:43 +0000)]
Merge "Frameworks: Silently ignore InterruptedException" am: 7e717e09cd
am: a6c6c4f5d3

Change-Id: I737474738fa688d5bc651390409cbd792ffa7282

6 years agoEnsure non app WindowTokens are removed when closing.
chaviw [Tue, 5 Dec 2017 02:39:34 +0000 (18:39 -0800)]
Ensure non app WindowTokens are removed when closing.

Non app WindowTokens weren't propery removed when closing. This
would cause several layers to stay around in the system.

Bug: 69852584
Test: Turn phone screen off and back on again. Window is removed.
Change-Id: I51674ebdab129b462e958c3027a26ee6feeffb9f

6 years agoMerge "AnomalyDetection invalidity depends on MetricProd"
TreeHugger Robot [Tue, 5 Dec 2017 02:38:19 +0000 (02:38 +0000)]
Merge "AnomalyDetection invalidity depends on MetricProd"

6 years agoMerge "Validate IpSecAlgorithm Length" am: 68b81299d2
nharold [Tue, 5 Dec 2017 02:37:14 +0000 (02:37 +0000)]
Merge "Validate IpSecAlgorithm Length" am: 68b81299d2
am: 5e3d66e78b

Change-Id: I1ffaa4de392777c5199a411aef9cd10f4e7c3666

6 years agoMerge "Frameworks: Silently ignore InterruptedException"
Andreas Gampe [Tue, 5 Dec 2017 02:34:41 +0000 (02:34 +0000)]
Merge "Frameworks: Silently ignore InterruptedException"
am: 7e717e09cd

Change-Id: I75da071918e7fc2e547df4e4d75121806c730ca2

6 years agoMerge "Validate IpSecAlgorithm Length"
nharold [Tue, 5 Dec 2017 02:28:10 +0000 (02:28 +0000)]
Merge "Validate IpSecAlgorithm Length"
am: 68b81299d2

Change-Id: I23f7612c119e67f9a1647568aeefde38a365f8da

6 years agoMerge "Tiny fix to bug when statsd should clear data."
TreeHugger Robot [Tue, 5 Dec 2017 02:27:47 +0000 (02:27 +0000)]
Merge "Tiny fix to bug when statsd should clear data."

6 years agoMerge "libandroidfw: Remove pre-verification"
TreeHugger Robot [Tue, 5 Dec 2017 02:26:16 +0000 (02:26 +0000)]
Merge "libandroidfw: Remove pre-verification"

6 years agoMerge "Frameworks: Silently ignore InterruptedException"
Treehugger Robot [Tue, 5 Dec 2017 02:25:14 +0000 (02:25 +0000)]
Merge "Frameworks: Silently ignore InterruptedException"

6 years agoMerge "Validate IpSecAlgorithm Length"
nharold [Tue, 5 Dec 2017 02:13:55 +0000 (02:13 +0000)]
Merge "Validate IpSecAlgorithm Length"

6 years agoMerge "Add DIRTY_RETAIN constant"
TreeHugger Robot [Tue, 5 Dec 2017 02:01:48 +0000 (02:01 +0000)]
Merge "Add DIRTY_RETAIN constant"

6 years agoEnable obfuscation of resource names, with whitelisting support.
Luke Nicholson [Fri, 1 Dec 2017 23:29:03 +0000 (15:29 -0800)]
Enable obfuscation of resource names, with whitelisting support.

Test: Built aapt2, ran optimize on gmail apk with sample whitelist
config file, and flags enabled. Added two unit tests to TableFlattener
covering obfuscation logic.

Change-Id: Iad6329d75ff440121bf1a2cdf09c5f4bf4199d9d

6 years agoMerge "Fix droiddoc when OUT_DIR is an absolute path" am: 85f095e246 am: b42cfb691d
Colin Cross [Tue, 5 Dec 2017 01:53:37 +0000 (01:53 +0000)]
Merge "Fix droiddoc when OUT_DIR is an absolute path" am: 85f095e246 am: b42cfb691d
am: 4f11d4c526  -s ours

Change-Id: Ib8596dda23c9ad1fb85f76df5545796e8620bd01

6 years agoMerge "Fix droiddoc when OUT_DIR is an absolute path" am: 85f095e246
Colin Cross [Tue, 5 Dec 2017 01:39:47 +0000 (01:39 +0000)]
Merge "Fix droiddoc when OUT_DIR is an absolute path" am: 85f095e246
am: b42cfb691d

Change-Id: I8af7eee810e05ba6ba7d42cdddc6efee8963b141

6 years agoMerge "Match network roaming state to avoid wtf()." am: 3fb2711ede am: bafba08c6b
Jeff Sharkey [Tue, 5 Dec 2017 01:38:22 +0000 (01:38 +0000)]
Merge "Match network roaming state to avoid wtf()." am: 3fb2711ede am: bafba08c6b
am: 255cac2474

Change-Id: I04247a01f6a93001079429b1ee40f28afc877dcd

6 years agoAAPT v1 embed compile SDK version and codename into app
Alan Viverette [Thu, 9 Nov 2017 20:41:44 +0000 (15:41 -0500)]
AAPT v1 embed compile SDK version and codename into app

Also adds support for dumping compile SDK attributes.

Bug: 63388434
Fixes: 68854953
Test: manual, compiled & dumped ApiDemos APK
Change-Id: I2eef812bd957950cdef5f1257b73b57044a1e731

6 years agoMerge "Fix droiddoc when OUT_DIR is an absolute path"
Colin Cross [Tue, 5 Dec 2017 01:29:12 +0000 (01:29 +0000)]
Merge "Fix droiddoc when OUT_DIR is an absolute path"
am: 85f095e246

Change-Id: I5a91ba906958777944fc25fb5de281e4c8beebe7

6 years agoMerge "Match network roaming state to avoid wtf()." am: 3fb2711ede
Jeff Sharkey [Tue, 5 Dec 2017 01:28:55 +0000 (01:28 +0000)]
Merge "Match network roaming state to avoid wtf()." am: 3fb2711ede
am: bafba08c6b

Change-Id: I3dd62df8b9bb89936c1c722849bfa921bc8b3e6d

6 years agoAAPT2: Embed version of framework an app was compiled against.
Adam Lesinski [Mon, 4 Dec 2017 21:46:23 +0000 (13:46 -0800)]
AAPT2: Embed version of framework an app was compiled against.

This change injects the 'android:compileSdkVersion' and
'android:compileSdkVersionCodename' into an app's AndroidManifest.xml,
whose values are dervied from the version name and version code of the
framework AndroidManifest.xml that is being linked against.

Bug: 63388434
Test: make aapt2_tests
Change-Id: I7b607192ecb337307c4bcb5770e7f716c6d4c9d2

6 years agoMerge "Revert "Smooth scroll RecyclerView on a11y ACTION_SCROLL_*""
TreeHugger Robot [Tue, 5 Dec 2017 01:17:47 +0000 (01:17 +0000)]
Merge "Revert "Smooth scroll RecyclerView on a11y ACTION_SCROLL_*""

6 years agoMerge "Match network roaming state to avoid wtf()."
Jeff Sharkey [Tue, 5 Dec 2017 01:11:53 +0000 (01:11 +0000)]
Merge "Match network roaming state to avoid wtf()."
am: 3fb2711ede

Change-Id: I6796d37e4458ef4da16d16f4c0f2bdd495007515

6 years agoMerge "Remove unused AIDL files" am: d0abc863f4 am: 43f665c95e
Colin Cross [Tue, 5 Dec 2017 01:10:14 +0000 (01:10 +0000)]
Merge "Remove unused AIDL files" am: d0abc863f4 am: 43f665c95e
am: 3dbbd3d3a9

Change-Id: Ida23b5013fa6a3e1fd6ba3e5a699f798f29b4b84

6 years agoDon't use path to find protoc-gen-javastream
Colin Cross [Tue, 5 Dec 2017 00:02:10 +0000 (16:02 -0800)]
Don't use path to find protoc-gen-javastream

Previous attempts to use a full path in the --plugin argument
failed, but that was because the --plugin argument had the wrong
name (protoc-gen-java-stream instead of protoc-gen-javastream)
and was being completely ignored.  Passing a full path where
the last element of the path is protoc-gen-javastream works fine.

Fixes issues where the command line is expanded with $PATH in
it 58 times which could hit command length limits if $PATH was
even a little bit larger than the default.

Test: m framework
Change-Id: Icd336f522fb8770d9058d18d8a04d24a96405615

6 years agoMerge "Fix droiddoc when OUT_DIR is an absolute path"
Colin Cross [Tue, 5 Dec 2017 01:08:41 +0000 (01:08 +0000)]
Merge "Fix droiddoc when OUT_DIR is an absolute path"

6 years agoFix droiddoc when OUT_DIR is an absolute path
Colin Cross [Mon, 4 Dec 2017 21:45:19 +0000 (13:45 -0800)]
Fix droiddoc when OUT_DIR is an absolute path

The droiddoc rules were passing the sources in through
LOCAL_SRC_FILES, which gets prefixed with $(LOCAL_PATH).  They
were prefixing ../.. to try to counter frameworks/base in
$(LOCAL_PATH), but that doesn't work for absolute paths to
generated files in an absolute $(OUT_DIR).

Use $(LOCAL_GENERATED_SOURCES) for anything that is in $(OUT_DIR)
instead, which takes paths that are relative to the top of the tree
or absolute.

Bug: 70166718
Test: m OUT_DIR=/tmp/out docs
Change-Id: I93b743607c2b8ce05512ecd4bbe860747cb48428
Merged-In: I93b743607c2b8ce05512ecd4bbe860747cb48428
(cherry-picked from commit bd200ce7d4ebe31ad4327683e59af269420b0ef5)

6 years agoMerge "Match network roaming state to avoid wtf()."
Jeff Sharkey [Tue, 5 Dec 2017 00:58:46 +0000 (00:58 +0000)]
Merge "Match network roaming state to avoid wtf()."

6 years agoMerge "Make it possible to hide signal strength via Carrier Config" am: febd180254...
Jordan Liu [Tue, 5 Dec 2017 00:55:51 +0000 (00:55 +0000)]
Merge "Make it possible to hide signal strength via Carrier Config" am: febd180254 am: 516b41e5a5
am: 1470313b97

Change-Id: Ice7debdbe8caabb0fa1b530a9318f92c25b483af

6 years agoAnomalyDetection invalidity depends on MetricProd
Bookatz [Fri, 1 Dec 2017 01:09:30 +0000 (17:09 -0800)]
AnomalyDetection invalidity depends on MetricProd

DurationMetricProducer has extra conditions that must be satisfied for
an anomaly detection Alert (in the config) to be valid. This test must
only be run for DurationMetricProducer, and not other MetricProducers.

In the future, AnomalyTracker will be split into two, with a
DuratoinAnomalyTracker subclass that will be created by
DurationMetricProducer's createAnomalyTracker function.

Test: CTS test in progress
Change-Id: If172a71d15d5dabb2827859ddb2b5ff7ed386501

6 years agoAPI for apps to tag sockets with their own UID.
Jeff Sharkey [Wed, 29 Nov 2017 18:18:23 +0000 (11:18 -0700)]
API for apps to tag sockets with their own UID.

This enables app A to create a socket, pass it to app B, and have
app B accept blame for the traffic performed on that socket.

Also adds helpful public APIs for tagging raw FileDescriptor sockets
instead of making developers go through shady SocketImpl wrappers.

Test: cts-tradefed run commandAndExit cts-dev -m CtsAppSecurityHostTestCases -t android.appsecurity.cts.AppSecurityTests#testAppFailAccessPrivateData
Bug: 63932076
Change-Id: I08925c843974675fc82e4080cec2eaab9ab7cd41

6 years agoMerge "Fix droiddoc when OUT_DIR is an absolute path"
Colin Cross [Tue, 5 Dec 2017 00:40:09 +0000 (00:40 +0000)]
Merge "Fix droiddoc when OUT_DIR is an absolute path"

6 years agoFix TextViewTest.testHyphenationWidth
Seigo Nonaka [Tue, 5 Dec 2017 00:33:36 +0000 (16:33 -0800)]
Fix TextViewTest.testHyphenationWidth

The root cause is the wrong expectation of getHyphen value.

Bug: 70160893
Test: bit FrameworksCoreTests:android.widget.TextViewTest#testHyphenationWidth

Change-Id: I9354cf322c003c4629ae88dd9b910c4043a86cc1

6 years agoMerge "Remove unused AIDL files" am: d0abc863f4
Colin Cross [Tue, 5 Dec 2017 00:34:32 +0000 (00:34 +0000)]
Merge "Remove unused AIDL files" am: d0abc863f4
am: 43f665c95e

Change-Id: I3d966c647103c45f8a078adcb4260c08174cf61c

6 years agolibandroidfw: Remove pre-verification
Adam Lesinski [Wed, 29 Nov 2017 21:24:29 +0000 (13:24 -0800)]
libandroidfw: Remove pre-verification

This added more up-front cost to loading an APK and didn't provide
a significant benefit to resource retrieval.

Test: make libandroidfw_tests
Change-Id: Idbf993abc433fa8c8950d106c66469b310b66f7f

6 years agoMerge "Make it possible to hide signal strength via Carrier Config" am: febd180254
Jordan Liu [Tue, 5 Dec 2017 00:26:44 +0000 (00:26 +0000)]
Merge "Make it possible to hide signal strength via Carrier Config" am: febd180254
am: 516b41e5a5

Change-Id: I8b4c01595374604cd2a076f184e25531e63ed4bf

6 years agoMerge "Don't send userLeaving hint when entering split-screen mode."
Wale Ogunwale [Tue, 5 Dec 2017 00:21:20 +0000 (00:21 +0000)]
Merge "Don't send userLeaving hint when entering split-screen mode."

6 years agoMerge "libandroidfw: Add SparseEntry support for LoadedArsc"
Adam Lesinski [Tue, 5 Dec 2017 00:11:43 +0000 (00:11 +0000)]
Merge "libandroidfw: Add SparseEntry support for LoadedArsc"

6 years agoMerge "Merge "MacAddress: light refactors and improve documentation" am: d871cab32d...
Android Build Merger (Role) [Tue, 5 Dec 2017 00:08:49 +0000 (00:08 +0000)]
Merge "Merge "MacAddress: light refactors and improve documentation" am: d871cab32d am: 2f7cb5752b am: 13b2fa0f85"

6 years agoMerge "MacAddress: light refactors and improve documentation" am: d871cab32d am:...
Hugo Benichi [Tue, 5 Dec 2017 00:06:50 +0000 (00:06 +0000)]
Merge "MacAddress: light refactors and improve documentation" am: d871cab32d am: 2f7cb5752b
am: 13b2fa0f85

Change-Id: Iae0e87bcc9bd9c1ba98319f3b65f18f6743c02a0

6 years agoMerge "Remove unused AIDL files"
Colin Cross [Tue, 5 Dec 2017 00:06:29 +0000 (00:06 +0000)]
Merge "Remove unused AIDL files"
am: d0abc863f4

Change-Id: Ia6d798f6acf3930945cac488db81ccec3792648d

6 years agoMerge "Add integration tests for BackgroundDexOptService"
TreeHugger Robot [Tue, 5 Dec 2017 00:05:51 +0000 (00:05 +0000)]
Merge "Add integration tests for BackgroundDexOptService"

6 years agoMerge "MacAddress: light refactors and improve documentation" am: d871cab32d
Hugo Benichi [Mon, 4 Dec 2017 23:51:41 +0000 (23:51 +0000)]
Merge "MacAddress: light refactors and improve documentation" am: d871cab32d
am: 2f7cb5752b

Change-Id: I1e9948225e7c5ad64fad2e596d03deb3524c411c

6 years agoMerge "Make it possible to hide signal strength via Carrier Config"
Jordan Liu [Mon, 4 Dec 2017 23:44:36 +0000 (23:44 +0000)]
Merge "Make it possible to hide signal strength via Carrier Config"
am: febd180254

Change-Id: Iff2bf2fa0132692b3164d5543cfd20cd1d153ede

6 years agoMerge "MacAddress: light refactors and improve documentation"
Hugo Benichi [Mon, 4 Dec 2017 23:38:27 +0000 (23:38 +0000)]
Merge "MacAddress: light refactors and improve documentation"
am: d871cab32d

Change-Id: I51bb8786ecd7f53e3342625c7a2625007eedfc0f

6 years agoMerge "Remove unused AIDL files"
Treehugger Robot [Mon, 4 Dec 2017 23:35:35 +0000 (23:35 +0000)]
Merge "Remove unused AIDL files"

6 years agoSends resolving action to Instant App installer
Patrick Baumann [Mon, 4 Dec 2017 19:29:24 +0000 (11:29 -0800)]
Sends resolving action to Instant App installer

This change adds the action being resolved to an installing Instant
App to the installer so it may increase friction for untrusted or
potentially dangerous sources (NFC, nearby, etc.)

Change-Id: If6c47a219e4ddf453fb406e2b212b024aa24ade6
Fixes: 63102749
Test: manual - debugged the ephemeral installer to ensure extra

6 years agoMerge "Make it possible to hide signal strength via Carrier Config"
Jordan Liu [Mon, 4 Dec 2017 23:20:31 +0000 (23:20 +0000)]
Merge "Make it possible to hide signal strength via Carrier Config"

6 years agoChange TelephonyManager#getCdmaPrlVersion() from hidden to @SystemApi
goneil [Wed, 29 Nov 2017 01:50:57 +0000 (17:50 -0800)]
Change TelephonyManager#getCdmaPrlVersion() from hidden to @SystemApi

Bug: 67751148
Change-Id: I747e683279c2b684c3c255ddfcd33f74f52b587e
Test: com.google.android.gts.telephony.TelephonyManager#testGetCdmaPrlVersion()

6 years agoValidate IpSecAlgorithm Length
Nathan Harold [Fri, 10 Nov 2017 00:49:33 +0000 (16:49 -0800)]
Validate IpSecAlgorithm Length

Improve the Validation of IpSecAlgorithm by
explicitly checking the length in addition to
the truncation length (previously an oversight).
In addition, we now check the lengths during
un-parceling, which will catch someone maliciously
manually building a parcel and passing it, bypassing
the checks in the constructor.

Bug: 68780091
Test: runtest -x IpSecAlgorithmTest.java
Change-Id: I8172762617264d34f47d5144336464510f07a701

6 years agoMerge "MacAddress: light refactors and improve documentation"
Treehugger Robot [Mon, 4 Dec 2017 23:01:11 +0000 (23:01 +0000)]
Merge "MacAddress: light refactors and improve documentation"

6 years agoFrameworks: Silently ignore InterruptedException
Andreas Gampe [Mon, 4 Dec 2017 22:42:03 +0000 (14:42 -0800)]
Frameworks: Silently ignore InterruptedException

Apps seem to rely on this undocumented behavior so that the
threaded sync adapter doesn't crash an app. That's really
bad on the app side, but we will have to live with it.

Bug: 67986472
Bug: 70122540
Test: m
Test: Device boots
Test: m cts && cts-tradefed run commandAndExit cts-dev --module CtsContentTestCases -c android.content.cts.SharedPreferencesTest
Change-Id: I1ee4dfba4ad29c4f66fa60d3c8f8a99900b3447a

6 years agoMerge "Convert ICarrierService to oneway." am: a9494954d9 -s ours am: be36500948...
Ying Xu [Mon, 4 Dec 2017 22:57:26 +0000 (22:57 +0000)]
Merge "Convert ICarrierService to oneway." am: a9494954d9  -s ours am: be36500948  -s ours
am: ff88684db3  -s ours

Change-Id: I95b6ea2a0b1f6cb43e84c27cd01909f9b5c016c3

6 years agoMatch network roaming state to avoid wtf().
Jeff Sharkey [Mon, 4 Dec 2017 22:52:01 +0000 (15:52 -0700)]
Match network roaming state to avoid wtf().

Test: sure
Bug: 70174865
Change-Id: I02faef05e3fb918c3c023fb2fdd1886d45cc8c71
Exempt-From-Owner-Approval: P0 bug

6 years agoMerge "Convert ICarrierService to oneway." am: a9494954d9 -s ours
Ying Xu [Mon, 4 Dec 2017 22:43:44 +0000 (22:43 +0000)]
Merge "Convert ICarrierService to oneway." am: a9494954d9  -s ours
am: be36500948  -s ours

Change-Id: Iaaf170a63f97d00275bd55fa6f499f757ae98961

6 years agoMerge "Make sure Lifecycle proguard rules are used"
Tony Mantler [Mon, 4 Dec 2017 22:31:03 +0000 (22:31 +0000)]
Merge "Make sure Lifecycle proguard rules are used"

6 years agoFix droiddoc when OUT_DIR is an absolute path
Colin Cross [Mon, 4 Dec 2017 21:45:19 +0000 (13:45 -0800)]
Fix droiddoc when OUT_DIR is an absolute path

The droiddoc rules were passing the sources in through
LOCAL_SRC_FILES, which gets prefixed with $(LOCAL_PATH).  They
were prefixing ../.. to try to counter frameworks/base in
$(LOCAL_PATH), but that doesn't work for absolute paths to
generated files in an absolute $(OUT_DIR).

Use $(LOCAL_GENERATED_SOURCES) for anything that is in $(OUT_DIR)
instead, which takes paths that are relative to the top of the tree
or absolute.

Bug: 70166718
Test: m OUT_DIR=/tmp/out docs
Change-Id: I93b743607c2b8ce05512ecd4bbe860747cb48428

6 years agoTiny fix to bug when statsd should clear data.
David Chen [Mon, 4 Dec 2017 22:28:43 +0000 (14:28 -0800)]
Tiny fix to bug when statsd should clear data.

Previously, we always sent a broadcast, even after we have exceeded
the memory limit for this config key. We switch the order so that
we drop the data if the limit is exceeded. If greater than 90% of the
way to the limit, we send the broadcast.

We need to find a way to unit-test this behavior.

Test: N/A.
Change-Id: I6ea40b9e34dceb19805d9af24495d72878f787e0

6 years agoMerge "Convert ICarrierService to oneway."
Ying Xu [Mon, 4 Dec 2017 22:27:57 +0000 (22:27 +0000)]
Merge "Convert ICarrierService to oneway."
am: a9494954d9  -s ours

Change-Id: Ie385d36ff924adb152c36982ca11d741af44b48f

6 years agoAdd SystemApis to expose runtime profile information
Calin Juravle [Wed, 8 Nov 2017 02:49:43 +0000 (18:49 -0800)]
Add SystemApis to expose runtime profile information

The API allows a system apps which acquired
{@code android.permission.READ_RUNTIME_PROFILE} to snapshot the runtime
profiles of installed packages.

The API is implemented in a new service class (AndroidRuntimeManager)
accessible from the context using
context().getPackageManager().getAndroidRuntimeManager().

The main functionality is exposed as a one way call into the
AndroidRuntimeManager with the result being posted on a callback. The
profile is available to the caller as a read-only ParcelFileDescriptor.

This CL only adds the API interfaces and validation. It does not fully
implement the functionality.

oneway void snapshotRuntimeProfile(in String packageName,
  in String codePath, in ISnapshotRuntimeProfileCallback callback)

Bug: 30934496
Test: gts-tradefed -m GtsAndroidRuntimeManagerHostTestCases

Change-Id: Iaa6be4715840f24508acba3162ea9c1ab725bd38

6 years agoMerge "Allow privileged apps to query standby state"
Amith Yamasani [Mon, 4 Dec 2017 22:21:32 +0000 (22:21 +0000)]
Merge "Allow privileged apps to query standby state"