History log of /frameworks/base/services/tests/servicestests/src/com/android/server/am/AssistDataRequesterTest.java
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
397967f12ea7b5c1704b12b1ce302d176f045c60 02-Nov-2017 Winson Chung <winsonc@google.com> Ensure that binders are unlinked from death recipients

- Add a callback to assist data requester to notify owners that the request
is completed so they can clean up accordingly

Bug: 67864419
Test: com.android.server.am.AssistDataRequesterTest
Change-Id: I775aaf78ac7d9632cd9ca0a4cf05f2a87211d5fe
/frameworks/base/services/tests/servicestests/src/com/android/server/am/AssistDataRequesterTest.java
60f493d4acbd1e454dc3101a54be1350968e2ae0 02-Nov-2017 Winson Chung <winsonc@google.com> Fix some voice interaction CTS due to regressions

- There are actually four things that control the assist data request:
current app allowed, app ops, disabled context/secure settings, and
requested context. The previous refactor had accidentally removed the
check for the secure settings (user disabled context). This CL adds
back the check for the user disabled context.
- In addition, it tried to simplify the callbacks by merging the requested
context and the disabled context into a single state, but the owners
still expected a callback when a context was requested (even if not
allowed). This change will always ensure a callback in that case.
- Also fix small error where we didn't clear the pending data/screenshot
after processing

Bug: 68759932
Bug: 68762521
Test: com.android.server.am.AssistDataRequesterTest
Test: #testCanNotHandleReceivedData_expectNoCallbacks
Test: #testProcessPendingData
Test: CtsVoiceInteractionTestCases
Test: CtsAssistTestCases

Change-Id: I60e049a6bf835fe726bc1133f2f8c9712bec8626
Signed-off-by: Winson Chung <winsonc@google.com>
/frameworks/base/services/tests/servicestests/src/com/android/server/am/AssistDataRequesterTest.java
da2818fe89e7f37ee60169ce653197049db450ea 24-Oct-2017 Winson Chung <winsonc@google.com> 1/ Refactor out logic to fetch assist data asynchronously

- This logic will also be used when the recents component is started to
fetch assist data associated with the current activity.

Bug: 67864419
Test: com.android.server.am.AssistDataRequesterTest
Test: CtsVoiceInteractionTestCases

Change-Id: I4cb3c2536a104d7071bc0a1fd6e31dfc2c0ce8d0
/frameworks/base/services/tests/servicestests/src/com/android/server/am/AssistDataRequesterTest.java