OSDN Git Service

android-x86/frameworks-base.git
7 years agoMerge "LOCAL_CLANG := true is now the default"
Glenn Kasten [Thu, 1 Dec 2016 00:06:49 +0000 (00:06 +0000)]
Merge "LOCAL_CLANG := true is now the default"
am: 1204e3806f

Change-Id: Id579bdea109bca2056cea6c0359e18b120801bf4

7 years agoMerge "Add ACTION_WIFI_SAVED_NETWORK_SETTINGS to Settings."
Stephen Chen [Thu, 1 Dec 2016 00:02:58 +0000 (00:02 +0000)]
Merge "Add ACTION_WIFI_SAVED_NETWORK_SETTINGS to Settings."
am: 6e54c31f0a

Change-Id: Ie3b4a3ed5e2858ce2b3446c300c984875201205c

7 years agoMerge "Fix MSIM issue of broadcast intent overwritten unintentionally"
Robert Greenwalt [Thu, 1 Dec 2016 00:01:04 +0000 (00:01 +0000)]
Merge "Fix MSIM issue of broadcast intent overwritten unintentionally"
am: fbb48bcecd

Change-Id: I7a1c9a20e5f4f9f051926294650fcf9d486d4703

7 years agoMerge "Expose GSM Timing Advance, Update LTE TA docstring"
nharold [Thu, 1 Dec 2016 00:00:09 +0000 (00:00 +0000)]
Merge "Expose GSM Timing Advance, Update LTE TA docstring"
am: 4134ccb214

Change-Id: Ic60953cebd3209b1320ed4b6723809d0421ebc27

7 years agoresolve merge conflicts of a578ae2 to stage-aosp-master
Jordan Liu [Wed, 30 Nov 2016 18:04:11 +0000 (10:04 -0800)]
resolve merge conflicts of a578ae2 to stage-aosp-master

Change-Id: I344ce44711edee385c64de4e6c52c64e6901820d

7 years agoMerge "LOCAL_CLANG := true is now the default"
Treehugger Robot [Wed, 30 Nov 2016 20:35:37 +0000 (20:35 +0000)]
Merge "LOCAL_CLANG := true is now the default"

7 years agoMerge "Add ACTION_WIFI_SAVED_NETWORK_SETTINGS to Settings."
Treehugger Robot [Wed, 30 Nov 2016 20:25:12 +0000 (20:25 +0000)]
Merge "Add ACTION_WIFI_SAVED_NETWORK_SETTINGS to Settings."

7 years agoMerge "Fix MSIM issue of broadcast intent overwritten unintentionally"
Robert Greenwalt [Wed, 30 Nov 2016 19:47:22 +0000 (19:47 +0000)]
Merge "Fix MSIM issue of broadcast intent overwritten unintentionally"

7 years agoMerge "Expose GSM Timing Advance, Update LTE TA docstring"
nharold [Wed, 30 Nov 2016 18:00:34 +0000 (18:00 +0000)]
Merge "Expose GSM Timing Advance, Update LTE TA docstring"

7 years agoMerge "Add KEY_ONLY_SINGLE_DC_ALLOWED_INT_ARRAY"
Jordan Liu [Wed, 30 Nov 2016 17:42:30 +0000 (17:42 +0000)]
Merge "Add KEY_ONLY_SINGLE_DC_ALLOWED_INT_ARRAY"

7 years agoLOCAL_CLANG := true is now the default
Glenn Kasten [Mon, 15 Aug 2016 23:10:24 +0000 (16:10 -0700)]
LOCAL_CLANG := true is now the default

Change-Id: I2f6a8c7f32cbf682c968a43d590d773ffb21e909
(cherry picked from commit 3a7510bcf6089d3ef768de7cf805ca783f0aac17)

7 years agoMerge "[AWARE] Data-path creation roles hard-coded for discovery sessions"
Etan Cohen [Wed, 30 Nov 2016 17:08:32 +0000 (17:08 +0000)]
Merge "[AWARE] Data-path creation roles hard-coded for discovery sessions"
am: 47502919ad

Change-Id: If8f7d8e0e039d2d9961de84e5aa8693448b77a26

7 years agoMerge "[AWARE] Data-path creation roles hard-coded for discovery sessions"
Etan Cohen [Wed, 30 Nov 2016 16:58:07 +0000 (16:58 +0000)]
Merge "[AWARE] Data-path creation roles hard-coded for discovery sessions"

7 years ago[AWARE] Data-path creation roles hard-coded for discovery sessions
Etan Cohen [Wed, 16 Nov 2016 15:07:11 +0000 (07:07 -0800)]
[AWARE] Data-path creation roles hard-coded for discovery sessions

