- Aug 21, 2019
-
-
Tobias Thierer authored
This CL topic moves the default MimeMap implementation to frameworks. Libcore starts with a minimal implementation sufficient to pass CtsLibcoreTestCases, but frameworks can inject the real implementation. Before this CL topic, the data files and logic (MimeMapImpl) were part of core-*.jar on device; after this CL, they instead live in framework.jar. Tests from MimeMapTest that check behavior of that default implementation also move to a non-libcore CTS test. Specifically, the logic and android.mime.types now live in frameworks/base/mime. The default implementation is injected into libcore from RuntimeInit. I chose to use a separate directory (frameworks/base/mime/) and build java_library target ("mimemap") in order to keep this as separate as possible from the rest of frameworks code, to make it as easy as possible to factor this out into a separate APEX module if we ever choose to do so. Planned work for follow-up CL: 1. Make CTS more opinionated, with a plan to assert that all of the default mappings are present. How exactly the expectated mapping will be bundled in CTS is still TBD. 2. Add a vendor.mime.types file (defaults to empty) where vendors can add additional mappings; I plan to make it such that mappings in that file are parsed last but never override any earlier mappings, as if each mime type / file extension was prefixed with '?'. 3. Perhaps enforce that public APIs android.webkit.MimeTypeMap and java.net.URLConnection.getFileNameMap() behave consistently with MimeMap.getDefault(). Test: atest CtsLibcoreTestCases Test: atest CtsMimeMapTestCases Bug: 136256059 Change-Id: Ib955699694d24a25c33ef2445443afb7c35ed9e7
-
- Aug 16, 2019
-
-
vichang authored
-
Treehugger Robot authored
-
- Aug 15, 2019
-
-
Hans Boehm authored
-
Anna Trostanetski authored
-
Jianpeng Li authored
When turning on/off SoftAp with high frequency, sometime calling WifiManager#updateInterfaceIpState with IFACE_IP_MODE_TETHERED is performed after handling WIFI_AP_STATE_DISABLED event in WifiServiceImpl while SoftAp is being terminated. This leads to the issue that SoftAp is unable to start as startSoftAp always returns "false". This is because mIfaceIpModes in WifiServiceImpl keeps the mode WifiManager.IFACE_IP_MODE_TETHERED and the CL below rejects SoftAp start request. e257c5c9e79e3675375ca20731cfb74df02b1064 @ frameworks/opt/net/wifi (WifiServiceImpl: Reject startSoftAp when already tethering) This CL updates the interface ip state upon receiving ap disable event from Tethering class to set proper state to mIfaceIpModes. Bug: 134806980 Test: Ran script to turn on/off soft ap frequently Signed-off-by:
Daichi Ueura <daichi.ueura@sony.com> Change-Id: I2f89214414d93f1aa942fb8a21264a9baae3452a
-
satayev authored
-
Treehugger Robot authored
-
- Aug 14, 2019
-
-
atrost authored
There are non-app process usecases in framework code that need to have access to this API. Created a new package android.compat in frameworks/base/core following previous definition of android.compat.Compatibility for app processes (http://cs/android/libcore/luni/src/main/java/android/compat/Compatibility.java). Bug: 137769727 Test: m Change-Id: Ifc1b97ad40c2baf65a86169e101acfa72e3aae5f Merged-In: Ifc1b97ad40c2baf65a86169e101acfa72e3aae5f
-
Adrian Roos authored
-
xueliang.zhong authored
Move Half FP16 implementations to libcore, to allow ART compiler to optimize these methods with intrinsic implementations. For example, on ARM64 with ARMv8.2 FP16 half registers and instructions: - Half toFloat/toHalf can be implemented with FCVT; - Half floor/ceil/round can be implmented with FRINT(pna); - Half max/min can be implmented with FMIN/FMAX. Such fast Half FP16 intrinsics can help accelerate ColorLong ARGB encoding/decoding in Android framework. Change-Id: I6225ebf8aa825b0394ce8f13e12db317f5c6e3fd
-
Chiachang Wang authored
-
Artur Satayev authored
Not changing the java packages, but rather moving the source location. This allows running metalava on them. Test: m Change-Id: I3b46644361239d85818dd885f461dfc94de49dca
-
Chiachang Wang authored
The resource loading is done based on the last SIM to come up which is not a deterministic design. Thus, update the way to get the resource based on the subId. Test: atest FrameworksNetTests Test: manually test with avoid bad wifi feature supported sim Bug: 138956509 Change-Id: Ib5b085d97103889600773d269e03b939c29ca47d
-
- Aug 13, 2019
-
-
Xin Li authored
Bug: 139369544 Change-Id: I835905a51836e7218f0be8c25335b9548ae6b2d3
-
Brad Ebinger authored
-
Nikita Iashchenko authored
Expose new stable APIs from ICU 64 Bug: 125283072 Test: m api-stubs-docs-update-current-api droid Change-Id: Id689aab0d4387725929ee41d80f3e8a26c0810fa
-
Brad Ebinger authored
-
android-build-team Robot authored
Change-Id: I5b1dc16c0696ce8452f8798e68fe417d7533c5df
-
Mark Chien authored
-
markchien authored
In case tethering donwstream is setup but don't ask EntitlementManager to run provisioning. Cellular upstream should not be allowed if EntilementManager don't have any donwstream record. Bug: 134649258 Test: -build, flash, boot -manual test with carrier SIM Change-Id: I609722c79f0a45a1c2164d39721ef5883e436feb
-
Brad Ebinger authored
There looks to be a case where infinite recursion is occuring when printing information about Telecom Sessions. Set a reasonable limit of iterations and throw a warning when this condition occurs to better track down a root cause. Bug: 139045282 Test: atest TelecomUnitTests:SessionTest Merged-In: Iae69c5db070c5e58ae5d37c12d1c4df027138611 Change-Id: Iae69c5db070c5e58ae5d37c12d1c4df027138611
-
- Aug 12, 2019
-
-
Leland Miller authored
-
Brad Ebinger authored
-
Adrian Roos authored
Bug: 139128921 Test: make checkapi Change-Id: I1f17b57705e2f7350b55ab278e06fc4e988771ff
-
Sungsoo Lim authored
-
Treehugger Robot authored
-
- Aug 09, 2019
-
-
Robert Carr authored
Missed a call-point in last refactoring. Bug: 135965618 Bug: 130211665 Bug: 133054270 Test: Manual Merged-In: I43fa93eea7d79f5b773497e3bb65750866eca2cb Change-Id: I43fa93eea7d79f5b773497e3bb65750866eca2cb (cherry picked from commit bf9298f1)
-
Treehugger Robot authored
-
Kyeongkab.Nam authored
It used "this" as a lock object to guard mListeners. but "this" is pointing to mHandler in handler thread. This causes the IndexOutOfBoundsException. bug: 138951761 Test: manual Change-Id: I826c7c68ecff4fc0d39addd3d56bc989e00848bc
-
- Aug 08, 2019
-
-
Yi Kong authored
-
Yi Kong authored
If tagId is not found in kAllPullAtomInfo map, StatsPuller will read outside of the object. Add a condition check to gracefully handle unrecognised tagId and fix the ASAN failure. Bug: 139037732 Test: boot aosp_x86-eng Change-Id: Ic62b89866dbec82f05e6f8e6afca9b312f44a801 Merged-In: I5db561c4223efc4ef6b1441490d319cc6ec8afc7 Exempt-From-Owner-Approval: trivial change, owner OOO.
-
Elliott Hughes authored
-
Elliott Hughes authored
This is the only actual user of libcutils' jstring.h. Test: treehugger Change-Id: I0444d42e5a3ca57de3bffca48aa265f267c3d4dc
-
Rajeev Kumar authored
-
Treehugger Robot authored
-
Nicolas Geoffray authored
-
Anna Trostanetski authored
-
Remi NGUYEN VAN authored
The getInterfaceVersion method was missed when freezing the AIDL interface version. This causes Q devices to return 0 instead of 3 on this interface. Bug: 139110717 Test: toggle tethering, dumpsys network_stack version Change-Id: If587cc9ead4191b9c2ad2ae65473bd89e7c37b5c
-
David Srbecky authored
Needed for jit-zygote performance improvements. Test: device boots Bug: 119800099 Change-Id: I1e46f49d94440384473430d8afebe29fbee9c68e
-