7419a17d9243ddb0629af24d0308797154e44925 |
24-May-2018 |
Adrian Roos <roosa@google.com> |
WindowInsets: Never dispatch negative insets Bug: 80204753 Test: atest ViewRootImplTest Change-Id: Idace95ae57c6a3a1667b95ce8c3ac7d2bfe06f94
iewRootImplTest.java
|
ba196c5a3d8a8f04ffb22fd29435e545ee435fa0 |
20-Apr-2018 |
Abodunrinwa Toki <toki@google.com> |
Do not parcel legacy TextClassification fields If we depend on legacyIntent, then TextClassifierService implementations will have to always popuplate a deprecated field. To avoid breaking legacy clients, the returned legacyOnClickListener should represent the first pendingIntent (i.e. primary action) that was parcelled. Bug: 78340399 Test: atest CtsViewTestCases:TextClassificationManagerTest Test: atest FrameworksCoreTests:TextClassificationTest Test: manual check with a TCS that only sets non-deprecated fields vs a legacy TC client Change-Id: I41d27a65f1ede6369dd2a66d92b2210edb0d11e2
extclassifier/TextClassificationTest.java
|
253827f207be31399a21c390f90ce3ffe4b020c0 |
24-Apr-2018 |
Abodunrinwa Toki <toki@google.com> |
TC: Fix null PendingIntent being passed to RemoteAction Problem was RemoteAction(...) takes a non-null PendingIntent but TextClassification.createPendingIntent(...) returns a nullable PendingIntent. Bug: 78515224 Test: manual - Disable Contacts apps in settings - Select a phone number in a TextView - Verify that a Phone smart action is displayed Test: bit FrameworksCoreTests:android.view.textclassifier.TextClassificationManagerTest Test: bit CtsViewTestCases:android.view.textclassifier.cts.TextClassificationManagerTest Change-Id: Icab581d4eef38b4801d1b9ee3af04ffefd1eec6f
extclassifier/TextClassificationManagerTest.java
|
51072a8b6faf6a92dfe3f063caa5fe645c3d8440 |
11-Apr-2018 |
Adrian Roos <roosa@google.com> |
DisplayCutout: Draw anti-aliased bounds in soft overlay To do so, we cannot use the Region from DisplayCutout, because it is conceptionally a binary Bitmap. Instead, we need the exact curve as a Path. Also fixes a theoretical bug where the DisplayCutout was cached even though the display height changed. Change-Id: I9356f4589186fedc5dc95010c7bd1a1fa20edf5e Fixes: 77868940 Test: Enable display cutout in developer options, verify the edges look smoth and not jagged. Test: atest DisplayCutoutTest
isplayCutoutTest.java
|
706edbd776edeceb95cff604914fea5aeeb7cdde |
09-Apr-2018 |
Jan Althaus <jalt@google.com> |
Merge "Fixing broken logging of OTHER events" into pi-dev
|
5a03094ebc91df1c64a2232be648ac3ed26657ce |
04-Apr-2018 |
Jan Althaus <jalt@google.com> |
Remove legacy logger Migrate DefaultLogger implementation to SelectionSessionLogger. This cleans up after the API refactor and fixes two bugs: - All events are currently logged twice. - Interfaces accept a null signature, but it currently crashes the legacy logger. Bug: 73392698 Bug: 77659305 Test: atest FrameworksCoreTests:TextClassificationManagerTest Test: atest FrameworksCoreTests:TextClassificationTest Test: atest CtsViewTestCases:TextClassificationManagerTest Test: atest CtsViewTestCases:TextClassifierValueObjectsTest Test: atest CtsWidgetTestCases:TextViewTest Test: atest CtsWidgetTestCases:EditTextTest Test: Manually examined logs Change-Id: I0d2b925abf5cab12d71fc2cc0fa527530c86ab10
extclassifier/SelectionEventTest.java
|
35b3057627387102496b647c90740af4dd6b833d |
07-Apr-2018 |
Jan Althaus <jalt@google.com> |
Fixing broken logging of OTHER events This bug means we never received logs for events like 'Web Search' Bug: 77659305 Test: atest FrameworksCoreTests:SelectionEventTest Change-Id: I6f79897f548d0d19710578e309e0b645bb78e1e3
extclassifier/SelectionEventTest.java
|
ab669a01a7cbb77107e4335f4940f4e39da0e2d7 |
03-Apr-2018 |
Richard Ledley <rledley@google.com> |
Use Collection instead of List for entity list Test: bit CtsViewTestCases:android.view.textclassifier.cts.TextClassificationManagerTest FrameworksCoreTests:android.view.textclassifier.TextLinksTest Bug: 76448224 Change-Id: I354fa05f14b22075c2172624925f5b953956f3a4
extclassifier/TextLinksTest.java
|
9e418b8dd2e3879ba90f756501b0a3ee1bd4e15d |
03-Apr-2018 |
Phil Weaver <pweaver@google.com> |
Move cts tests using reflection Moving them into unit tests. Bug: 77266422 Test: Run a11y coretests Change-Id: Id6305586a43c0a8fc9df207765ed3f0459ae247e
ccessibility/AccessibilityEventTest.java
ccessibility/AccessibilityNodeInfoTest.java
|
080c8542b68cf17a0441862c404cb49ce0e86cfe |
27-Mar-2018 |
Abodunrinwa Toki <toki@google.com> |
TextClassifier API updates. 1. Wraps TC queries in Request objects 2. Adds create/destroyTextClassificationSession system APIs 3. Adds the session Ids to system API calls 4. Change setSignature() to setId() on result objects 5. Plumbing to make the API updates work as things currently work 6. Hide Linkify.addLinksAsync APIs Bug: 74461129 Test: bit FrameworksCoreTests:android.view.textclassifier.TextClassificationManagerTest Test: bit CtsViewTestCases:android.view.textclassifier.cts.TextClassificationManagerTest Test: bit CtsWidgetTestCases:android.widget.cts.TextViewTest Test: bit FrameworksCoreTests:android.widget.TextViewActivityTest Test: bit FrameworksCoreTests:android.view.textclassifier.TextClassificationTest Test: bit FrameworksCoreTests:android.view.textclassifier.TextSelectionTest Test: bit FrameworksCoreTests:android.view.textclassifier.TextLinksTest Change-Id: I933ada8b37ef9893331a265e3b4fc08e043f1029
extclassifier/TextClassificationManagerTest.java
extclassifier/TextClassificationTest.java
extclassifier/TextLinksTest.java
extclassifier/TextSelectionTest.java
|
a1652cfcce547183a426cc710691c740b2e46aa7 |
29-Mar-2018 |
Jan Althaus <jalt@google.com> |
Switch reference time to ZonedDateTime Bug: 74838195 Test: atest FrameworksCoreTests:TextClassificationManagerTest Test: atest FrameworksCoreTests:TextClassificationTest Test: atest CtsViewTestCases:TextClassificationManagerTest Test: atest CtsViewTestCases:TextClassifierValueObjectsTest Change-Id: I0df9dddf415fa558435553336a8a0a15621e9b05
extclassifier/TextClassificationTest.java
|
119d10deb9605502df829becc14d2a0d57a2a50a |
28-Mar-2018 |
Abodunrinwa Toki <toki@google.com> |
Merge "Implement Stateful TextClassifier APIs." into pi-dev
|
20d346eafec9404fb6f5b8eeb9a18ad794b4ca9a |
23-Mar-2018 |
Jan Althaus <jalt@google.com> |
Change TextClassification to use RemoteActions Behavioural changes: - Every action now as an icon, and instead hints via RemoteAction whether the icon should be shown or not. - Icons are now taken from the app default, not the activity. (That way, we can construct a lightweight resource backed Icon) - Legacy intents are no longer parceled for security reasons. (TextClassificatio wasn't parcelable in O) - TextClassifications built with the new API will always return null for getIntent, but provide a getOnClickListener. - Accessibility descriptions are now provided for action mode items. Testing changes: - Removed URI checks from TCM test because PendingIntent hides this info. Bug: 73950205 Test: atest FrameworksCoreTests:TextClassificationManagerTest Test: atest FrameworksCoreTests:TextClassificationTest Test: atest CtsViewTestCases:TextClassificationManagerTest Test: atest CtsViewTestCases:TextClassifierValueObjectsTest Test: atest CtsWidgetTestCases:TextViewTest Test: atest CtsWidgetTestCases:EditTextTest Change-Id: I6706d2c342a8bbb9de0146a48c8b8aac9d9c7d83
extclassifier/TextClassificationManagerTest.java
extclassifier/TextClassificationTest.java
|
88be5a6cee59868eaee6f7b52fd8b2e6f6f28429 |
23-Mar-2018 |
Abodunrinwa Toki <toki@google.com> |
Implement Stateful TextClassifier APIs. Outstanding work tbd in other CLs - Introduce request objects with session Ids - Implement character based indexing for Selection events. This CL hides the old Logger API but still keeps running so that we can check that the modifications to the new API does not break anything. We will remove the old Logger once we're convinced this is stable. Please refer to I3c9ceea0863099fc4f0a5ce5e823c648ee9c4521 for previous reviews related to this CL. Bug: 74461129 Test: bit FrameworksCoreTests:android.view.textclassifier.TextClassificationManagerTest Test: bit CtsViewTestCases:android.view.textclassifier.cts.TextClassificationManagerTest Test: bit CtsWidgetTestCases:android.widget.cts.TextViewTest Test: bit FrameworksCoreTests:android.widget.TextViewActivityTest Change-Id: Iea744f1fa5964b4399290c31863ebeffa99af8d3
extclassifier/SelectionEventTest.java
|
5d92e7248242f0f442818e1b562af55185a205e3 |
12-Mar-2018 |
TreeHugger Robot <treehugger-gerrit@google.com> |
Merge "DisplayCutout: Support more than one cutout" into pi-dev
|
ad52f4b97c897689d0b4dbfe344229a9970136eb |
07-Feb-2018 |
Abodunrinwa Toki <toki@google.com> |
TextClassifierService.onSelectionEvent Bug: 74466564 Bug: 67609167 Test: bit FrameworksCoreTests:android.view.textclassifier.TextClassificationManagerTest Test: bit FrameworksCoreTests:android.view.textclassifier.logging.SelectionEventTest Merged-In: Ib5af1ec80a38432d1201fbc913acdc3597d6ba82 Change-Id: Ib5af1ec80a38432d1201fbc913acdc3597d6ba82
extclassifier/SelectionEventTest.java
|
6a4fa0ec183e20c32e7816f5475e72fa9126356c |
05-Mar-2018 |
Adrian Roos <roosa@google.com> |
DisplayCutout: Support more than one cutout Also makes API more restrictive. Also moves window manager specific logic out of the framework. Also fixes SystemUI such that it can properly deal with more than one cutout. Bug: 74195186 Test: atest DisplayCutoutTest WmDisplayCutoutTest DisplayContentTests WindowFrameTests Change-Id: Ib7b89e119ce2d3961687579bb81eadce1159a600
isplayCutoutTest.java
|
f1d939910f1c9580297878cd13784a0f4b3be3a4 |
02-Mar-2018 |
Abodunrinwa Toki <toki@google.com> |
Merge textclassifier/logging/ into textclassifier/ This is based on feedback on Ib5af1ec80a38432d1201fbc913acdc3597d6ba82 Bug: 74466564 Bug: 67609167 Test: bit FrameworksCoreTests:android.view.textclassifier.TextClassificationManagerTest Test: bit CtsWidgetTestCases:android.widget.cts.TextViewTest Test: bit FrameworksCoreTests:android.widget.TextViewActivityTest Test: bit CtsViewTestCases:android.view.textclassifier.cts.TextClassificationManagerTest Test: bit CtsViewTestCases:android.view.textclassifier.cts.LoggerTest Merged-In: Ic8d58acb2bbd63cedcac4aa16940b4ac852aadc8 Change-Id: Ic8d58acb2bbd63cedcac4aa16940b4ac852aadc8
extclassifier/logging/GenerateLinksLoggerTest.java
|
2c9e780c4f691ec812d3714840c36febc718db3e |
06-Mar-2018 |
Phil Weaver <pweaver@google.com> |
Fix accessibility action parceling We were using an int for a bitmask, but the number of standard actions reached 32 with the tooltip actions. Switching to long. This CL is mostly ag/3662206, but that CL did not convert everything to ints. Bug: 73897184 Test: AccessibilityNodeInfo tests caught this bug. I've also enhanced it to make sure that all standard actions work across parceling. Change-Id: I2adae3ec34ac327af354449fbe6511f01cc30b2f (cherry picked from commit c9bf45564b58f85e998d83e4ac797350478bbba6)
ccessibility/AccessibilityNodeInfoTest.java
|
c7073a4b050238457074cc5c290d77bd95bde928 |
01-Mar-2018 |
Abodunrinwa Toki <toki@google.com> |
Add TCM.getTextClassifier(int type) Bug: 72747726 Test: bit FrameworksCoreTests:android.view.textclassifier.TextClassificationManagerTest Test: bit FrameworksCoreTests:android.view.textclassifier.TextClassificationConstantsTest Test: bit CtsWidgetTestCases:android.widget.cts.TextViewTest Test: bit FrameworksCoreTests:android.widget.TextViewActivityTest Change-Id: I0d6cb5eaf3f9baa0564672c4d4b680fb00f40a51
extclassifier/TextClassificationConstantsTest.java
extclassifier/TextClassificationManagerTest.java
|
23bb0505757b25884aeaba2e1fdcc486f65c0abd |
28-Feb-2018 |
TreeHugger Robot <treehugger-gerrit@google.com> |
Merge "Associate TCconstants with the TCM instead of TCImpl"
|
5e97621c97d0d4f04dd8f17050ce76d6e9c602cd |
28-Feb-2018 |
Artem Iglikov <artikz@google.com> |
Revert "Update A11y action serialization to use longs" This reverts commit 54549163b09e78396d6998172437b52a5cb7a042. Reason for revert: breaks tests, b/73997494 Bug: 73997494 Change-Id: I122c260898277d876c019554cb92351ac13a9eb0
ccessibility/AccessibilityNodeInfoTest.java
|
db8fc314d2ac9a2ce3209fe9e842c985e6f57d06 |
26-Feb-2018 |
Abodunrinwa Toki <toki@google.com> |
Associate TCconstants with the TCM instead of TCImpl Also updates flags list. Bug: 72946306 Bug: 72946123 Test: bit FrameworksCoreTests:android.view.textclassifier.TextClassificationManagerTest Test: bit FrameworksCoreTests:android.view.textclassifier.TextClassificationConstantsTest Test: bit CtsWidgetTestCases:android.widget.cts.TextViewTest Test: bit FrameworksCoreTests:android.widget.TextViewActivityTest Change-Id: I8af9d3d1da01836fbadcbbf6ce7c1c0db7456a05
extclassifier/TextClassificationConstantsTest.java
extclassifier/TextClassifierConstantsTest.java
|
54549163b09e78396d6998172437b52a5cb7a042 |
26-Feb-2018 |
Phil Weaver <pweaver@google.com> |
Update A11y action serialization to use longs Change-Id: If1c903cdf43e8fed0d22a823dcd28e1c08b6267e Fixes: 73897184 Test: Updating test (which was failing) to use long.
ccessibility/AccessibilityNodeInfoTest.java
|
99ef04f7173677ac52bf952979085e97e25f858c |
22-Feb-2018 |
TreeHugger Robot <treehugger-gerrit@google.com> |
Merge "DisplayCutout: Cache inflations from resources"
|
8d13bf132ce2ce5533da752d56e9f578c65ebbb3 |
21-Feb-2018 |
Adrian Roos <roosa@google.com> |
DisplayCutout: Cache inflations from resources Caches inflations from resources if the parameters did not change. This increases the hitrate of the rotation variants cache in window manager, and avoids unnecessairy reinflations whenever the display changes. Change-Id: I2ed9a2c259158bf1a6b551b3422534efbfec99c9 Bug: 72444324 Test: atest DisplayCutoutTest
isplayCutoutTest.java
|
0aacdb665cc42a64b5ecdfe1011bb3f19fea6d58 |
19-Feb-2018 |
Jan Althaus <jalt@google.com> |
Make default entity lists flag configurable Bug: 73277686 Test: bit CtsViewTestCases:android.view.textclassifier.cts CtsTextTestCases:android.text.util.cts FrameworksCoreTests:android.view.textclassifier Change-Id: I84be54fb407088ee25c3ba2d4d62708a898621ad
extclassifier/TextClassifierConstantsTest.java
|
b3d049c20f8f39d84ee0ca693e442a8caf50b7b9 |
22-Feb-2018 |
TreeHugger Robot <treehugger-gerrit@google.com> |
Merge "Adding logging for generateLinks"
|
f8c36bffb8921803d19d7c16d7eaf1dec883ff9d |
07-Feb-2018 |
Lukas Zilka <zilka@google.com> |
Updates the name of the native library wrapper class, adds options and removes hints. Test: Built, tested on device, CTS passes. bit FrameworksCoreTests:android.view.textclassifier.TextClassificationManagerTest Change-Id: I7c70427d28bec8218935ed45a39819b2ece8112a
extclassifier/TextClassificationManagerTest.java
|
d17350659726f4885d666679ac126767cd2bceff |
21-Feb-2018 |
Richard Ledley <rledley@google.com> |
Merge "Replace Entity Presets with hints and an explicit factory."
|
31efdc385c8fef30e0cda2863b3d5c3c995d55c5 |
19-Feb-2018 |
Jan Althaus <jalt@google.com> |
Adding logging for generateLinks Bug: 67629726 Test: Added test and manually verified end-to-end Change-Id: If5d20b7102b875a898a2fb897b624773554c9083
extclassifier/logging/GenerateLinksLoggerTest.java
|
c3704710820a326ac0b56a6f18d0fc317eb4ab85 |
20-Feb-2018 |
TreeHugger Robot <treehugger-gerrit@google.com> |
Merge changes Iff58235b,I1ea44917 * changes: DisplayCutout: account for cutout in appWidth/appHeight etc. DisplayCutout: Dispatch all non-zero safeInsets
|
242642146dbd762ccd43f8634476f3be9303b863 |
19-Feb-2018 |
Adrian Roos <roosa@google.com> |
DisplayCutout: Dispatch all non-zero safeInsets Ensures that even if the display cutout does not overlap a window, the safe insets are still dispatched if the window overlaps any part of the cutout area and the safe insets are therefore non-zero. To do that, we need to compute the insets once against the display size, then only shrink or expand the safe insets accordingly. Bug: 73533636 Test: atest DisplayCutoutTest Change-Id: I1ea449178e29c7effdd92cac78af1a3875ca7e70
isplayCutoutTest.java
|
1fc998b0fda051188665e599c891da4a5750581d |
16-Feb-2018 |
Richard Ledley <rledley@google.com> |
Replace Entity Presets with hints and an explicit factory. This remove APIs to inspect the list of entities a TextClassifier will choose. We decided the developer should have no need to see these, and by not exposing it we allow more flexibility on the TextClassifier. Test: bit FrameworksCoreTests:android.widget.TextViewActivityTest CtsViewTestCases:android.view.textclassifier.cts.TextClassificationManagerTest FrameworksCoreTests:android.view.textclassifier.TextLinksTest Bug: 67629726 Change-Id: I70978e692bb8a1edee1567a10c31d5ded44baa49
extclassifier/TextClassificationManagerTest.java
extclassifier/TextLinksTest.java
|
eaff57ebfe3005fd8a3dc5a1d9085f40f0416b30 |
12-Feb-2018 |
Jan Althaus <jalt@google.com> |
Fixing URL encoding of geo intent links Bug: 73106770 Test: Added test and manually verified Change-Id: Ia86450e1f6721cd50567628e4dcdcc34bca0bdf7
extclassifier/TextClassificationManagerTest.java
|
1d84b1734ddf5c7c0daa59faae995ad1006f42e6 |
16-Feb-2018 |
TreeHugger Robot <treehugger-gerrit@google.com> |
Merge "Adding maximum input size checks"
|
d591904d1d95707e7de97f2805b666f9ce32ec53 |
12-Feb-2018 |
TreeHugger Robot <treehugger-gerrit@google.com> |
Merge "Fix size of parcelled TextClassification icons."
|
4d0e87d926d22625d54b26342dba913d2948f8d6 |
08-Feb-2018 |
TreeHugger Robot <treehugger-gerrit@google.com> |
Merge "Fix context submenu position"
|
ef7cb2c0fc88513f065b8b37847dd6872ce53483 |
07-Feb-2018 |
Abodunrinwa Toki <toki@google.com> |
Fix size of parcelled TextClassification icons. Test: bit FrameworksCoreTests:android.view.textclassifier.TextClassificationManagerTest Test: bit FrameworksCoreTests:android.view.textclassifier.TextClassificationTest Change-Id: I02d659c127ebccb16d0150b7b70587a9d786331e
extclassifier/TextClassificationTest.java
|
108aad3c3036e61850cd39f55687626674f47d30 |
30-Jan-2018 |
Jan Althaus <jalt@google.com> |
Adding maximum input size checks Bug: 67629726 Test: Added tests and ran core tests Change-Id: Ib6ca53b068731fa0eabcabaed230d7f3ccde1288
extclassifier/TextClassificationManagerTest.java
|
fe20cdd9101c68031a7174c597a43030e167e3b4 |
12-Dec-2017 |
Abodunrinwa Toki <toki@google.com> |
Smart Linkify API Uses the TextClassifier to generate links on a background thread. The links are applied on the calling thread. Test: see topic Bug: 67629726 Change-Id: I0f1940a2ffbf19f4436c0a20b0c62e6bbc03cd7a
extclassifier/TextLinksTest.java
|
d32906c202db3b84151c310ecd89a07bb41208f7 |
18-Jan-2018 |
Abodunrinwa Toki <toki@google.com> |
Introduce a TextClassifierManagerService. Apps wanting to use a TextClassifier service (instead of an in-app-process TextClassifier) bind to this service. The service binds to and reroutes calls to a configured system TextClassifierService. TextClassifierManagerService manages the lifecycle of the configured TextClassifierService and binds/unbinds to preserve system health. A configurable TextClassifierService extends TextClassifierService, declares an android.textclassifier.TextClassifierService intent, and requires a permission that is only granted to the system so only the system may bind to it. The TextClassifierManagerService implements a similar interface to TextClassifierService (i.e. ITextClassifierService) but doesn't have to. This is done for simplicity sake and things may change in the future. The configuration of the default service is in config.xml. OEMs may change this with a config overlay. If no TextClassifierService is specified, the default in app process TextClassifierImpl is used. Bug: 67609167 Test: bit FrameworksCoreTests:android.view.textclassifier.TextClassificationManagerTest Test: tbd Change-Id: I8e7bd6d12aa1a772897529c3b12f47f48757cfe6
extclassifier/TextClassificationTest.java
extclassifier/TextSelectionTest.java
|
a6dfa74dc524c4566d8bab08fb870fcfe235ddde |
25-Jan-2018 |
Vladislav Kaznacheev <kaznacheev@google.com> |
Fix context submenu position Clear the list of presenters in MenuBuilder when the MenuBuilder instance is reset via clearAll. This prevents MenuPresenter instances from accumulating and ensures that a stale instance MenuPresenter is not activated. Bug: 72507876 Test: android.view.menu.ContextMenuTest Change-Id: I4911ca31307bc93901987f08298fa6b2926ba6ab
enu/ContextMenuTest.java
|
e2975162dca148be4be46b5bfbacdce7c74513ee |
25-Jan-2018 |
TreeHugger Robot <treehugger-gerrit@google.com> |
Merge "Adding intent generation for dates and flights"
|
705b9e9a1b435c7b8ab3b47d300ced487ed2262e |
22-Jan-2018 |
Jan Althaus <jalt@google.com> |
Adding intent generation for dates and flights Bug: 67667478 Test: Added, and manually verified intent handling Change-Id: Ib9e5a0df651690c852b7f44f226ffa768ce524e1
extclassifier/TextClassificationTest.java
|
d959c9d203ea41fede8f6b0a54ebb6ef2790e615 |
23-Jan-2018 |
Vladislav Kaznacheev <kaznacheev@google.com> |
Fix context menu position for RTL Based on https://android-review.googlesource.com/574843. Added APCT coverage to verify the fix and prevent regressions. Bug: 70920189 Test: android.view.menu.ContextMenuTest Change-Id: I50a7594e864e05bb155de1ff9d721d6d8986aad1
enu/ContextMenuActivity.java
enu/ContextMenuTest.java
|
0d9fbb9bd15fb1c6eae171d316a2de65aaffeb48 |
28-Nov-2017 |
Jan Althaus <jalt@google.com> |
Making TextClassifier helper objects parcelable - EntityConfidence is no longer generic because it doesn't mix well with being Parcelable. - Deprecated OnClick listeners in TextClassification as they can't be parceled. (Outright removed the secondary listeners that were not part of any release) - Classes that were present in previous releases have their parceling factored out into ParcelableWrapper helper classes for backwards compatibility. Bug: 67609167 Test: Added Change-Id: I820ca4abc6b80f90007ab4424bc5df2a14f797b0
extclassifier/TextClassificationTest.java
extclassifier/TextLinksTest.java
extclassifier/TextSelectionTest.java
|
e0e69f8704cb96f12e8fb1530524443136daaf7e |
04-Jan-2018 |
TreeHugger Robot <treehugger-gerrit@google.com> |
Merge "Using RenderNode for creating snapshot of a View, so that hardware bitmaps are drawn properly"
|
d1b287e56f0fd57ec6d1ac44bbaa73b09447e55a |
04-Jan-2018 |
Sunny Goyal <sunnygoyal@google.com> |
Using RenderNode for creating snapshot of a View, so that hardware bitmaps are drawn properly Test: atest FrameworksCoreTests:ViewCaptureTest Change-Id: Ie137e8a73fb84665df7a55facd02b10d78764c80
iewCaptureTest.java
|
bb2f28a776cff0af0fea0130992a3537a43c57ed |
22-Dec-2017 |
Phil Weaver <pweaver@google.com> |
Make accessibility window events more granular TYPE_WINDOWS_CHANGED events have meant that "something" changes with the system windows, so a single event would be fired for a single small window change or a bunch of window changes. Services were required to cache the windows and compare the old ones to the new ones to find out what changed. Since AccessibilityEvents are intended to communicate changes to the UI, this CL sends one TYPE_WINDOWS_CHANGED for each window that has changed, and provides a way to get the source of the changing window. It also adds a windowChangeType field, which contains flags to indicate what exactly has changed for the window. Bug: 62231686 Test: Run all a11y unit and cts tests Change-Id: I6c48e74da26be5ea485ac114a37f3c404a74940e
ccessibility/AccessibilityEventTest.java
|
4e937c0557c691c840c87e445ac8336c209511ec |
20-Dec-2017 |
Adrian Roos <roosa@google.com> |
Merge "Display Cutout: Make API public"
|
5ef174d48af45db7cef193302fd13c9b9e64dd71 |
20-Dec-2017 |
Aurimas Liutikas <aurimas@google.com> |
Merge "Annotate an assortment of coretest with @LargeTest"
|
bdbde55592792efe350acd6a46733f439f6a3f3d |
19-Dec-2017 |
Aurimas Liutikas <aurimas@google.com> |
Annotate an assortment of coretest with @LargeTest Non-annotated tests do not run, thus adding @LargeTest to an assortment of tests that were missing annotations. Found these classes with: fn "*Test.java" | xargs grep -L "@LargeTest" | xargs grep -L "@MediumTest" | \ xargs grep -L "@SmallTest" | sort Bug: 70846562 Test: make -j80 FrameworksCoreTests Change-Id: Ifd466251b92728f9bbfa3cbd8fd21d34490f4eb1
caleGestureDetectorTest.java
iewAttachTest.java
ccessibility/AccessibilityCacheTest.java
ccessibility/AccessibilityInteractionClientTest.java
ccessibility/AccessibilityNodeInfoTest.java
nputmethod/InputMethodInfoTest.java
enu/MenuLayoutLandscapeTest.java
enu/MenuLayoutPortraitTest.java
|
db18a578f1aa2e39f88a53eab962ed6470ca2fe1 |
30-Nov-2017 |
Richard Ledley <rledley@google.com> |
Add entity types to Options. Test: bit FrameworksCoreTests:android.view.textclassifier.TextClassificationManagerTest Bug: b/67629726 Change-Id: I9cad0159ab539a71d9f504019ebe91fe18206d60
extclassifier/TextClassificationManagerTest.java
|
d07bafda2e91ca888d4413fd5b7b476e933a2561 |
11-Dec-2017 |
Adrian Roos <roosa@google.com> |
Display Cutout: Make API public Bug: 65689439 Test: make update-api Change-Id: I01e73eea819f0b79eea103d7c895265c38f8ff31
isplayCutoutTest.java
|
8306fc4202fab17dae32db04d288d289f17fff4a |
12-Dec-2017 |
Yohei Yukawa <yukawa@google.com> |
Migrate IME related tests to JUnit4 This CL cleans up remaining use of InstrumentationTestCase from IME-related FrameworksCoreTests as it is already deprecated in favor of testing-support-library. There should be no behavior change in tests and their expectations. Fixes: 70514197 Test: atest FrameworksCoreTests:com.android.internal.inputmethod.InputMethodSubtypeSwitchingControllerTest Test: atest FrameworksCoreTests:com.android.internal.inputmethod.InputMethodUtilsTest Test: atest FrameworksCoreTests:com.android.internal.inputmethod.LocaleUtilsTest Test: atest FrameworksCoreTests:android.view.inputmethod.CursorAnchorInfoTest Test: atest FrameworksCoreTests:android.view.inputmethod.InputMethodSubtypeArrayTest Test: atest FrameworksCoreTests:android.view.inputmethod.InputMethodSubtypeTest Test: atest FrameworksCoreTests:android.view.inputmethod.SparseRectFArrayTest Change-Id: I28f073aacb6f77c62bd186c37cbdb5719475d4ba
nputmethod/CursorAnchorInfoTest.java
nputmethod/InputMethodSubtypeArrayTest.java
nputmethod/InputMethodSubtypeTest.java
nputmethod/SparseRectFArrayTest.java
|
240aed987c66fe7ee1a1c4d862c3d57ac03b14b3 |
02-Dec-2017 |
Svet Ganov <svetoslavganov@google.com> |
Prevent reporting fake package name - framework Test: added AccessibilityEndToEndTest#testPackageNameCannotBeFaked cts-tradefed run cts -m CtsAccessibilityServiceTestCases cts-tradefed run cts -m CtsAccessibilityTestCases bug:69981755 Change-Id: I13304efbee10d1affa087e9c8bc4ec237643283e
ccessibility/AccessibilityInteractionClientTest.java
ccessibility/AccessibilityServiceConnectionImpl.java
|
b360b995c91c2abdac7426ba37b154d15b235113 |
21-Nov-2017 |
Tarandeep Singh <tarandeep@google.com> |
Add new SystemApi InputMethod attr isVrOnly. In order to support VR-only InputMethod, new attribute 'isVrOnly' is added. Bug: 63037786 Test: atest InputMethodInfoTest Change-Id: Iab936df9972212f56277ef9c18d9e1f67f92a913
nputmethod/InputMethodInfoTest.java
|
4d232d6243af42e2784664f6fab040e853f05223 |
23-Nov-2017 |
Abodunrinwa Toki <toki@google.com> |
TextClassifier cleanup #1 - Introduces TextClassifier methods that do not take options - Adds warning to TextClassifier implementations not to implement or call certain default methods. Ideally, only one of the overloaded interface methods (the one that takes Options) needs to be implemented - Changes TextLinks.Options to a mutable type - Updates tests TODO: Introduce a TextClassification.Builder.setDefaultAction(...) and change addAction(...) to addExtraAction(...). TODO: Cts test to validate input params. Bug: 68846316 Test: bit FrameworksCoreTests:android.view.textclassifier.TextClassificationManagerTest Test: bit FrameworksCoreTests:android.widget.TextViewActivityTest Test: bit CtsWidgetTestCases:android.widget.cts.TextViewTest Change-Id: I9a12935388e16a9b57567a71c97afaee63405183
extclassifier/TextClassificationManagerTest.java
|
e03bc1316121fdfe30fdf91eff14be2a2a9b3357 |
28-Nov-2017 |
Phil Weaver <pweaver@google.com> |
Merge "Bypass a11y cache when requested"
|
d4970af157733a096c449aa70456bf92db3b7ae8 |
10-Nov-2017 |
Adrian Roos <roosa@google.com> |
Display Cutout: Add Cutout to WindowInsets Adds a facility for communicating the display cutout to windows. A follow-up CL will make this a public API. Bug: 65689439 Test: runtest -x $ANDROID_BUILD_TOP/frameworks/base/core/tests/coretests/src/android/view/DisplayCutoutTest.java Change-Id: I2290adea0130a7e5764a9412616fd3192800e06a
isplayCutoutTest.java
|
d061f4ff15a4c16f672f1ea836a730c2165e4904 |
14-Nov-2017 |
Evan Rosky <erosky@google.com> |
Fix focusfinder coretests beams are no-longer considered overlapping if edges touch. These coretests weren't updated to reflect that. Bug: 67467972 Test: android.view.FocusFinderTest Change-Id: Ibc1535c1b232fe1c42104ff8970b371fbc8a7c25
ocusFinderTest.java
|
c140fdc34263caaa021d5c4ec438384de484420d |
10-Nov-2017 |
Phil Weaver <pweaver@google.com> |
Bypass a11y cache when requested When refreshing a node from the cache, we would still ask the cache to update itself in the middle of the refresh, which led to nodes being put in inconsistent states. Also rolling back ag/3051037, which was a temporary fix for one crashing bug. I'm also doing a bit of cleanup. Several methods in AccessibilityInteractionClient should really be static, since they only manipulate global state. Also, since I was already adding tests, I'm moving the tests for android.view.accessibility to their proper place in the source tree. Fixes: 68987775 Fixes: 67735115 Test: Adding a test to verify that we don't touch the cache when refreshing a node. This test fails without the change to AccessibilityInteractionClient, and passes now. Change-Id: If642ca79bc414ef9846b7b2a2277870f4143cb98
ccessibility/AccessibilityCacheTest.java
ccessibility/AccessibilityInteractionClientTest.java
ccessibility/AccessibilityNodeInfoTest.java
ccessibility/AccessibilityServiceConnectionImpl.java
|
68d945234667d11a65a924a7cdc1f5753a41a80f |
05-Oct-2017 |
Richard Ledley <rledley@google.com> |
Initial implementation of generateLinks Test: Included, and ag/3141575 Change-Id: Ia91aa130e95ff347c55981b68b8d975bc8131a73
extclassifier/TextClassificationManagerTest.java
|
adf5bec523c8215b03d3ca8f4f76c7a319f0f58e |
19-Oct-2017 |
Evan Rosky <erosky@google.com> |
Fixed several core and CTS tests Fixes in framework include: - ListPopupWindow requests focus for itself so it can receive MENU key. - PopupWindow uses setTransitionVisibility to avoid losing focus upon enter transition. - First-traversal will explicitly handle FOCUS_AFTER_DESCENDANTS on the current focus if applicable -- details in code comment. Fixes in tests usually just required focusing what they expected to have initial focus; however, there were a couple tests that had been broken for other reasons for a long time. app.cts.ActionBarTest app.cts.ToolbarActionBarTest android.view.DisabledLongpressTest android.widget.scroll.arrowscroll.ShortButtonsTest android.view.VisibilityTest android.widget.listview.ListScrollListenerTest android.widget.listview.arrowscroll.ListOfThinItemsTest andorid.widget.listview.arrowscroll.ListWithNoFadingEdgeTest android.view.LongpressTest android.widget.focus.ScrollingThroughListOfFocusablesTest android.widget.gridview.GridScrollListenerTest Bug: 67467972 Test: Failing tests should pass now. Change-Id: I9e2fbfeb183eb777f35c67eca53e1f70809b7670
isabledLongpressTest.java
ongpressTest.java
isibilityTest.java
|
1ed8bdaa0c9c71f8e75ae10023edcf477ace91dd |
16-Aug-2017 |
Evan Rosky <erosky@google.com> |
Fixed coretest DisabledTest Was asserting that disabled view has focus, but disabled views are no-longer focusable. Bug: 64678306 Test: DisabledTest#testSetUpConditions Change-Id: I028c4d050fa8fc578165c193928d5bb9a8d0cd1f
isabledTest.java
|
afcd19c71ee825cae6c918a01177f3602b2c9971 |
07-Aug-2017 |
Tony Mak <tonymak@google.com> |
Optimize filterByLanguage by caching locale objects According to traceview, most of the time spent in filterByLanguage is calling getLocaleObject to create java.util.Locale objects. The solution is to cache the object to save the cost. Note that both mSubtypeLangugageTag and mSubtypeLocale are final, so it is fine to cache the locale object. Test: bit FrameworksCoreTests:android.view.inputmethod.InputMethodSubtypeTest Test: bit FrameworksCoreTests:com.android.internal.inputmethod.LocaleUtilsTest Test: Try to switch user back and forth, and tap a textview to show IME. Bug: 37647204 Fix: 37647213 Change-Id: Ib6ff7e97b17fc547c8109af8177f05fc3ea41b08
nputmethod/InputMethodSubtypeTest.java
|
38bbbdfae6d7d15f2e1dde1d97d2a7f344cf10b9 |
03-Aug-2017 |
TreeHugger Robot <treehugger-gerrit@google.com> |
Merge "Remove LangId related code." into oc-mr1-dev
|
43ad57e548b86daf50e0ebfde440fe431a41cb1e |
01-Aug-2017 |
Dake Gu <dake@google.com> |
View: fix setTransientState Following four steps with RecyclerView - CardView - ImageView: a. fade in imageview in onBind: calling imageView.setTransientState(true) b. RecyclerView animate the item: calling cardView.setTransientState(true) c. fade-in finishes, calling imageView.setTransientState(false) d. RecyclerView animation finishes: calling cardView.setTransientState(false) After these four steps, RecyclerView unexpectedly has transient state. The problem is in step b, when calling cardView.setTransientState() it incorrectly calls parent.childHasTransientStateChanged(this, true) which causes RecyclerView's mChildCountWithTransientState increased to 2. And it's decreased to 1 in step d and stay as 1 forever. The child should only call childHasTransientStateChanged() when actual hasTransientState() changed. Bug: 64235615 Test: ViewTransientStateTest Change-Id: I99ed35cc9c49e54d36590d8f1d206501fd3288f2
iewTransientState.java
iewTransientStateTest.java
|
5820875975f34be795c4149c156e2ea9ef1068cc |
01-Aug-2017 |
Abodunrinwa Toki <toki@google.com> |
Remove LangId related code. FYI: We have plans to reintroduce this in some form in the near future. Fixes: 62571798 Fixes: 64096360 Test: bit FrameworksCoreTests:android.view.textclassifier.TextClassificationManagerTest Change-Id: I864d6c1143af6a2485cabdfe85116b5922a3e315
extclassifier/TextClassificationManagerTest.java
|
85544ba5eb3642976ea0f85fb9e86401661afc2b |
27-Jun-2017 |
Brett Chabot <brettchabot@google.com> |
Adjust tests to new android-support-test + espresso libraries. Test: make tests Change-Id: I7a41199cd7f0739f660a49b1af32e64f58590301
inchZoomAction.java
|
a0f4621b5d782d9845f91e519d87bd698ebe35d2 |
13-May-2017 |
Abodunrinwa Toki <toki@google.com> |
Merge "TextClassifier: Ensure url scheme is in lowercase" into oc-dev am: ebd6bb561d am: 3f940359c5 Change-Id: I063bb700b07b4341019b557251bde6d053d011e1
|
86ef9827dabc05832997898e8d85504e007a206b |
11-May-2017 |
Abodunrinwa Toki <toki@google.com> |
TextClassifier: Ensure url scheme is in lowercase packageManager.resolveActivity(intentWithUppercaseScheme, 0) returns null. This means we don't find an activity to handle the browser intent. Create a browser intent with url's scheme in lowercase instead. Test: bit FrameworksCoreTests:android.view.textclassifier.TextClassificationManagerTest Fixes: 36504599 Change-Id: Idb0c5b73d54cf77d5d6fb4ee0af4478ec11e8b82
extclassifier/TextClassificationManagerTest.java
|
d70d2e6efccf186af08289eb5dc5fe1835b753ed |
11-May-2017 |
Peeyush Agarwal <apeeyush@google.com> |
Fix broken MenuItem coretests - Fix MenuItemImpl setShortcut bug caused when method signature was changed after API review - Remove outdated MenuItem coretests and move others to CTS Bug: 38114634 Test: Run `cts-tradefed run cts-dev -m CtsViewTestCases -t android.view.cts.MenuTest` Change-Id: Iebb7e314cbb3f812fcfeb3f95797f1cf1bcfbae2
enuTest.java
|
54e221a4dfe879fe9165bc34517941c0dada6c8d |
09-May-2017 |
Aurimas Liutikas <aurimas@google.com> |
Fix broken android.view.DisabledTest. The test was calling setOnClickListener off the main thread. Test: ran manually and it now passes Bug: 38166715 Change-Id: I63777467a789c6a060b340d6b410ac2e744db678
isabledTest.java
|
b416297433c91ff6694fdf5ce41f7ab6f1ee346b |
05-May-2017 |
Abodunrinwa Toki <toki@google.com> |
Reject smart selection if outside original selection. - The aim is to be defensive and prefer to reject a selection if it is likely to be wrong. Test: bit FrameworksCoreTests:android.view.textclassifier.TextClassificationManagerTest Bug: 38019270 Change-Id: I35ebc84fb102373949366296434a31d899edfef3
extclassifier/TextClassificationManagerTest.java
|
70d41cd792cbbc1eb6b2c36be54cfcae7b53c03a |
02-May-2017 |
Abodunrinwa Toki <toki@google.com> |
TextClassifier: Append http:// to url intents that need one. Test: bit FrameworksCoreTests:android.view.textclassifier.TextClassificationManagerTest Bug: 36504599 Change-Id: I5008225a6a3df2d8e07e4a9ae0e340a6582f9e7b
extclassifier/TextClassificationManagerTest.java
|
e0b57893c68a685d287664df28467694a39e4432 |
28-Apr-2017 |
Abodunrinwa Toki <toki@google.com> |
TextClassifier: API rename getTextClassificationResult() -> classifyText() TextClassificationResult -> TextClassification Test: bit FrameworksCoreTests:android.view.textclassifier.TextClassificationManagerTest Bug: 37769880 Change-Id: I2d926e89058babf06bcff390bee3a45e965984e8
extclassifier/TextClassificationManagerTest.java
|
a2df6e5415d2481dfda96c07acb24c7898abd80a |
13-Apr-2017 |
Abodunrinwa Toki <toki@google.com> |
TextClassifierImpl: Fix empty locale list issue. Test: bit FrameworksCoreTests:android.view.textclassifier.TextClassificationManagerTest Bug: 37289966 Change-Id: Ib822f2cc2fbaeb67dcc06e1f9fea306ee1c8c9ef
extclassifier/TextClassificationManagerTest.java
|
65b25278ee00b3e8bd0486b4972478e7ac003fc5 |
13-Apr-2017 |
Abodunrinwa Toki <toki@google.com> |
Move TextClassificationManagerTest to coretests Test: bit FrameworksCoreTests:android.view.textclassifier.TextClassificationManagerTest Bug: 37296604 Change-Id: I8f53032dd63db18d98c6e26ee5689a5dafb3d98b
extclassifier/TextClassificationManagerTest.java
|
51efddbd3bb304de2dd47fa8cd1114ac555958bb |
05-Apr-2017 |
Alan Viverette <alanv@google.com> |
Remove unnecessary casts on calls to findViewById Just frameworks/ this time. More paths to come. Bug: 24137209 Test: make -j32 Change-Id: Iff27abd26fa43296ac2fff8f534fc6742d2ae80c
isabled.java
rawableBgMinSize.java
opupWindowVisibility.java
reDrawListener.java
isibility.java
isibilityCallback.java
|
46699675aa046423fba17c5ccac9d989e7b81908 |
30-Mar-2017 |
Tadashi G. Takaoka <takaoka@google.com> |
Remove supportsDismissingSelfWindow attribute of IME This partially reverts CL I0f6b130a7df57557e40b52a7b7ac00be965a17c3. Fixes: 34133139 Test: Confirm that unit test passed. adb install out/target/product/.../data/app/FrameworksCoreTests/FrameworksCoreTests.apk adb shell am instrument -w \ -e class android.view.inputmethod.InputMethodInfoTest \ com.android.frameworks.coretests/android.support.test.runner.AndroidJUnitRunner Change-Id: I2b94263b2a0bf330bf9973567fea2d35176754d7
nputmethod/InputMethodInfoTest.java
|
40034ccac189c8b629c0727c6c8c200a30ba2701 |
08-Mar-2017 |
Joachim Sauer <jsauer@google.com> |
Merge "Renaming Czech Republic to Czechia." am: 33bade08de am: 260b81aaf2 am: d06f548226 Change-Id: Ie7c7c3415738623c184e2e9e96d85cbe05cbfee7
|
260b81aaf2ebd64dff77943ba0870deaf9cfa607 |
08-Mar-2017 |
Joachim Sauer <jsauer@google.com> |
Merge "Renaming Czech Republic to Czechia." am: 33bade08de Change-Id: Ie76ebb1bd53eb4993f0d01c7d3b5ba7dae9c6504
|
aad8ae3e3d2befab6f800f62b90cd669b029ab60 |
01-Mar-2017 |
sergeyv <sergeyv@google.com> |
Move graphicstests to coretests Two reason for merge: 1. Currently graphicstests aren't runned as part of acpt 2. Separation was confusing: android.graphics package existed in both apks: frameworks & coretests. Test: refactoring CL. Change-Id: I0ade3ebbc2d06074ae81a2c390475f1f434dd873
ockView.java
|
45ded8f6ba72e3d68fb71a8febafbcee63877017 |
22-Feb-2017 |
Fredrik Roubert <roubert@google.com> |
Renaming Czech Republic to Czechia. Bug: 34964100 Test: ? Change-Id: Ifbf0a52d15e3d735404be49c6934775589ecdfd6
opupWindowVisibility.java
|
5084e356aca353ff290451edb6ba6c4d1823f355 |
06-Feb-2017 |
Aga Madurska <amad@google.com> |
Use correct APIs to detect conditions for round scrollbars. am: 99485ef841 am: 50bc6a1998 am: 65f351d923 Change-Id: I8ad9e04055409c6efb92d00f59660820f765944c
|
99485ef841aecccc1b40fc6a866e343ecd842045 |
31-Jan-2017 |
Aga Madurska <amad@google.com> |
Use correct APIs to detect conditions for round scrollbars. Bug: 34876394 Test: Performed manually. Change-Id: I9e690e99fd8d925c589ebd19d9c6754eeb63b1d8
iewAttachTest.java
|
9de95db4f28f88c37b1443d20b308ce02407fd74 |
19-Jan-2017 |
Chris Craik <ccraik@google.com> |
Replace invalidateChild/invalidateChildInParent Fixes: 34361503 Test: CTS: android.view.cts.ViewGroupTest APCT: android.view.ViewInvalidateTest Simplify and unify HW accelerated invalidate/damage codepaths, since both simply walk up to ViewRootImpl and schedule a traversal. Adds a new overridable method 'onDescendantInvalidated' for observing subtree rendering updates. Change-Id: I7ef1f914c3411317692451787b3810b23e019591
iewInvalidateTest.java
|
e12a6fff1400b57d307daa1af662a74eb2f1d261 |
11-Jan-2017 |
Tadashi G. Takaoka <takaoka@google.com> |
Add supportsDismissingSelfWindow attribute of IME When a virtual keyboard is shown on some configurations (e.g. Phone), the System UI may change the back navigation button to a different UI element in order to dismiss the virtual keyboard. Such UI modification is unnecessary when the virtual keyboard has a dismissing button on its own window. This new attribute hints the System UI that the virtual keyboard may have a UI element to dismiss itself. This will be also useful for Tablet System UI which may not show a navigation bar when a virtual keyboard is shown. Bug: 34133139 Test: Add unit test InputMethodInfoTest Change-Id: I0f6b130a7df57557e40b52a7b7ac00be965a17c3
nputmethod/InputMethodInfoTest.java
|
3f06c6de08b9e0c7ab1fd1774783ca355e994f06 |
09-Jan-2017 |
Chris Craik <ccraik@google.com> |
Revert "Revert "Fast-path for ViewGroup#invalidateChild, invalidate tests"" Bug: 33797688 This reverts commit 1cb8b08ae459fddc860e5863b0ec30a70682654e. Change-Id: I322b550d65d48be4a99faf1790d138d26a996d7e
iewInvalidateTest.java
|
686d972e1294eecaeb15db37a34c521cba0ac5a0 |
07-Jan-2017 |
Chris Craik <ccraik@google.com> |
Fix NPE in RenderNodeAnimator ALPHA when used outside ViewPropertyAnimator Bug: 33797688 Test: new RenderNodeAnimatorTest passes Other clients use RenderNodeAnimator now, so call ensureTransformationInfo to be safe. Change-Id: I837d6f5b00bb368d2bbf77b94d4c19a8426b9927
enderNodeAnimatorTest.java
|
c4946d4a0007e35866de1ae850423c43d7e37995 |
21-Dec-2016 |
Selim Cinek <cinek@google.com> |
Merge "Revert "Fast-path for ViewGroup#invalidateChild, invalidate tests""
|
1cb8b08ae459fddc860e5863b0ec30a70682654e |
21-Dec-2016 |
Selim Cinek <cinek@google.com> |
Revert "Fast-path for ViewGroup#invalidateChild, invalidate tests" This reverts commit f7505803eaf3b31bae81151535ce6c05c58712be. Change-Id: Ie7714360357e2baaf7723b8d992b3c6c4b0b9989
iewInvalidateTest.java
|
89eaa33e11d69ea11bcc88a26117985af0cb99ec |
21-Dec-2016 |
TreeHugger Robot <treehugger-gerrit@google.com> |
Merge "Fast-path for ViewGroup#invalidateChild, invalidate tests"
|
f7505803eaf3b31bae81151535ce6c05c58712be |
17-Dec-2016 |
Chris Craik <ccraik@google.com> |
Fast-path for ViewGroup#invalidateChild, invalidate tests Bug: 33460152 Test: new tests passing We spend a lot of time computing a damage rectangle that the ViewRootImpl ignores with HW acceleration. Skip all that with a fast path. Change-Id: Ia7447d1242cd5279be2ce34eead0cd813baffd33
iewInvalidateTest.java
|
795bd0fe93e8bb5214e22cd38aea6a9dc651604b |
17-Dec-2016 |
Chris Craik <ccraik@google.com> |
Fix ViewCaptureTest, Bitmap.sameAs Bug: 33702897 Test: tests added to android.graphics.cts.BitmapTest, all passing Change-Id: I41b06114929df3c0c9bf826c721a29630e8c5098
iewCaptureTest.java
|
64f5117b7edc174f57b087b3a9f97602e7980e02 |
19-Aug-2016 |
Sara Kato <sarakato@google.com> |
Create test for factor value of ScaleGesture. A ScaleGestureDectector is attached to an activity. A pinch and zoom action has been created, and mimics the action by first sending a down motion on the two points, which then moves to the supplied end coordinates in the number of steps (PINCH_STEP_COUNT). Bug: 30751698 Change-Id: Id654025f47dfc10d852e9f2eb428a969fc7de95c
inchZoomAction.java
caleGesture.java
caleGestureDetectorTest.java
|
8376f9eaa0bd41a9c7ce7ada4cb7c2cda28ef64c |
08-Jul-2016 |
Kirill Grouchnikov <kirillg@google.com> |
Move RemoteViewsTest to the right package RemoteViews is in android.widget and not android.view Bug: 29805243 Change-Id: I6210f60f60a21443d8a873c3a8e6f39d956ea123
emoteViewsTest.java
|
4d10db7fdd1dc86684f31ec582872072fb02c350 |
23-May-2016 |
Adrian Roos <roosa@google.com> |
Fix RemoteViewsTests Change-Id: I99d1f3b5521e3efad419074fede7eaef5707216d
emoteViewsTest.java
|
b37d44e26778bcaeb02a9b73997ffcb97ff7328f |
30-Mar-2016 |
sergeyv <sergeyv@google.com> |
Hide children in ViewGroup.createSnaphost via internal flag and add test for it. bug:27747923 Change-Id: I079b52b176b920bfa4c6749be31fbcd96a4dc42c
iewCaptureTest.java
iewCaptureTestActivity.java
|
7da889d81d2ff4c1704dc0a64389947fb30de5d8 |
17-Mar-2016 |
Adrian Roos <roosa@google.com> |
Don't copy Bitmaps when cloning RemoteViews Bug: 27385859 Fixes: 27385859 Change-Id: I9f0768b20e6e71d5366eb21df76c984bfe6989b1
emoteViewsTest.java
|
868d19b93b1e20c802a001c7304f8bcac5fe5114 |
08-Dec-2015 |
Yohei Yukawa <yukawa@google.com> |
Use BCP-47 LanguageTag in IME/Spell-Checker. The primary goal of this CL is to make it clear that BCP-47 is the expected format to annotate locale information for each {InputMethod, SpellCkecker}Subtype. In order to avoid possible compatibility issues, this CL introduce a new "languageTag" attribute instead of reusing existing "imeSubtypeMode" and "subtypeLocale" attributes. For IME developers, this CL changes nothing unless "languageTag" attribute is specified. To summarize: A: If only legacy locale-string is specified (existing IMEs/Spell-Checkers fall into this category): -> The system uses locale-string. B: If only LanguageTag is specified: -> The system uses LanguageTag. C: If both locale-string and languageTag are specified: -> The system uses LanguageTag. Legacy locale-string is ignored. For application developers, there should be some follow-ups CLs because even with this CL most likely they would still have to take care of previous versions of Android where: - Locale#forLanguageTag() (N/A in API Level 20 and prior) - Locale#toLanguageTag() (N/A in API Level 20 and prior) - InputMethodSubtype#getLocale() (Deprecated in N) - SpellCheckerSubtype#getLocale() (Deprecated in N) - InputMethodSubtype#getLanguageTag() (N/A in M and prior) - SpellCheckerSubtype#getLanguageTag() (N/A in M and prior) One idea would be is in the official support library to provide a utility method that takes care of above tasks and just returns a Locale object. If we had a utility method in the support library, probably not returning a Locale object from #getLanguageTag() would make sense. From performance point of view both existing legacy locale-string attribute and new LanguageTag attribute are just String objects that travel from XML manifest to system services to applications via IPCs. Hence there are no performance implications except for having one more String objects. Bug: 22858221 Change-Id: I6db107ad2afc7709167f7c4e5d24bd589ac8bd70
extservice/SpellCheckerSubtypeTest.java
|
0894319162a2a1f4260805938d4807c4ffcbcb0f |
05-Dec-2015 |
Yohei Yukawa <yukawa@google.com> |
Add subtypeId for SpellCheckerSubtype. What this CL actually does is just copying the existing concept "subtypeId" from InputMethodSubtype to SpellCheckerSubtype. To recap, the underlying problem is that the system has stored only the return value of SpellCheckerSubtype#hashCode() to track the set of enabled subtypes, and SpellCheckerSubtype#hashCode() has been implemented as Arrays.hashCode(new Object[] {locale, extraValue}), which is problematic because: - Spell checker developers cannot change "locale" and/or 'extraValue' if they want to keep enabled subtypes enabled. - Android Framework developers cannot change the hash function even when new fields are added if they want to keep enabled subtypes enabled. InputMethodSubtype has had the same issue, and what we did was introducing a concept "subtypeId", which allows IME developers to specify the return value of #hashCode(). For instance, suppose that a subtype X has already been used in production with the following attributes: - locale: "tl_PH" - extraValues: "key1=value1,key2=value2" With "subtypeId", you can change the attributes of subtype X without losing the enabled state of subtype X on devices as follows. - locale: "fil_PH" - extraValues: "key1=value1,key2=value2,key3=value3" - subtypeId: Arrays.hashCode(new Object[] { "tl_PH", "key1=value1,key2=value2"}) This CL also deprecates existing public constructor of SpellCheckerSubtype, which was probably published as a public API by mistake. Note that the constructor of SpellCheckerInfo class is @hide. Also there is no public API that receives SpellCheckerSubtype object instantiated by developers with custom data. Making developers to be able to instantiate SpellCheckerSubtype does not make sense right now. Bug: 11736916 Bug: 22858221 Change-Id: I98f05c1e9421c47a93769bc4a6fe11b678bc2509
extservice/SpellCheckerSubtypeTest.java
|
eae60ba5a4a39d59940e9749a4ad26281d016d03 |
04-Dec-2015 |
Yohei Yukawa <yukawa@google.com> |
Rewrite a fake language code "tl" in SpellChecker. With following CLs, we already have a special rewrite rule of "tl" to "fil" for IMEs that are targeting older versions of Android earlier than Lollipop that did not support three letter language codes and used "tl" (Tagalog) as the language string for "fil" (Filipino). - 92280cd309b0f5967dd253280962d8581844db89 [1] - ed65bc0c62ca99a118057db7ad54c4ccc14d52d0 [2] [1]: I94f203bddceb9c87710cb187cc3cc0ee6d9092a5 [2]: Ica9cd2baac002c406f92331aadd7725d7424046a With this CL, we have the same rewrite rule for spell checker services. Bug: 20696126 Change-Id: I0af0f520a15337e33973391c9965364e3ae1ee4c
extservice/SpellCheckerSubtypeTest.java
|
658c29e86ef7c2d4c3a3fa8ebad5726d692e7c68 |
04-Dec-2015 |
Yohei Yukawa <yukawa@google.com> |
retry: Add @hide SpellCheckerSubtype#getLocaleObject(). This is the 2nd try of I39dc0c310158ad23ba6c987efce07deaf30ce693. This is a mechanical refactoring with no behavior change. With this CL, InputMethodSubtype and SpellCheckerSubtype have the same getLocaleObject() hidden API, which makes it easy to share the logic in subsequent CLs. No behavior change is intended. Bug: 11736916 Bug: 20696126 Bug: 22858221 Change-Id: I51be014c752b736a808e2b0d56e664941a218a2f
extservice/SpellCheckerSubtypeTest.java
|
80a918c3bd2de754027b7e7dffdd38ed138b69ce |
04-Dec-2015 |
Yohei Yukawa <yukawa@google.com> |
Revert "Add @hide SpellCheckerSubtype#getLocaleObject()." This reverts commit e3c761c87efdee7c28461559015fa76602d4605a. Previous CL unintentionaly contained behavior change. Change-Id: I1e350f224df815e991d9f42ac4145ecfc5c1c8b0
extservice/SpellCheckerSubtypeTest.java
|
e3c761c87efdee7c28461559015fa76602d4605a |
04-Dec-2015 |
Yohei Yukawa <yukawa@google.com> |
Add @hide SpellCheckerSubtype#getLocaleObject(). This is a mechanical refactoring with no behavior change. With this CL, InputMethodSubtype and SpellCheckerSubtype have the same getLocaleObject() hidden API, which makes it easy to share the logic in subsequent CLs. Bug: 11736916 Bug: 20696126 Bug: 22858221 Change-Id: I39dc0c310158ad23ba6c987efce07deaf30ce693
extservice/SpellCheckerSubtypeTest.java
|
9534ae185809b69e153736287acbf9c8e52e7492 |
04-Dec-2015 |
Yohei Yukawa <yukawa@google.com> |
Add SpellCheckerSubtypeTest. Before introducing behavior changes, this CL adds SpellCheckerSubtypeTest to make the current behavior clear. Bug: 11736916 Bug: 20696126 Bug: 22858221 Change-Id: Ied18580f31497156510e1b785adfc248683ba94d
extservice/SpellCheckerSubtypeTest.java
|
bea0c7daa6611d8b96e1271f8854f500a87342fc |
01-Sep-2015 |
Alan Viverette <alanv@google.com> |
Keep local run queue in View to avoid posting to wrong thread Previously any call to post() while a view was detached would stash the runnable on a thread-local RunQueue. If the post() call happened off the UI thread to which the view would later be attached, this would result in the runnable either failing to run or running on some other UI thread. Bug: 22828132 Change-Id: I5289ee91ea4b56c45f003a387a9f7f0e6dc050f9
andlerActionQueueTest.java
|
35f743713dfeb4e9138fee0f7bb6a7ee1da53521 |
13-Aug-2015 |
Yohei Yukawa <yukawa@google.com> |
Move IME related unit tests under core/tests/coretests/. This CL moves existing (non-CTS) unit tests used for input method under core/tests/coretests/ to reduce the maintenance cost. Although some package names and import lines are updated to be consistent with new file locations, test cases are are kept to be the same. Change-Id: I4efce90b232458212ac48292dc01b812a9e851e5
nputmethod/CursorAnchorInfoTest.java
nputmethod/InputMethodSubtypeArrayTest.java
nputmethod/InputMethodSubtypeTest.java
nputmethod/SparseRectFArrayTest.java
|
7bee548aa64436f0bfe51cfb0b8e2d9367569464 |
05-Aug-2015 |
Abodunrinwa Toki <toki@google.com> |
Suppress flaky framework core tests. Change-Id: I61f8f5ec7cd73cff1bebe5f606cb41681881d1de
lobalFocusChangeTest.java
|
f90177629a5b69ca3a80466c0ab55abfeb6d26b2 |
01-Aug-2015 |
Abodunrinwa Toki <toki@google.com> |
Turn off failing tests in FrameworksCoreTests. We want a green state so we can confidence in tests we write going forward. Change-Id: I2c8db848897b56d0c64202ad28861eb4a7572e07
elocityTest.java
|
7672ef046b40cc5a56fd36f152f848654c55a096 |
16-May-2014 |
Jeff Davidson <jpd@google.com> |
Fix inconsistent package name. Change-Id: I6dfa0ded4309ae9e3f8ab73d96e6ccb521beb7c4
elocityTest.java
|
05f692e8050c3650ec123b2361143a121e2e7d4b |
12-Mar-2012 |
Fabrice Di Meglio <fdimeglio@google.com> |
Merge "Make Gravity RTL APIs public"
|
e8dc07dcdb983d5d3999b16c2a49ddee4bdb942c |
10-Mar-2012 |
Fabrice Di Meglio <fdimeglio@google.com> |
Make Gravity RTL APIs public - also move unit tests to CTS - also small improvement for View Javadoc Change-Id: I166d5a10f4a00f1b46c90468c8b11906b438e1ea
ravityTest.java
|
f76a50ce8fdc6aea22cabc77b2977a1a15a79630 |
09-Mar-2012 |
Ken Wakasa <kwakasa@google.com> |
Fix obvious typos under frameworks/base/core Change-Id: Ia5fc3db1bb51824e7523885553be926bcc42d736
iewAttachTest.java
|
00aabf7d187bc05408199bd687a538b2e68bdc17 |
21-Jul-2011 |
Svetoslav Ganov <svetoslavganov@google.com> |
Touch exploration state set to clients asynchronously and depended on talking service being enabled. 1. Upon registration of an accessibility client the latter received only the accessiiblity state and waiting for the touch exploration state to be sent by the system in async manner. This led the very first check of touch exploration state is checked a wrong value to be reported. Now a state of the accessibility layer is returned to the client upon registration. 2. Removing the dependency on talking accessibility service to be enabled for getting into touch exploration mode. What if the user wants to use an accessibility service that shows a dialog with the text of the touched view? bug:5051546 Change-Id: Ib377babb3f560929ee73bd3d8b0d277341ba23f7
ccessibility/RecycleAccessibilityEventTest.java
|
c0053223bedf33581b0830fb87be32c1f26e5372 |
13-Jun-2011 |
Fabrice Di Meglio <fdimeglio@google.com> |
Add View.getResolvedLayoutDirection() - update Callback2 interface - update Gravity.getAbsoluteGravity() and Gravity.apply() to be more generic by changing "boolean isRtl" parameter to "int layoutDirection" - fix BiDiTests for RTL FrameLayout Change-Id: I97bb456c22d5fd3ecb34f08564ce4dbed37e7459
ravityTest.java
|
9e3b002d3f9141d54948a65e0330fdcd09e75a30 |
07-Jun-2011 |
Fabrice Di Meglio <fdimeglio@google.com> |
Rename Gravity BEFORE/AFTER to START/END - following spec proposal for having CSS3 like naming Change-Id: Id5e316a2d9b54b9f20bbcb168fea6a3a83882e1b
ravityTest.java
|
c05aace48af1104dd917e8b5ad2dd76a02645ada |
28-May-2011 |
Fabrice Di Meglio <fdimeglio@google.com> |
Fix default for getAbsoluteGravity() - remove LEFT as default, keep it as it is given (because apply() is doing CENTER_HORIZONTAL) - update unit tests Change-Id: I294621c5d5c7d675a715c15cb10947d026539b21
ravityTest.java
|
6a03640539405afbdefe72894759281b98aa6e6f |
23-May-2011 |
Fabrice Di Meglio <fdimeglio@google.com> |
Add support for Gravity BEFORE and AFTER - update layouts - add Callback2 for RTL aware Drawable - add unit tests Change-Id: Ic64d0291e262170aff7297c6580b0b422eaa8d89
ravityTest.java
|
d21e7b5d542cc9e93526182272c2bdc995c816fb |
28-Apr-2011 |
Conley Owens <cco3@android.com> |
am c4791bd6: Merge commit \'5e3562a5\' into m * commit 'c4791bd65cdf2e487c87da0d863140337e5141cb': onDetachedFromWindow is called before onAttachedToWindow
|
696cba573e651b0e4f18a4718627c8ccecb3bda0 |
29-Mar-2011 |
Adam Powell <adamp@google.com> |
Refactor menu internals. In the old world, MenuBuilder and MenuItemImpl were responsible for generating views for any presentation of a menu. MenuBuilder needed to know any types and resources involved, and the implied caching semantics did not work well for menus presented within AdapterViews. In the new world, the MenuPresenter interface takes over the responsibility of generating views or adapters for menu items. MenuBuilder/MenuItemImpl still provide extra metadata tracking used by these presenters. Mutiple presenters may be active for a single menu at a time. All of this remains internal framework implementation details. BaseMenuPresenter provides a simple base for presenters that treats the host MenuView more like an AdapterView. This allows for less rebuilding of views when items are added/removed. Callbacks have been restructured. Calls that relate to the menu itself are still handled by MenuBuilder.Callback, but calls related to a specific presentation of a menu are handled by MenuPresenter.Callback objects attached to a MenuPresenter. Also add API to programmatically set divider options for LinearLayout and hidden API so that ActionBarView can have finer-grained control over divider placement. Change-Id: I2265b86a084279822908021aec20dfbadc1bb56b
enu/MenuLayoutLandscapeTest.java
enu/MenuLayoutPortraitTest.java
enu/MenuScenario.java
enu/MenuWith1ItemTest.java
|
505bd0d60d26811ac1e61d2c39a2d5a995d2254d |
13-Apr-2011 |
Martin Wallgren <martin.wallgren@sonyericsson.com> |
onDetachedFromWindow is called before onAttachedToWindow Multiple threads are adding messages about the current state of the views to the main looper. This can cause onDetachedFromWindow to be posted on the looper before onAttachedToWindow. This change will make sure to only dispatch onDetachedFromWindow if we have previously dispatched onAttachToWindow. Change-Id: Ibc7cbcafb098bc000d2ef5480d2110d3fff4d55a
iewAttachTest.java
iewAttachTestActivity.java
iewAttachView.java
|
f76c56bcaa9df1d1afa711177f813dc63f399795 |
27-Jul-2010 |
Brett Chabot <brettchabot@android.com> |
Frameworks core tests size cleanup. Adjust test sizes to better align with the test's runtime. Also do some import cleanup and migrate to non-deprecated classes. Change-Id: Ib2b190ddbe84f9ea8f5d6d3604bd4855d00df7a9
ocusFinderTest.java
ccessibility/RecycleAccessibilityEventTest.java
|
b1110149cccc3b99e59ead34ca46e5ac026f6db9 |
13-May-2010 |
The Android Open Source Project <initial-contribution@android.com> |
merge from open-source master Change-Id: I88a580162b34a80d1e3e7987b7a301c253afa0e8
|
1a44d5dcabc18cd5ef111f732ccff91683a1a093 |
13-Jan-2010 |
Neal Nguyen <tommyn@google.com> |
Phase 2 of test cleanup: moving test files from AndroidTests closer to their sources. Most of these are file moves; a couple notable exceptions are the changes due to the move, and fixing up test code: - database/DatabaseCursorTest.java - database/DatabaseStatementTest.java - net/UriTest.java
reateViewTest.java
nflateTest.java
enuTest.java
|
1d3165f10b12165f02b7015ac1a817c5f60e6399 |
12-Jan-2010 |
Neal Nguyen <tommyn@google.com> |
Phase 2 of test file cleanup: relocating test files from FrameworkTest closer to their sources in core. In addition to the file moves, the package names of the tests have been updated and adjusted to match their new locations.
igCache.java
igCacheTest.java
itmapDrawable.java
isabled.java
isabledLongpressTest.java
isabledTest.java
rawableBgMinSize.java
rawableBgMinSizeTest.java
ocusFinderTest.java
lobalFocusChange.java
lobalFocusChangeTest.java
nclude.java
ncludeTest.java
istContextMenu.java
ongpress.java
ongpressTest.java
erge.java
ergeTest.java
utateDrawable.java
utateDrawableTest.java
opupWindowVisibility.java
reDrawListener.java
emoteViewsActivity.java
unQueue.java
unQueueTest.java
etTagsTest.java
tubbedView.java
iewGroupChildren.java
iewGroupChildrenTest.java
iewStubTest.java
isibility.java
isibilityCallback.java
isibilityCallbackTest.java
isibilityTest.java
eroSized.java
eroSizedTest.java
ccessibility/RecycleAccessibilityEventTest.java
enu/MenuLayout.java
enu/MenuLayoutLandscape.java
enu/MenuLayoutLandscapeTest.java
enu/MenuLayoutPortrait.java
enu/MenuLayoutPortraitTest.java
enu/MenuScenario.java
enu/MenuWith1Item.java
enu/MenuWith1ItemTest.java
|
22e31e5b609136d5bf7d77b1dccd6b042b83ebdf |
07-Jan-2010 |
Neal Nguyen <tommyn@google.com> |
Moving framework core tests closer to their source files. Phase 2 of test case cleanup; distributing CoreTests files closer to their respective sources under frameworks.
ocusFinderTest.java
iewGroupAttributesTest.java
|