Data-path roles (initiator & responder) are hard-coded for discovery
session participants by the spec: subscriber <-> initiator and
publisher <-> responder. Remove API parameter which allowed caller
to specify role.

(cherry-pick of commit 9c7483fec41db681a2d6de93a9061fb8764ecba5)

Bug: 32883026
Test: unit-tests and integration (sl4a) tests passing.
Change-Id: I889eacda9416d9ecd04caa0c72413f984611d40c

7 years agoMerge "Add legacy-test as replacement for core-junit"
Paul Duffin [Wed, 30 Nov 2016 12:15:14 +0000 (12:15 +0000)]
Merge "Add legacy-test as replacement for core-junit"
am: e75a82a92f

Change-Id: Ifa6b4d9c968878e956ddff71a607af67a84472e6

7 years agoMerge "Add legacy-test as replacement for core-junit"
Paul Duffin [Wed, 30 Nov 2016 12:04:23 +0000 (12:04 +0000)]
Merge "Add legacy-test as replacement for core-junit"

7 years agoMerge "Fix batterySendBroadcast not synchronized issue."
Mark Lu [Wed, 30 Nov 2016 09:14:31 +0000 (09:14 +0000)]
Merge "Fix batterySendBroadcast not synchronized issue."
am: 32e756a4bc

Change-Id: Ieab665e92bdb17c449c82de66604fbef5688de17

7 years agoMerge "Fix batterySendBroadcast not synchronized issue."
Treehugger Robot [Wed, 30 Nov 2016 07:59:54 +0000 (07:59 +0000)]
Merge "Fix batterySendBroadcast not synchronized issue."

7 years agoMerge "Preload2: Add sequence UI"
Andreas Gampe [Wed, 30 Nov 2016 00:49:44 +0000 (00:49 +0000)]
Merge "Preload2: Add sequence UI"
am: 56ddac7fd7

Change-Id: I6ca6e1ea6c6721a24f7b1d3d7fb4715bd51aa0d9

7 years agoMerge "Preload2: Add sequence UI"
Treehugger Robot [Wed, 30 Nov 2016 00:39:18 +0000 (00:39 +0000)]
Merge "Preload2: Add sequence UI"

7 years agoPreload2: Add sequence UI
Andreas Gampe [Mon, 28 Nov 2016 23:07:39 +0000 (15:07 -0800)]
Preload2: Add sequence UI

Add a fake UI that can run a sequence of actions (and replies).

Bug: 31961946
Test: manual
Change-Id: Iee0fac5ddf75a97eff7b401c9c932634489349de

7 years agoMerge "Use junit-host instead of junit"
Paul Duffin [Tue, 29 Nov 2016 15:12:46 +0000 (15:12 +0000)]
Merge "Use junit-host instead of junit"
am: 6063357ae6

Change-Id: I6522cedeb522fa01530d4f31b6505b4d4c265312

7 years agoAdd legacy-test as replacement for core-junit
Paul Duffin [Mon, 28 Nov 2016 15:51:09 +0000 (15:51 +0000)]
Add legacy-test as replacement for core-junit

Statically includes core-junit-static into legacy-test target so
that legacy-test can be used in place of core-test. Once that
switch over has been done then android.test classes that are
being removed from the public API can be safely moved into here.

Bug: 30188076
Test: make legacy-test and check contents of generated legacy-test artifacts

Change-Id: I75488303067c4ac34c46279bfce9a51273adcc34

7 years agoMerge "Use junit-host instead of junit"
Paul Duffin [Tue, 29 Nov 2016 15:01:31 +0000 (15:01 +0000)]
Merge "Use junit-host instead of junit"

7 years agoUse junit-host instead of junit
Paul Duffin [Tue, 29 Nov 2016 13:00:19 +0000 (13:00 +0000)]
Use junit-host instead of junit

Bug: 30188076
Test: make checkbuild
Change-Id: I3496b9d7e40abf7712a56ba633a2becd0aa17c06

7 years agoMerge "[AM] Fix system server may killed when monkey crash."
Mark Lu [Tue, 29 Nov 2016 14:34:28 +0000 (14:34 +0000)]
Merge "[AM] Fix system server may killed when monkey crash."
am: 21ed56daac

Change-Id: I0a556d253099eab172ac297cb3e799b9095ef853

7 years agoMerge "[AM] Fix system server may killed when monkey crash."
Treehugger Robot [Tue, 29 Nov 2016 14:23:03 +0000 (14:23 +0000)]
Merge "[AM] Fix system server may killed when monkey crash."

