summaryrefslogtreecommitdiff
path: root/services/tests/appfunctions
AgeCommit message (Collapse)Author
2024-12-30Grant target implicit visibility onExecuteAppFunctions Oluwarotimi Adesina
Flag: android.app.appfunctions.flags.enable_app_function_manager Test: atest CtsAppFunctionTestCases -c Bug: 386324561 Change-Id: I4fd8bdad13f69f2e4837b29b5cee5c2c9552152c
2024-12-23Test AppFunctions logging Yara Hassan
Add tests that verify AppFunctionsStatsLog is called with the expected values when the appfunction service reports a result or error. Flag: android.app.appfunctions.flags.enable_app_function_manager Bug: 376688078 Test: unit tests Change-Id: Ia1b23644726e2d497af39c02be5d97f77786b388
2024-10-15Add per-package lock in setAppFunctionEnabled. Shashwat Razdan
Bug: 357551503 Test: CTS Flag: android.app.appfunctions.flags.enable_app_function_manager Change-Id: I3c46a6ef1cdb07e6e1a30a9d1417fac8c55574f3
2024-10-09Close the SearchResults object when there are no more results. Utkarsh Nigam
Change-Id: I1d6d5172cf3fc432368b847039eb95958bc585bd Flag: android.app.appfunctions.flags.enable_app_function_manager Test: CTS Bug: 357551503
2024-10-09Add support for dumpsys in AppFunctionManagerServiceImpl. Utkarsh Nigam
Change-Id: I80ed6006632788e8b14e3d0ed05c22e383ee88d4 Flag: android.app.appfunctions.flags.enable_app_function_manager Test: Tested Manually https://paste.googleplex.com/6293573751537664 Bug: 357551503
2024-10-03AppFunctionRuntimeMetadata enabled changes Shashwat Razdan
Replacing the AppFunctionRuntimeMetadata.getEnabled() and the corresponding Builder.setEnabled() signature from a tristate boolean to an integer. Flag: android.app.appfunctions.flags.enable_app_function_manager Test: Pre-existing tests (like setAppFunctionEnabled_functionDefaultEnabled) already test this change. Bug: 369683073 Change-Id: I6c62e8e4f802d47ee2a648ee334ec44616f3ee0a
2024-09-27System server should pass through the GD as is Tony Mak
This means the system server never unmarshall and marshall the GD parcel and just pass through it. This also means the shared memory is always allocated by the app, but not the system server. The approach was taken from BaseBundle Flag: android.app.appfunctions.flags.enable_app_function_manager Bug: 360864791 Test: Added GenericDocumentWrapperTest Test: atest AppFunctionDocumentManagerTest Test: Added a log in unparcel() to print out the current UID. Make sure system server never triggers unparcel() Change-Id: Ibc1f8cae191d0d5c74c1b5ef9cd0e4ef767b53ef
2024-09-22Batch calls to the Metadata Syncer Desh
Context: Sometimes we can have consecutive calls requesting a sync, originating from a single batch of updates. Flag: android.app.appfunctions.flags.enable_app_function_manager Test: atest FrameworksAppFunctionsTests -c + cts Bug: 357551503 Change-Id: Ib895fa87efbd92e83d547ed0d745e424d6aa1e32
2024-09-20Merge "Revert "Batch calls to the Metadata Syncer"" into main Priyanka Advani (xWF)
2024-09-20Revert "Batch calls to the Metadata Syncer" Pechetty Sravani (xWF)
This reverts commit 3c39767a6a814d3cf145355d6c2f4671f28608a0. Reason for revert: DroidMonitor created revert due to b/368463140. Change-Id: I53a650af5f90b5f6da82dd086cfdb67a931448f3
2024-09-20Fix AppFunctionRuntimeMedata.set/getEnabled Tony Mak
Flag: android.app.appfunctions.flags.enable_app_function_manager Test: atest CtsAppFunctionTestCases -c Bug: 360864791 Change-Id: Ifb47ce50799b23c5d5dfcf99f09ac76b5dacaf44
2024-09-19Batch calls to the Metadata Syncer Desh
Context: Sometimes we can have consecutive calls requesting a sync, originating from a single batch of updates. Flag: android.app.appfunctions.flags.enable_app_function_manager Test: atest FrameworksAppFunctionsTests -c + cts Bug: 357551503 Change-Id: I2b2ef8902aa50e25aaf2ec9b26045d75725a728c
2024-09-17Use MetadataSyncAdapter in AppFunctionManagerService. Desh
Flag: android.app.appfunctions.flags.enable_app_function_manager Test: atest FrameworksAppFunctionsTests -c Bug: 357551503 Change-Id: Iec9ddab67f40757c72cbf4257f36081189ae40c5
2024-09-16Fix two issues I found when adding CTS Tony Mak
1. staticMetadata qualified ID is not set proprely. 2. The schema visibility should be set in the child schema, instead of parent. Flag: android.app.appfunctions.flags.enable_app_function_manager Bug: 360864791 Test: atest FrameworksAppFunctionsTests Change-Id: Ic94d6d5acf3a3ee7fede10b61f2dbe82813b468d
2024-09-13Merge "Refactor metadataSyncAdapter" into main Treehugger Robot
2024-09-13Refactor metadataSyncAdapter Desh
Flag: android.app.appfunctions.flags.enable_app_function_manager Test: atest FrameworksAppFunctionsTests -c Bug: 357551503 Change-Id: Ia9ee8bbd49e4060bedffc4326f658eb08d8cbf0a
2024-09-13Make java_sdk_library dependencies explicit Jihoon Kang
modules should specify the submodule of java_sdk_library that the module actually depends on Test: CI Flag: EXEMPT build dependency cleanup Bug: 358613520 Change-Id: Ie5f2fba06fb22ffa25d44c80dca645196ee1dcbe
2024-09-12[MetadataSyncAdapter Sync api] Oluwarotimi Adesina
- Add api for submitting a sync request to the sync executor. Flag: android.app.appfunctions.flags.enable_app_function_manager Test: atest FrameworksAppFunctionsTests -c Bug: 357551503 Change-Id: Idcd1715fb08e1481a28cdcb9c0b1ff07fe7689a7
2024-09-11Abstract FutureAppSearchSession Oluwarotimi Adesina
Context: This is to make writing the test much easier for other dependent classes like the syncer. Flag: android.app.appfunctions.flags.enable_app_function_manager Test: atest FrameworksAppFunctionsTests -c Bug: 357551503 Change-Id: I853ab02013c98d395ffd1e02f1f163d0677b4fd4
2024-09-10Add util to get package name from runtime metadata schema Oluwarotimi Adesina
Context: This will be used to obtain the corresponding package that owns the schema from a getSchemaResponse. Flag: android.app.appfunctions.flags.enable_app_function_manager Test: atest FrameworksAppFunctionsTests -c Bug: 357551503 Change-Id: I80200320c228e621bdff969e7be2e28f9b63d0c7
2024-09-10Add remove to FutureAppSearchSession Oluwarotimi Adesina
Flag: android.app.appfunctions.flags.enable_app_function_manager Test: atest FrameworksAppFunctionsTests -c Bug: 357551503 Change-Id: Ib3ec4eae9e1055ddb93ad34653a903555389ca83
2024-09-10Make SearchSpec Internal when fetching metadata properties. Desh
Flag: android.app.appfunctions.flags.enable_app_function_manager Test: atest FrameworksAppFunctionsTests -c Bug: 357551503 Change-Id: I69774ec52a642c8c421266a40d091d29961f9712
2024-09-09Merge "Introduce MetadataSyncAdapter." into main Treehugger Robot
2024-09-09Introduce MetadataSyncAdapter. Oluwarotimi Adesina
This class is used to index runtime metadata in sync with the static metadata for app functions. Flag: android.app.appfunctions.flags.enable_app_function_manager Test: atest FrameworksAppFunctionsTests -c Bug: 357551503 Change-Id: Ifd031cced3bb974c5e7c183f402e6e3798078025
2024-09-09Merge "Remove base observer" into main Oluwarotimi Adesina
2024-09-09Add method to retrieve document by id. Utkarsh Nigam
Flag: android.app.appfunctions.flags.enable_app_function_manager Test: atest FrameworksAppFunctionsTests -c Bug: 357551503 Change-Id: I801f5c15f248689376dfe405aace8895799b34fa
2024-09-09Remove base observer Oluwarotimi Adesina
Context: AppSearch does not support polymorphism with the observer API yet Flag: android.app.appfunctions.flags.enable_app_function_manager Test: atest FrameworksAppFunctionsTests -c Bug: 357551503 Change-Id: Ie7fe97737bbae8ae43aef26ce65a99c83415759f
2024-09-08Introduce FutureGlobalSearchSession Oluwarotimi Adesina
Flag: android.app.appfunctions.flags.enable_app_function_manager Test: atest FrameworksAppFunctionsTests -c Bug: 357551503 Change-Id: I5517ca7dffea5b8a8e9925de7da9880ae247b8c8
2024-09-06Add tests for FutureAppSearchSession Tony Mak
Flag: android.app.appfunctions.flags.enable_app_function_manager Test: atest FrameworksAppFunctionsTests Bug: 357551503 Change-Id: Icb45dbb800eebf979ba385e32cb58f9ae2f4a2b9
2024-09-05Set up the the unit test folder Tony Mak
Flag: android.app.appfunctions.flags.enable_app_function_manager Test: atest FrameworksAppFunctionsTests Bug: 357551503 Change-Id: I306a408a9b78d76c97dd20acefda54f53f2feb39
2024-09-02add a folder for adding unit tests for app functions Tony Mak
Test: n/a Change-Id: I24d738a8e2af894be502f019c81283461850dfc7