The SUCCESS_WITH_ACCESSIBILITY_SESSION result code
was introduced from CL[1].
-. Add the result code into getString() to avoid the
unknown case.
-. Add comment for the result code.
[1]: Ia651a811093a939d00c081be1961e24ed3ad0356
Bug: 236920321
Test: presubmit
Change-Id: Ieb567237ad0a9cbde6eee47dbbd6c6609eb46688
As part of moving DeviceConfig.java to packages/modules/ConfigInfrastructure.
Need to move activity thread dependency to setting.config as the new
module will not have access to hidden apis (ActivityThread).
For security purpose we cannot expose enforceReadPermission so we need
to move it to Settings.Config
Bug: 258220607
Test: m
Change-Id: Ibdd7c0489eb4f5238272705fd45e15b2b146a656
The modem's power drain can vary greatly depending on what Radio Access
Technology (RAT) is being used and at what frequency. Utilize available
modem RAT and frequency data in the MobileRadioPowerCalculator.
Bug: 231331285
Test: atest MobileRadioPowerCalculatorTest
Change-Id: Ibe9e2842f9c3f1869a5564fbfc0c218d831cd940
For now, we will show apps with an active FGS or jobs that the user
should be aware of (ie. "user-visible jobs") in the exact same way.
Users will be able to stop the ongoing FGS and user-visible jobs
using the same button. This won't be used to show apps on TM, so
the JobScheduler implementation is empty.
We'll add the JobScheduler implementation in U.
Bug: 255767350
Change-Id: Iaf482926c1f568aee26a2798ce827c6138f3f779
Test: atest SystemUITests
Test: Manually start jobs and interact with the Task Manager
To parse InputMethod_configChanges locally without waiting system
callback with initializeInternal, in case IME#mInputView may not
able to call resetStateForNewConfiguration in time before
IME#initializeInternal when it's required.
Fix: 260198823
Test: atest InputMethodServiceTest
Change-Id: I0268360f1b60ebc1f2676d3edab1910a9ce0f050
When the app wants to overlay its resource in runtime, it’s a
SelfTargeting scenario. This patch adds a new builder
constructor in FabaricatedOverlay for SelfTargeting. It's
`Builder(@NonNull String overlayName, @NonNull String targetPackage)`.
The app needs to pass 2 parameters.
* the overlay name
* target package to be overlaid
This patch also marks the nullability and checks the arguments of
`setResourceValue` and it needs related CTS tests to verify the
nullability.
* setResourceValue
Test: atest \
OverlayHostTests \
OverlayDeviceTests \
SelfTargetingOverlayDeviceTests \
OverlayRemountedTest \
FrameworksServicesTests:com.android.server.om \
CtsContentTestCases:android.content.om.cts \
idmap2_tests
Bug: 205919743
Change-Id: Ie8e2de13076c9d28bbcf7ee52deab91114f7ec57
Notify IMS call type & IMS call ID through CallAttributes.
List of CallAttributes mapped to whole calls will be passed to the
listener.
Bug: 242928210
Test: atest FrameworksTelephonyTests, Device test b/260350954
Change-Id: I1584524cec49af0694f691efdcbec4210f06e09a
Strict partition precedence is enforced now, and the legacy
android:priority is no longer able to reorder overlays across
partition boundaries.
Should use OverlayConfig instead to do the custom configuration
if a cross partition reorder is needed.
Bug: 254407173
Test: atest OverlayConfigTest
Change-Id: I915957bee2ce00286c1bad853206e7e5cb1d140b
Revert "Adding Ims Call Info to CallAttributes"
Revert submission 19673329-IMSCallInfo_In_CallAttributes
Reason for revert: <phone crash at CS call>
Reverted Changes:
Id5c4ba0b6:Add CTS for CallAttributesListener
Ic7b5adefd:Adding Ims Call Info to CallAttributes
I1584524ce:Notify IMS Call info via CallAttributesListener
Change-Id: Ia875f7441fbaac28d9220b9ed42da42ab286440c
- Also implement oom-adjuster timeout
- Also fix the FGS type change check.
Bug: 257270313
Test: atest FrameworksServicesTests:OomAdjusterTests MockingOomAdjusterTests AnrLatencyTrackerTests
Test: Manual test with a test app, using `dumpsys activity services`
Change-Id: I92e137bb09ac35a380e012ab9674aafc61d97084
The major task of OverlayManagerImpl is to create not only a frro
file but also an idmap file for a FabricatedOverlay instance. The
app attaches multiple FabricatedOverlay instances into an
OverlayManagerTransaction.
This patch makes OverlayManagerImpl process multiple requests in the
OverlayManagerTransaction in one commitment.
Test: atest \
OverlayHostTests \
OverlayDeviceTests \
SelfTargetingOverlayDeviceTests \
OverlayRemountedTest \
FrameworksServicesTests:com.android.server.om \
CtsContentTestCases:android.content.om.cts \
idmap2_tests
Bug: 205919743
Change-Id: I22e45fb6b3935cea4b24038dbd82d84bc9ca7db3
The overlayable mechanism has defined which roles can overlay the
specified resources and which resources are overlayable.
In order to reduce the argument between platform and applications,
self-targeting applications should enforce the overlayable mechanism.
It makes the overlay range be defined in the overlayable list. It
also defines the limitation of what kind of package can overlay the
resources of the self-targeting application.
To fill the policy flag, OverlayManagerImpl.java gets the following
information and passes them as bool type to JNI OverlayManagerImpl.
* SYSTEM_PARTITION
* VENDOR_PARTITION
* PRODUCT_PARTITION
* ODM_PARTITION
* OEM_PARTITION
* SIGNATURE
Not support
* ACTOR_SIGNATURE
* CONFIG_SIGNATURE
JNI OverlayManagerImpl fills the policy flags according to the
information from the ApplicationInfo. 'enforce_overlayable'is true to
enforce checking overlayable before generating an idmap.
Fixes: 238061808
Bug: 205919743
Test: atest \
OverlayHostTests \
OverlayDeviceTests \
SelfTargetingOverlayDeviceTests \
OverlayRemountedTest \
FrameworksServicesTests:com.android.server.om \
CtsContentTestCases:android.content.om.cts \
idmap2_tests
Change-Id: I749d1a90a00f0a91e7796bc0f9f668f9ecfdb8b0
Notify IMS call type & IMS call ID through CallAttributes.
List of CallAttributes mapped to whole calls will be passed to the
listener.
Bug: 242928210
Test: atest FrameworksTelephonyTests
Change-Id: I1584524cec49af0694f691efdcbec4210f06e092
Add OverlayManagerImpl to let applications create frro and idmap files
for overlaying itself's android resources.
* OverlayManagerImpl.java
* check the FabricatedOverlayInternal.
* com_android_internal_content_om_OverlayManagerImpl.cpp
* convert and read Java objects to native data.
* call the APIs in libidmap2 to create frro and idmap files.
Add OverlayManagerImpl.cpp into AndroidRuntime by modifying Android.bp
* Add register_com_android_internal_content_om_OverlayManagerImpl
register JNI methods
* add com_android_internal_content_om_OverlayManagerImpl.cpp
* It's a adapter to delegate the tasks to SelfTargeting.cpp
* dynamic link with libidmap2 by using dlopen and dlsym to call
functions in libidmap2.
Add SelfTargeting.cpp into libidmap2
* createFrroFile
* createIdmapFile
* getFabricatedOverlayInfo
for interoperability between libandroid_runtime and libidmap2.
* move OverlayManifestInfo from libidmap2 to libandroidfw
* add FabricatedOverlayEntryParameters into libandroidfw
Bug: 205919743
Test: build
Test: atest \
OverlayHostTests \
OverlayDeviceTests \
SelfTargetingOverlayDeviceTests \
OverlayRemountedTest \
FrameworksServicesTests:com.android.server.om \
CtsContentTestCases:android.content.om.cts \
idmap2_tests
Change-Id: I5425f3229e9a3858e57427ef84e6abaf32e89b6e
Creates new methods through CommandQueue and StatusBarService
to allow DeviceStateManagerService to notify SystemUI
to show the rear display education dialog
Bug: 207686851
Test: CommandQueueTest
Change-Id: I65e22a9940a866bb62b597f5cd4f6ce81d891e12
Merged-In: I65e22a9940a866bb62b597f5cd4f6ce81d891e12
String.format contains more loop, creates more temporary object
with more conditions than TextUtils.formatSimple.
And the basic syntax provided by formatSimple is enough for use
so far, it would be better to reduce the general cost while
enabling logcat output of protolog.
Bug: 259683790
Test: atest ProtoLogImplTest ProtoLogIntegrationTest LogParserTest
Change-Id: Icbf55c9e75c2343a961a57f83823a90e1f057075