7 years agoMerge "Use junit-host instead of junit"
Paul Duffin [Tue, 29 Nov 2016 10:22:34 +0000 (10:22 +0000)]
Merge "Use junit-host instead of junit"
am: 7dda7e1e81

Change-Id: Ie070bf5329899f21e3fb65dae6db5fdd50e74ba9

7 years agoMerge "Use junit-host instead of junit"
Paul Duffin [Tue, 29 Nov 2016 10:12:51 +0000 (10:12 +0000)]
Merge "Use junit-host instead of junit"

7 years ago[AM] Fix system server may killed when monkey crash.
Mark Lu [Mon, 21 Nov 2016 07:38:13 +0000 (15:38 +0800)]
[AM] Fix system server may killed when monkey crash.

 Symptom: monkey crash caused system server killed.
 Root Cause: when monkey crash or app crash before process bound,
        calling AppErrors.crashApplication will first
        clear binder identities, that will caused calling pid / uid
        will become with current process (i.e. system server),
        so in handleAppCrashInActivityController, when monkey registered
        activityController would like to kill crash process,
        but not found in AMS (monkey created by app_process)
        then using calling pid / uid will become to kill system server.
 Solution: add calling pid / uid parameters for
         handleAppCrashInActivityController to prevent binder identities
         cleared case.

 Test: To simulate monkey or app crash before process bound may not easy
     by using simple command, but we can write a sample program to
     simulate RuntimeInit to call handleApplicationCrash when met
     uncauchtException,

    Below is test steps in Android 7.1.1 emulator.

1. start emulator
2. after emulater started, use "adb shell am monitor" to set
   activityController & monitor process by console.
3. write a .jar program as monkey by below sample code to simulate null
   application binder to call handleApplicationCrash() as RuntimeInit:

package com.android.test;

import com.android.internal.os.BaseCommand;
public class SimulateMonkeyCrash extends BaseCommand {

