summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSvetoslav Ganov <svetoslavganov@google.com>2011-07-17 11:07:53 -0700
committerSvetoslav Ganov <svetoslavganov@google.com>2011-07-17 11:12:49 -0700
commit47b779b9f9c2e7948ae8d45ea07a10f1ad07d135 (patch)
treed97999f0beebc47606b982967f9286a517b714e5
parent0f55cc33f658b2793a12d609a0989348077324a4 (diff)
downloadframeworks_base-47b779b9f9c2e7948ae8d45ea07a10f1ad07d135.zip
frameworks_base-47b779b9f9c2e7948ae8d45ea07a10f1ad07d135.tar.gz
frameworks_base-47b779b9f9c2e7948ae8d45ea07a10f1ad07d135.tar.bz2
Scroll events should indicate whether or not they have pixel data.
1. Updated all integet properties of AccessibilityRecord to be set to -1 so this is a clue to the client that this property is irrelevant for the current event type. bug:5031598 Change-Id: Ifedc15bf2249847cbc6cbcb83f5732e17b8b2903
-rw-r--r--core/java/android/view/accessibility/AccessibilityRecord.java36
1 files changed, 18 insertions, 18 deletions
diff --git a/core/java/android/view/accessibility/AccessibilityRecord.java b/core/java/android/view/accessibility/AccessibilityRecord.java
index f4d5e89..210106f 100644
--- a/core/java/android/view/accessibility/AccessibilityRecord.java
+++ b/core/java/android/view/accessibility/AccessibilityRecord.java
@@ -50,7 +50,7 @@ import java.util.List;
*/
public class AccessibilityRecord {
- private static final int INVALID_POSITION = -1;
+ private static final int UNDEFINED = -1;
private static final int PROPERTY_CHECKED = 0x00000001;
private static final int PROPERTY_ENABLED = 0x00000002;
@@ -68,15 +68,15 @@ public class AccessibilityRecord {
boolean mSealed;
int mBooleanProperties;
- int mCurrentItemIndex;
- int mItemCount;
- int mFromIndex;
- int mToIndex;
- int mScrollX;
- int mScrollY;
-
- int mAddedCount;
- int mRemovedCount;
+ int mCurrentItemIndex = UNDEFINED;
+ int mItemCount = UNDEFINED;
+ int mFromIndex = UNDEFINED;
+ int mToIndex = UNDEFINED;
+ int mScrollX = UNDEFINED;
+ int mScrollY = UNDEFINED;
+
+ int mAddedCount= UNDEFINED;
+ int mRemovedCount = UNDEFINED;
int mSourceViewId = View.NO_ID;
int mSourceWindowId = View.NO_ID;
@@ -681,14 +681,14 @@ public class AccessibilityRecord {
void clear() {
mSealed = false;
mBooleanProperties = 0;
- mCurrentItemIndex = INVALID_POSITION;
- mItemCount = 0;
- mFromIndex = 0;
- mToIndex = 0;
- mScrollX = 0;
- mScrollY = 0;
- mAddedCount = 0;
- mRemovedCount = 0;
+ mCurrentItemIndex = UNDEFINED;
+ mItemCount = UNDEFINED;
+ mFromIndex = UNDEFINED;
+ mToIndex = UNDEFINED;
+ mScrollX = UNDEFINED;
+ mScrollY = UNDEFINED;
+ mAddedCount = UNDEFINED;
+ mRemovedCount = UNDEFINED;
mClassName = null;
mContentDescription = null;
mBeforeText = null;