summaryrefslogtreecommitdiff
path: root/services/appfunctions/java
AgeCommit message (Collapse)Author
2025-02-17Use BIND_FOREGROUND_SERVICE only if the caller has the permission Tony Mak
Bug: 392614489 Test: atest CtsAppFunctionTestCases Flag: EXEMPT bugfix Change-Id: I2bb081b46aa902bf0b1526f2a34a02b33ae1c8e6
2025-02-07Handle function not found Exception Oluwarotimi Adesina
Flag: android.app.appfunctions.flags.enable_app_function_manager Test: atest CtsAppFunctionTests Bug: 394571314 Change-Id: I9fef3f5cd20b49a687a1b35573c52da0fe43039c
2025-01-29Remove EXECUTE_APP_FUNCTIONS_TRUSTED Tony Mak
Bug: 393122219 Test: atest CtsAppFunctionTestCases Flag: android.app.appfunctions.flags.enable_app_function_manager Change-Id: I1038766dc66375c5f9038d88d06b934ed0abc758
2025-01-07Provide caller signingInfo on execute app function Oluwarotimi Adesina
Flag: android.app.appfunctions.flags.enable_app_function_manager Test: Will Update CTS Bug: 386324561 Change-Id: Ia6929eca9342d0abf180b6b8b7e46f4c3baf176e
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-12-10Log the overhead latency of app function requests Yara Hassan
Flag: android.app.appfunctions.flags.enable_app_function_manager Bug: 376688078 Test: manual test (will write tests in separate CL) Change-Id: I6c9638c2e022b65e1b491c0cc4695bf8e5e80eb9
2024-12-09Log AppFunctionsRequestReported Yara Hassan
Flag: android.app.appfunctions.flags.enable_app_function_manager Bug: 376688078 Test: manual test Change-Id: I9e4cdb9d517c6f953f08668d0c89373ffa6b6261
2024-12-04Respect enterprise policy in AppFunctions Oluwarotimi Adesina
Flag: android.app.appfunctions.flags.enable_app_function_manager Test: atest CtsAppFunctionTestCases -c Bug: 380442826 Change-Id: I277df0eade4787f906d426cfa5572f441747ad39
2024-11-12Add idletimeout to AF exe pool Oluwarotimi Adesina
Flag: android.app.appfunctions.flags.enable_app_function_manager Test: existing CTS Bug: 371050337 Change-Id: Ic0c2e8a4835724d52623ee555c7bf4fe9385bed3
2024-11-07Update executeAppFunction to take a OutcomeReceiver Tony Mak
Flag: android.app.appfunctions.flags.enable_app_function_manager Test: Existing CTS Bug: 376426049 Change-Id: Icec71cdcb79d3f22854cd4c28b65ca6d56d48883
2024-10-31Add a dedicated error code for missing function ID Oluwarotimi Adesina
Flag: android.app.appfunctions.flags.enable_app_function_manager Test: CTS Bug: 375121362 Change-Id: I917df5c09090e549dade1c666e3d2ccaa8e8ac92
2024-10-17Name AppFunction executors Oluwarotimi Adesina
Flag: android.app.appfunctions.flags.enable_app_function_manager Test: Existing CTS Bug: 357551503 Change-Id: I2658c49caba39510a340cc8067a5bbd14a6ff280
2024-10-16Merge "Add per-package lock in setAppFunctionEnabled." into main Shashwat Razdan
2024-10-16Nit clean up Desh
Flag: android.app.appfunctions.flags.enable_app_function_manager Test: Existing Bug: 357551503 Change-Id: I6b3401c8e2408a8adf5735c96ddad0d4edc1fc8b
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-11Merge "Return early on "cannot execute function"" into main Treehugger Robot
2024-10-10Return early on "cannot execute function" Oluwarotimi Adesina
Flag: android.app.appfunctions.flags.enable_app_function_manager Test: N/A Bug: 357551503 Change-Id: Iad317b19d17651088cb8215fbe1907a687b1b9f4
2024-10-10Merge "Close the SearchResults object when there are no more results." into main Treehugger Robot
2024-10-10Merge "Add calling package onExecuteAppFunction" into main Treehugger Robot
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-04Merge "AppFunctionRuntimeMetadata enabled changes" into main Tony Mak
2024-10-04Add calling package onExecuteAppFunction Utkarsh Nigam
Flag: android.app.appfunctions.flags.enable_app_function_manager Test: cts Bug: 357551503 Change-Id: I54440175a5c327d0af4b3605904064c080dd76ff
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-10-03Merge "Extract AppFunctionServiceCallback from ↵ Treehugger Robot
AppFunctionManagerServiceImpl" into main
2024-10-03Extract AppFunctionServiceCallback from AppFunctionManagerServiceImpl Utkarsh Nigam
AppFunctionManagerServiceImpl is quite a large class. Making it modular for better readability. Change-Id: Ibaef088e55c7121d65df85087a7e115873f9dfe6 Flag: android.app.appfunctions.flags.enable_app_function_manager Test: atest CtsAppFunctionTestCases -c Bug: 360864791
2024-10-03Merge "Make onExecuteAppFunction non-abstract and remove timeout results." ↵ Utkarsh Nigam
into main
2024-10-03Make onExecuteAppFunction non-abstract and remove timeout results. Utkarsh Nigam
This is required so g3 usages can stop overriding this deprecated method and the timeout logic was removed in ag/29477656 Change-Id: Icd07685ea296403b48f4c3cbd74c2e7c3ad28430 Flag: android.app.appfunctions.flags.enable_app_function_manager Test: atest CtsAppFunctionTestCases -c Bug: 360864791
2024-10-02Nit fix for multi-user test Desh
Flag: android.app.appfunctions.flags.enable_app_function_manager Test: cts Bug: 357551503 Change-Id: I9e299e0c7cdce50b10c23ae03d6d0b546fcb731f
2024-10-01Add cancellation signal death recipient. Desh
Flag: android.app.appfunctions.flags.enable_app_function_manager Test: cts Bug: 357551503 Change-Id: I68a2d5acd9d69d181be46ba27d3d6696ae4378ef
2024-09-30Add a timeout for CancellationSignal issued to AppFunctionService before ↵ Tony Mak
which it is unbound. Change-Id: If9c66bf7951b72e66d7780a58595b58c4f495f3d Flag: android.app.appfunctions.flags.enable_app_function_manager Test: atest CtsAppFunctionTestCases -c Bug: 360864791
2024-09-27Add isAppFunctionEnabled and setAppFunctionEnabled api to AFM Tony Mak
Flag: android.app.appfunctions.flags.enable_app_function_manager Test: atest CtsAppFunctionTestCases -c BUG: 357551503 Change-Id: Ib27306ba8602d6674e39421416a35583ab8030ab
2024-09-25Add CancellationSignal to AppFunctionManager API. Utkarsh Nigam
Marking the existing functions as deprecated and not removing them because we have a lot of code referencing these previous APIs and we will remove these once those references have been updated. Since the usage is in G3 we can't do it right away. The sidecar update and logic to wrap cancellation signal with timeout and other checks will be added in later cls. Change-Id: I48007082315a23b395d135b7b2130a05df82e9a4 Flag: android.app.appfunctions.flags.enable_app_function_manager Test: atest CtsAppFunctionTestCases Bug: 360864791
2024-09-25Bind executeAppFunction with Context.BIND_FOREGROUND_SERVICE Oluwarotimi Adesina
Flag: android.app.appfunctions.flags.enable_app_function_manager Test: cts Bug: 357551503 Change-Id: I0b59db85318ccefc4967675b19c03a014d79438c
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-20Remove timeout logic from AppFunctionManagerService. Utkarsh Nigam
https://docs.google.com/document/d/1d2KLWoymaaf-UXKmSgWJeuzMTct4k1G53ZQMhx_6_M8/edit?tab=t.0 Change-Id: Icc87315c1ec594030b3a8ce266fb2c0cd93f3064 Flag: android.app.appfunctions.flags.enable_app_function_manager Test: atest CtsAppFunctionTestCases -c Bug: 360864791
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-19Move executeAppFunctionInternal off binder thread Tony Mak
so that the threading model is more clear. ExecuteAppFunction is running in the binder thread and ExecuteAppFunctionInternal is not. Also, only close a session when we have finished using it. And improve the latency of onUserUnlocked. Now it only takes 14ms Flag: android.app.appfunctions.flags.enable_app_function_manager Bug: 360864791 Fixes: 368153367 Test: atest CtsAppFunctionTestCases Change-Id: Iabd87cab440fd0459acda30ece1ddd9ef576d6af
2024-09-18Avoid non-required AppSearch operations in MetadataSyncApater Desh
Flag: android.app.appfunctions.flags.enable_app_function_manager Test: atest FrameworksAppFunctionsTests -c Bug: 357551503 Change-Id: I506469e80e0c39a8f29adcced070d12bfd4f2177
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-16Merge "Unwrap CompletionException for AndroidFuture(s) before translating ↵ Treehugger Robot
them to failure response(s)." into main
2024-09-16Unwrap CompletionException for AndroidFuture(s) before translating them to ↵ Utkarsh Nigam
failure response(s). Change-Id: I3b5157402df1271ad43f59fe13b097bf586c05cd Flag: android.app.appfunctions.flags.enable_app_function_manager Test: atest CtsAppFunctionTestCases Bug: 360864791
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-13Refactor metadataSyncAdapter Desh
Flag: android.app.appfunctions.flags.enable_app_function_manager Test: atest FrameworksAppFunctionsTests -c Bug: 357551503 Change-Id: Ia9ee8bbd49e4060bedffc4326f658eb08d8cbf0a
2024-09-12Return early when the caller doesn't have any permission. Utkarsh Nigam
We don't need to query app search db if caller doesn't have any permission. Change-Id: I92eeca29b1b5d44592001434eb252a4b884ea7bc Flag: android.app.appfunctions.flags.enable_app_function_manager Test: Verified by running locally. Will add CTS in next cl. Bug: 360864791
2024-09-12Handle exceptions in AppFunctionManagerServiceImpl Utkarsh Nigam
When an exception occurs, the service will return a failure response to the client instead of throwing an exception, Change-Id: I2aa8d0e22b9edd0334904186dd9bb118f072f4d7 Flag: android.app.appfunctions.flags.enable_app_function_manager Test: Verified by running locally. Will add CTS in next cl. Bug: 360864791
2024-09-12Merge "[MetadataSyncAdapter Sync api] - Add api for submitting a sync ↵ Treehugger Robot
request to the sync executor." into main