    public static void main(String[] args) {
        IActivityManager am = ActivityManagerNative.getDefault();
        try {
            am.handleApplicationCrash(null,
                 new ApplicationErrorReport.CrashInfo(new Throwable()));
        } catch (RemoteException e) {
            e.printStackTrace();
    }
}

4. write a .sh file named SimulateMonkeyCrash.sh as below:
  #
  base=/system
  export CLASSPATH=$base/framework/SimulateMonkeyCrash.jar
  exec app_process $base/bin com.android.test.SimulateMonkeyCrash "$@"

5. let .sh file is executable by "chomod 755".
6. push .jar file into /system/framework & .sh file into /system/bin
7 execute .sh file.
8. activityController will detected program crash in console as below,
press k:
Waiting after crash...  available commands:
(c)ontinue: show crash dialog
(k)ill: immediately kill app
(q)uit: finish monitoring

9 you can see system server is crash.

Change-Id: Ibac4d88872f24af109d8e8522ecf5ac72fac0ce0

7 years agoMerge changes I37c8daa6,I5a05b65d,If56347fd
Andreas Gampe [Tue, 29 Nov 2016 03:20:57 +0000 (03:20 +0000)]
Merge changes I37c8daa6,I5a05b65d,If56347fd
am: 9309f1cbf3

Change-Id: I847aeea3e025d07eb809310dc7dc5ea3ef0fc285

7 years agoPreload2: Add isSingleThreaded
Andreas Gampe [Tue, 29 Nov 2016 03:20:51 +0000 (03:20 +0000)]
Preload2: Add isSingleThreaded
am: 3bf65c916c

Change-Id: I6bf6c5b934cb89937bb329ea7b9f50c70b3a898d

7 years agoPreload2: Fix action inheritance
Andreas Gampe [Tue, 29 Nov 2016 03:20:12 +0000 (03:20 +0000)]
Preload2: Fix action inheritance
am: 1c809a3d32

Change-Id: I8ef23a6ee16b1462d65ef2d7a3f62e9d586c92ff

7 years agoPreload2: Abstract out UI
Andreas Gampe [Tue, 29 Nov 2016 03:19:34 +0000 (03:19 +0000)]
Preload2: Abstract out UI
am: 5cb8998363

Change-Id: Ia4a147e061397951ada72beac7c5781b8dbac918

7 years agoMerge changes I37c8daa6,I5a05b65d,If56347fd
Treehugger Robot [Tue, 29 Nov 2016 03:08:20 +0000 (03:08 +0000)]
Merge changes I37c8daa6,I5a05b65d,If56347fd

* changes:
  Preload2: Add isSingleThreaded
  Preload2: Fix action inheritance
  Preload2: Abstract out UI

7 years agoAdd ACTION_WIFI_SAVED_NETWORK_SETTINGS to Settings.
Stephen Chen [Mon, 14 Nov 2016 23:59:33 +0000 (15:59 -0800)]
Add ACTION_WIFI_SAVED_NETWORK_SETTINGS to Settings.

Exposes an activity that deep links into saved network Settings.

Bug: 32738882
Test: gts test
Change-Id: Ic639b7543439bbe52941fa58a74a767a4a0f8a76

7 years agoPreload2: Add isSingleThreaded
Andreas Gampe [Mon, 28 Nov 2016 23:06:35 +0000 (15:06 -0800)]
Preload2: Add isSingleThreaded

Expose whether a UI is single-threaded to avoid spawning threads
in actions.

Bug: 31961946
Test: manual
Change-Id: I37c8daa6a00784e833bad53b8e83ab4417955df7

7 years agoPreload2: Fix action inheritance
Andreas Gampe [Mon, 28 Nov 2016 23:04:25 +0000 (15:04 -0800)]
Preload2: Fix action inheritance

Use AbstractThreadedAction as a base.

Bug: 31961946
Test: manual
Change-Id: I5a05b65d753be775c8b8382bb1a81e869c388f8d

7 years agoPreload2: Abstract out UI
Andreas Gampe [Mon, 28 Nov 2016 21:15:10 +0000 (13:15 -0800)]
Preload2: Abstract out UI

Create IUI interface and move UI to SwingUI.

Bug: 31961946
Test: manual
Change-Id: If56347fdde8b441c0c01337a3f5eac002ea5b4f3

7 years agoMerge "Add removeState method to StateMachine"
Hall Liu [Mon, 28 Nov 2016 20:58:43 +0000 (20:58 +0000)]
Merge "Add removeState method to StateMachine"
am: 0310de1136

Change-Id: Ib7d8e435c76bc7bcd83d6350c3c0622bb44d6552

7 years agoMerge "Add removeState method to StateMachine"
Hall Liu [Mon, 28 Nov 2016 20:52:01 +0000 (20:52 +0000)]
Merge "Add removeState method to StateMachine"

7 years agoUse junit-host instead of junit
Paul Duffin [Mon, 28 Nov 2016 16:44:44 +0000 (16:44 +0000)]
Use junit-host instead of junit

Bug: 30188076
Test: make checkbuild
Change-Id: I5d3efbfbe3245a631113674bff1b0aabdc9fe8be

7 years agoMerge "Use the new refined DexOptNeeded codes."
Nicolas Geoffray [Mon, 28 Nov 2016 13:25:06 +0000 (13:25 +0000)]
Merge "Use the new refined DexOptNeeded codes."
am: d7e597a2e7

Change-Id: I58fbb54b94350e633fdd38cfb984de87a1862fd2

7 years agoMerge "Use the new refined DexOptNeeded codes."
Nicolas Geoffray [Mon, 28 Nov 2016 13:15:55 +0000 (13:15 +0000)]
Merge "Use the new refined DexOptNeeded codes."

7 years agoUse the new refined DexOptNeeded codes.
Nicolas Geoffray [Fri, 25 Nov 2016 09:50:29 +0000 (09:50 +0000)]
Use the new refined DexOptNeeded codes.

bug: 30937355
Test: device boots, messages are printed correctly
Change-Id: Ia5274e3659471c2a52244d5838d207d407e79023

7 years agoMerge "Move JUnit classes from here into external/junit"
Paul Duffin [Thu, 24 Nov 2016 11:57:48 +0000 (11:57 +0000)]
Merge "Move JUnit classes from here into external/junit"
am: 552744390f

Change-Id: I994dc5533d4f1dad35a161e998f57ecab56ab8a3

7 years agoMove JUnit classes from here into external/junit
Paul Duffin [Thu, 24 Nov 2016 11:52:23 +0000 (11:52 +0000)]
Move JUnit classes from here into external/junit
am: 0342ab5b94

Change-Id: I9111fe5e643794452008cf2cad933da0ca15bd00

7 years agoMerge "Move JUnit classes from here into external/junit"
Paul Duffin [Thu, 24 Nov 2016 11:44:01 +0000 (11:44 +0000)]
Merge "Move JUnit classes from here into external/junit"

7 years agoMerge "[AWARE] Move manager tests from service to manager directory"
Etan Cohen [Wed, 23 Nov 2016 23:50:27 +0000 (23:50 +0000)]
Merge "[AWARE] Move manager tests from service to manager directory"
am: 018f6ec16f

Change-Id: I795e75882ac702c3637afa43ba2f73d612d74661

7 years agoMerge "[AWARE] Move manager tests from service to manager directory"
Etan Cohen [Wed, 23 Nov 2016 23:42:29 +0000 (23:42 +0000)]
Merge "[AWARE] Move manager tests from service to manager directory"

7 years agoAdd removeState method to StateMachine
Hall Liu [Tue, 22 Nov 2016 01:29:02 +0000 (17:29 -0800)]
Add removeState method to StateMachine

Method to be used by BluetoothRouteManager in Telecom.

Test: unit tests in Telecom
Change-Id: Icdd1a3d42224246a5f26100fabb26313ce83b14c

7 years ago[AWARE] Move manager tests from service to manager directory
Etan Cohen [Thu, 17 Nov 2016 01:59:41 +0000 (17:59 -0800)]
[AWARE] Move manager tests from service to manager directory

Move operation - no functional tests. Only editorial changes:
- Remove (no longer) necessary import statements
- Removed reference to a constant sitting on the service side.
  Replaced with locally defined constant.

(cherry pick of commit 7ba5ad3c53dac62e56cd12dbe2054ce8374b6b92)

Bug: 32954930
Test: unit-tests pass
Change-Id: Ibe463fa73c27fc67996460eb91ea0222437927a6

7 years agoMerge "Expose TelephonyManager#{set,get}DataEnabled."
Jeff Davidson [Wed, 23 Nov 2016 04:01:22 +0000 (04:01 +0000)]
Merge "Expose TelephonyManager#{set,get}DataEnabled."
am: 99d6227782

Change-Id: Iacdd6d802725ab1b45c273ad7c8de7c85c8cb801

7 years agoMerge "Expose TelephonyManager#{set,get}DataEnabled."
Jeff Davidson [Wed, 23 Nov 2016 03:55:26 +0000 (03:55 +0000)]
Merge "Expose TelephonyManager#{set,get}DataEnabled."

7 years agoMerge "Fix static analyzer warnings."
George Burgess IV [Wed, 23 Nov 2016 02:52:13 +0000 (02:52 +0000)]
Merge "Fix static analyzer warnings."
am: 9c69c41b95

Change-Id: I62b951aa16a714343f155fa3af86f58933212ebb

7 years agoMerge "Fix static analyzer warnings."
Treehugger Robot [Wed, 23 Nov 2016 02:45:54 +0000 (02:45 +0000)]
Merge "Fix static analyzer warnings."

7 years agoMerge "Bluetooth: report proper advertiser status on error"
Jakub Pawlowski [Wed, 23 Nov 2016 01:58:03 +0000 (01:58 +0000)]
Merge "Bluetooth: report proper advertiser status on error"
am: b509957e62

Change-Id: I1bb0a029a9044c3931e158c7ef02ffee4cb0f1cd

7 years agoMerge "Bluetooth: report proper advertiser status on error"
Treehugger Robot [Wed, 23 Nov 2016 01:51:51 +0000 (01:51 +0000)]
Merge "Bluetooth: report proper advertiser status on error"

7 years agoExpose TelephonyManager#{set,get}DataEnabled.
Jeff Davidson [Fri, 18 Nov 2016 23:48:15 +0000 (15:48 -0800)]
Expose TelephonyManager#{set,get}DataEnabled.

setDataEnabled requires MODIFY_PHONE_STATE or carrier privileges.
getDataEnabled will work with any of the above or
ACCESS_NETWORK_STATE.

Merged-In: I2d5a9df2e55f3f7be1729abefe137c00ae1d6c4e
Test: Exercised APIs from test app, updated and executed CTS tests
Change-Id: I2d5a9df2e55f3f7be1729abefe137c00ae1d6c4e
Fixes: 32644451

7 years agoBluetooth: report proper advertiser status on error
Jakub Pawlowski [Tue, 22 Nov 2016 20:44:22 +0000 (12:44 -0800)]
Bluetooth: report proper advertiser status on error

When advertiser is not started because too many advertisers are
registered, return proper error code.

Bug: 30622771
Test: sl4a ConcurrentBleAdvertisingTest
Change-Id: I57384ff30132e9a7ee17dcf191ff89baa7abf1ef

7 years agoMove JUnit classes from here into external/junit
Paul Duffin [Mon, 21 Nov 2016 15:26:00 +0000 (15:26 +0000)]
Move JUnit classes from here into external/junit

Checked that android.test.runner had the same classes in as
before the change.

These classes are legacy 3.8.1 classes, they are not in 4.10 at
all. They appear to have been left here by accident. Looking at
the history it appears that at one time there were copies of
JUnit 3.8.1 junit.runner classes in frameworks and
external/junit. The classes here were upgraded to 4.10 but even
though these classes had been deleted immediately after 3.8.2
was released they were not removed, instead they appear to have
been reformatted as part of the upgrade. The external/junit
source was upgraded to 4.10 about two weeks later which seems to
have been done correctly. About three months after that the
classes here that were duplicates of those in external/junit
were removed from here leaving the legacy classes from 3.8.1.

I could not find any usages of these classes and they are not in
the public API so they can probably be removed altogether.
However, for now I will simply move them into external/junit as
described and remove them when upgrading JUnit there to 4.12.

Bug: 30188076
Test: Built android.test.runner and checkapi
Change-Id: I88687889315c041d999fe7e61b9652ac8406165c

7 years agoMerge "Add SystemProperties.reportSyspropChanged()."
Martijn Coenen [Tue, 22 Nov 2016 09:49:15 +0000 (09:49 +0000)]
Merge "Add SystemProperties.reportSyspropChanged()."
am: 45c0c6939f

Change-Id: I83890872ba76161cf2f9a35b23861ab21b452a0f

7 years agoMerge "Add SystemProperties.reportSyspropChanged()."
Treehugger Robot [Tue, 22 Nov 2016 09:43:23 +0000 (09:43 +0000)]
Merge "Add SystemProperties.reportSyspropChanged()."

7 years agoMerge "wifi: hotspot2: add copy constructor for PasspointConfiguration"
Peter Qiu [Tue, 22 Nov 2016 01:37:00 +0000 (01:37 +0000)]
Merge "wifi: hotspot2: add copy constructor for PasspointConfiguration"
am: 248c8311e8

Change-Id: I9a652a0f02f2895bde3ac9e4c332c80fc38b0df6

7 years agoMerge "Make voicemail notification broadcast public"
Ta-wei Yen [Tue, 22 Nov 2016 01:32:00 +0000 (01:32 +0000)]
Merge "Make voicemail notification broadcast public"
am: 6a56326109

Change-Id: Ic094db50e40a0cd46251e27f84b2a98b9040a192

7 years agoMerge "wifi: hotspot2: add copy constructor for PasspointConfiguration"
Treehugger Robot [Tue, 22 Nov 2016 00:03:43 +0000 (00:03 +0000)]
Merge "wifi: hotspot2: add copy constructor for PasspointConfiguration"

7 years agoMerge "Make voicemail notification broadcast public"
Treehugger Robot [Mon, 21 Nov 2016 22:23:12 +0000 (22:23 +0000)]
Merge "Make voicemail notification broadcast public"

7 years agoMerge "[AWARE] Update API per review"
Etan Cohen [Mon, 21 Nov 2016 21:50:34 +0000 (21:50 +0000)]
Merge "[AWARE] Update API per review"
am: 9e4f111e0f

Change-Id: I69001477d02c612540ff74385400551293f7c600

7 years agoMerge "StrictMode to detect untagged network traffic."
Jeff Sharkey [Mon, 21 Nov 2016 21:43:58 +0000 (21:43 +0000)]
Merge "StrictMode to detect untagged network traffic."
am: 67fe28d925

Change-Id: I52cdce87d87ec503294e431c8f22e87235bdbf79

7 years agoMerge "[AWARE] Update API per review"
Etan Cohen [Mon, 21 Nov 2016 21:43:39 +0000 (21:43 +0000)]
Merge "[AWARE] Update API per review"

7 years agoMerge "StrictMode to detect untagged network traffic."
Treehugger Robot [Mon, 21 Nov 2016 21:33:15 +0000 (21:33 +0000)]
Merge "StrictMode to detect untagged network traffic."

7 years agoMerge "Stub Binder API."
Jeff Sharkey [Mon, 21 Nov 2016 20:21:25 +0000 (20:21 +0000)]
Merge "Stub Binder API."
am: 4db1632b3a

Change-Id: I00e7f39d525a1d6af9a07b192294060113a2f7c2

7 years agoMerge "Stub Binder API."
Jeff Sharkey [Mon, 21 Nov 2016 20:10:28 +0000 (20:10 +0000)]
Merge "Stub Binder API."

7 years agoStrictMode to detect untagged network traffic.
Jeff Sharkey [Mon, 21 Nov 2016 19:14:50 +0000 (12:14 -0700)]
StrictMode to detect untagged network traffic.

Define some constants for early use in AOSP code.

Test: builds, boots, all common traffic tagged
Bug: 30943431
Change-Id: Ia58a8933bccfddbc027afb78c63ae65bd71ce562

7 years ago[AWARE] Update API per review
Etan Cohen [Wed, 16 Nov 2016 21:40:55 +0000 (13:40 -0800)]
[AWARE] Update API per review

- Move Handler to last position
- Peer ID changed from 'Object' -> opaque class
- Rename onMessageSent -> onMessageSendSucceeded

(cherry pick of commit 1fef08507aeb49bb2e4e7be4804a378ba2cf7770)

Bug: 31470256
Test: unit tests & integration (sl4a) tests pass
Change-Id: I5530d310e982ea16a63a5af1f704625fd24e436c

7 years agoStub Binder API.
Jeff Sharkey [Mon, 21 Nov 2016 16:13:52 +0000 (09:13 -0700)]
Stub Binder API.

Provide a stub API for AOSP code to call.

Test: builds
Bug: 32715088
Change-Id: Iab74d269e795a722e82fd3fa304200d57d152f57

7 years agoAdd SystemProperties.reportSyspropChanged().
Martijn Coenen [Thu, 17 Nov 2016 13:06:38 +0000 (14:06 +0100)]
Add SystemProperties.reportSyspropChanged().

To support notifying libutils of system property
changes.

Bug: 31262344
Test: builds
Change-Id: Iea77532eaa84d00f7d640edd1e3a1da66afdadc5

7 years agoMerge "Precreate the classloader for the WebView."
Torne (Richard Coles) [Mon, 21 Nov 2016 17:04:22 +0000 (17:04 +0000)]
Merge "Precreate the classloader for the WebView."
am: 566b1c80e4

Change-Id: Ic79079748dae515cb8d89ef99148755ac65f1d47

7 years agoMerge "Precreate the classloader for the WebView."
Treehugger Robot [Mon, 21 Nov 2016 16:54:52 +0000 (16:54 +0000)]
Merge "Precreate the classloader for the WebView."

7 years agoPrecreate the classloader for the WebView.
Torne (Richard Coles) [Mon, 10 Oct 2016 14:11:36 +0000 (15:11 +0100)]
Precreate the classloader for the WebView.

We want to create the classloader for the WebView in advance in the
zygote so that it can preload Java and native code for its children, but
the zygote can't talk to the package manager (so doesn't have a
PackageInfo for the APK) and also doesn't have an ActivityThread, so
constructing a LoadedApk is difficult.

Instead, we use the fact that ApplicationLoaders contains a
process-global cache of classloaders for APKs, and prepopulate a cache
entry without constructing a LoadedApk. This requires making
ApplicationLoaders public. To calculate the correct library paths from
the information the zygote has, we reuse the logic in LoadedApk (which
is already public, and just needs a small change to allow a null
ActivityThread when checking for instrumentation).

The other parameters for classloader creation (target SDK, bundled app,
etc) are hardcoded to usable values for the WebView's case. WebView
never needs to use any system libraries that aren't public so claiming
it's not bundled is fine even when that isn't actually true, and WebView
will always target the current platform API level.

Once the classloader is created, look up the factory class and call
preloadInZygote on it to give it a chance to preload the native library
and do other shared initialisation.

Bug: 21643067
Test: enable multiprocess WebView, examine librank output to see sharing
Change-Id: I696ead637e3f7382bcc58cfaf61eac5921862015

7 years agoMerge "Import translations. DO NOT MERGE" into stage-aosp-master
TreeHugger Robot [Mon, 21 Nov 2016 01:31:58 +0000 (01:31 +0000)]
Merge "Import translations. DO NOT MERGE" into stage-aosp-master

7 years agoMerge "Import translations. DO NOT MERGE" into stage-aosp-master
TreeHugger Robot [Mon, 21 Nov 2016 01:31:36 +0000 (01:31 +0000)]
Merge "Import translations. DO NOT MERGE" into stage-aosp-master

7 years agoMerge "Import translations. DO NOT MERGE" into stage-aosp-master
TreeHugger Robot [Mon, 21 Nov 2016 01:31:09 +0000 (01:31 +0000)]
Merge "Import translations. DO NOT MERGE" into stage-aosp-master

7 years agoMerge "Import translations. DO NOT MERGE" into stage-aosp-master
TreeHugger Robot [Mon, 21 Nov 2016 01:30:39 +0000 (01:30 +0000)]
Merge "Import translations. DO NOT MERGE" into stage-aosp-master

7 years agoMerge "Import translations. DO NOT MERGE" into stage-aosp-master
TreeHugger Robot [Mon, 21 Nov 2016 01:30:03 +0000 (01:30 +0000)]
Merge "Import translations. DO NOT MERGE" into stage-aosp-master

7 years agoMerge "Import translations. DO NOT MERGE" into stage-aosp-master
TreeHugger Robot [Mon, 21 Nov 2016 01:29:44 +0000 (01:29 +0000)]
Merge "Import translations. DO NOT MERGE" into stage-aosp-master

7 years agoMerge "Import translations. DO NOT MERGE" into stage-aosp-master
TreeHugger Robot [Mon, 21 Nov 2016 01:29:13 +0000 (01:29 +0000)]
Merge "Import translations. DO NOT MERGE" into stage-aosp-master

7 years agoMerge "Import translations. DO NOT MERGE" into stage-aosp-master
TreeHugger Robot [Mon, 21 Nov 2016 01:28:40 +0000 (01:28 +0000)]
Merge "Import translations. DO NOT MERGE" into stage-aosp-master

7 years agoMerge "Import translations. DO NOT MERGE" into stage-aosp-master
TreeHugger Robot [Mon, 21 Nov 2016 01:28:21 +0000 (01:28 +0000)]
Merge "Import translations. DO NOT MERGE" into stage-aosp-master

7 years agoMerge "Import translations. DO NOT MERGE" into stage-aosp-master
TreeHugger Robot [Mon, 21 Nov 2016 01:27:55 +0000 (01:27 +0000)]
Merge "Import translations. DO NOT MERGE" into stage-aosp-master

7 years agoMerge "Import translations. DO NOT MERGE" into stage-aosp-master
TreeHugger Robot [Mon, 21 Nov 2016 01:27:22 +0000 (01:27 +0000)]
Merge "Import translations. DO NOT MERGE" into stage-aosp-master

7 years agoMerge "Import translations. DO NOT MERGE" into stage-aosp-master
TreeHugger Robot [Mon, 21 Nov 2016 01:26:51 +0000 (01:26 +0000)]
Merge "Import translations. DO NOT MERGE" into stage-aosp-master

7 years agoMerge "Import translations. DO NOT MERGE" into stage-aosp-master
TreeHugger Robot [Mon, 21 Nov 2016 01:26:05 +0000 (01:26 +0000)]
Merge "Import translations. DO NOT MERGE" into stage-aosp-master

7 years agoMerge "Import translations. DO NOT MERGE" into stage-aosp-master
TreeHugger Robot [Mon, 21 Nov 2016 01:23:55 +0000 (01:23 +0000)]
Merge "Import translations. DO NOT MERGE" into stage-aosp-master

7 years agoImport translations. DO NOT MERGE
Bill Yi [Sun, 20 Nov 2016 23:49:28 +0000 (15:49 -0800)]
Import translations. DO NOT MERGE

Auto-generated-cl: translation import

Bug: 32177112
Change-Id: Ia328721b05af6cfe32f4494e89f6ee1645cb1deb

7 years agoImport translations. DO NOT MERGE
Bill Yi [Sun, 20 Nov 2016 23:43:22 +0000 (15:43 -0800)]
Import translations. DO NOT MERGE

Auto-generated-cl: translation import

Bug: 32177112
Change-Id: I102b129ace5c7d97a6874aad995930b2f3cbdae6

7 years agoImport translations. DO NOT MERGE
Bill Yi [Sun, 20 Nov 2016 22:46:30 +0000 (14:46 -0800)]
Import translations. DO NOT MERGE

Auto-generated-cl: translation import

Bug: 32177112
Change-Id: I8f62ab1cb184f32e850831414c8ff3e7740d783f

7 years agoImport translations. DO NOT MERGE
Bill Yi [Sun, 20 Nov 2016 22:43:23 +0000 (14:43 -0800)]
Import translations. DO NOT MERGE

Auto-generated-cl: translation import

Bug: 32177112
Change-Id: Ic5781e21dceb885251e8ed7696a309e1844d9bd6

7 years agoImport translations. DO NOT MERGE
Bill Yi [Sun, 20 Nov 2016 22:18:34 +0000 (14:18 -0800)]
Import translations. DO NOT MERGE

Auto-generated-cl: translation import

Bug: 32177112
Change-Id: Iad7637d1a9f10f5641f089db9542734be4da0d2e

7 years agoImport translations. DO NOT MERGE
Bill Yi [Sun, 20 Nov 2016 22:15:31 +0000 (14:15 -0800)]
Import translations. DO NOT MERGE

Auto-generated-cl: translation import

Bug: 32177112
Change-Id: Ia301c54a58d496c9608939c12e18491d3c4df1f6