summaryrefslogtreecommitdiffstats
path: root/core/tests
Commit message (Collapse)AuthorAgeFilesLines
* Merge "Refactor Bluetooth Profile."Jaikumar Ganesh2011-06-141-2/+14
|\
| * Refactor Bluetooth Profile.Jaikumar Ganesh2011-06-141-2/+14
| | | | | | | | | | | | | | | | Move connect / disconnect / set and get priority functions down the interface as they are not generic enough for all profiles. Change-Id: I2656e1bdbc8046c53bb0dfbd9172f5f10b57aa7d
* | Fix external storage bug for BT stress testsEric Rowe2011-06-143-2/+3
| | | | | | | | Change-Id: Ib6cfe80449037cfee5072145fb3a4ae0e79abf06
* | Merge "Add View.getResolvedLayoutDirection()"Fabrice Di Meglio2011-06-141-1/+3
|\ \
| * | Add View.getResolvedLayoutDirection()Fabrice Di Meglio2011-06-141-1/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | - 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
* | | Rename Calendar.java to CalendarContract.javaRoboErik2011-06-141-9/+9
|/ / | | | | | | Change-Id: Iadb22f39d1cb3d57d1636360df24ef484a9edb58
* | Merge "Final polish of the interrogation feature."Svetoslav Ganov2011-06-131-27/+109
|\ \ | |/ |/|
| * Final polish of the interrogation feature.Svetoslav Ganov2011-06-101-27/+109
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 1. Added a new event type for notifying client accessibilitiy services for changes in the layout. The event is fired at most once for a given time frame and is delivered to clients only if it originates from the window that can be interrogated. 2. Exposed the findByText functionality in AccessibilityNodeInfo. This is very useful for an accessibility service since it allows searching for something the user knows is on the screen thus avoiding touch exploring the content. Touch exploring is excellent for learning the apps but knowing them search is much faster. 3. Fixed a bug causing an accessibiliby service not to receive the event source in case of more than one service is registered and one of them does not have paermission to interrogate the window. The same event was dispatched to multiple services but if one of them does not have interrogation permission the event is modified to remove the source causing subsequent serivices not to get the later. 4. Moved the getSource setSource methods to AccessibilityRecord instead in AccessibilityEvent. 5. Hiden some protected members in AccessibilityRecod which should not be made public since getters exist. 6. Added the View absolute coordinates in the screen to AccessibilityNodeInfo. This is needed for fast computation of relative positions of views from accessibility - common use case for the later. 7. Fixed a couple of marshalling bugs. 8. Added a test for the object contract of AccessibilityNodeInfo. Change-Id: Id9dc50c33aff441e4c93d25ea316c9bbc4bd7a35
* | Merge "Update Configuration for renaming and fixes"Fabrice Di Meglio2011-06-131-57/+57
|\ \
| * | Update Configuration for renaming and fixesFabrice Di Meglio2011-06-091-57/+57
| |/ | | | | | | | | | | | | | | - rename layoutDirection to textLayoutDirection - rename constants for being clear that they cannot be used (work in progress) - fix a few issues concerning default switch case and relation to Locale Change-Id: Icfe9a9b5c0d1c0e28e5a893549b437fc4fa5df82
* | Growable NetworkStats object instead of builder.Jeff Sharkey2011-06-111-15/+42
|/ | | | | | | | | NetworkStats now grows in place with arraycopy() instead of callers needing to know record count a priori. Better growth calculation for both NetworkStats and NetworkStatsHistory; 50% each time. Better estimates of buckets needed in calling services. Change-Id: I3adbffa0b7407612cc6349d9135a8b4eb63cd440
* Merge "Add Configuration.getLayoutDirectionFromLocale()"Fabrice Di Meglio2011-06-091-0/+198
|\
| * Add Configuration.getLayoutDirectionFromLocale()Fabrice Di Meglio2011-06-091-0/+198
| | | | | | | | | | | | | | - returns LAYOUT_DIRECTION_UNDEFINED / LAYOUT_DIRECTION_LTR / LAYOUT_DIRECTION_RTL depending on the Locale - add unit tests Change-Id: I4372734eb011cbf6270f39ba815e696b04f2352f
* | Invalid access to AccessibilityInteractionControllerSvetoslav Ganov2011-06-091-3/+12
| | | | | | | | | | | | | | | | | | | | | | | | 1. The Interaction connection checks if the ViewAncestor is valid and posts a message to be processed on the UI thread. The code in the UI thread did not check if the mView was valid. Added this check. 2. Added a faster sync mechanism in the test for getting the source of the last access event. Change-Id: I9982b6592f5f44a68a67df40f37c063a3ba62993
* | Persist network stats using AtomicFile.Jeff Sharkey2011-06-091-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | Implements read/write of network stats using AtomicFile, along with magic number and versioning. Stores in "/data/system/netstats.bin" for now. Tests to verify that stats are persisted across a simulated reboot, and to verify that TEMPLATE_WIFI is working. Fixed bug where kernel counters rolling backwards would cause negative stats to be recorded; now we clamp deltas at 0. Change-Id: I53bce26fc8fd3f4ab1e34ce135d302edfa34db34
* | Compute range-based usage in NetworkStatsHistory.Jeff Sharkey2011-06-071-2/+109
| | | | | | | | | | | | | | | | | | | | | | When given a start/end range, interpolate between buckets to return the total network usage. Used to summarize detailed UID stats. Method to combine NetworkStatsHistory regardless of bucket size. Used to combine all histories matching a template. Added tests for both methods. Change-Id: Ia463910c0ecf7cf08dcf97c658ad99742bd6b882
* | Map network identity using ConnectivityService.Jeff Sharkey2011-06-071-13/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Instead of deriving network identity based on raw subsystem broadcasts, listen for updates from ConnectivityService. Added atomic view of all active NetworkState, and build map from "iface" to NetworkIdentity set for stats tracking. To avoid exposing internal complexity, INetworkStatsService calls use general templates. Added TelephonyManager mapping to classify network types using broad labels like "3G" or "4G", used to drive templates. Cleaned up Objects and Preconditions. Change-Id: I1d4c1403f0503bc3635a59bb378841ba42239a91
* | Use external/mockwebserver in frameworks/baseJesse Wilson2011-06-074-14/+14
|/ | | | Change-Id: Ifb45671e3e7256692c74587984ee5fe1d0eca181
* Interrogation of the view hierarchy from an AccessibilityService.Svetoslav Ganov2011-06-065-0/+634
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 1. Views are represented as AccessibilityNodeInfos to AccessibilityServices. 2. An accessibility service receives AccessibilityEvents and can ask for its source and gets an AccessibilityNodeInfo which can be used to get its parent and children infos and so on. 3. AccessibilityNodeInfo contains some attributes and actions that can be performed on the source. 4. AccessibilityService can request the system to preform an action on the source of an AccessibilityNodeInfo. 5. ViewAncestor provides an interaction connection to the AccessibiltyManagerService and an accessibility service uses its connection to the latter to interact with screen content. 6. AccessibilityService can interact ONLY with the focused window and all calls are routed through the AccessibilityManagerService which imposes security. 7. Hidden APIs on AccessibilityService can find AccessibilityNodeInfos based on some criteria. These API go through the AccessibilityManagerServcie for security check. 8. Some actions are hidden and are exposes only to eng builds for UI testing. Change-Id: Ie34fa4219f350eb3f4f6f9f45b24f709bd98783c
* Rename Gravity BEFORE/AFTER to START/ENDFabrice Di Meglio2011-06-061-4/+4
| | | | | | - following spec proposal for having CSS3 like naming Change-Id: Id5e316a2d9b54b9f20bbcb168fea6a3a83882e1b
* Bluetooth: correcting return value from cancelDiscoveryAlbert Mojir2011-06-021-2/+1
| | | | | | | BluetoothAdapter.cancelDiscovery was previously always returning false. Change-Id: Ic1fd134d4b710438d95c5b8ca009104529dd1bf5
* Collect historical network stats.Jeff Sharkey2011-06-012-3/+214
| | | | | | | | | | | | | | | | | | Periodically records delta network traffic into historical buckets to support other services, such NetworkPolicyManager and Settings UI. Introduces NetworkStatsHistory structure which contains sparse, uniform buckets of data usage defined by timestamps. Service periodically polls NetworkStats and records changes into buckets. It only persists to disk when substantial changes have occured. Current parameters create 4 buckets each day, and persist for 90 days, resulting in about 8kB of data per network. Only records stats for "well known" network interfaces that have been claimed by Telephony or Wi-Fi subsystems. Historical stats are also keyed off identity (such as IMSI) to support SIM swapping. Change-Id: Ia27d1289556a2bf9545fbc4f3b789425a01be53a
* Merge "Move bluetooth tests to their own package."Brett Chabot2011-06-018-353/+55
|\
| * Move bluetooth tests to their own package.Brett Chabot2011-06-018-353/+55
| | | | | | | | | | | | Bug 4501764 Change-Id: Id65de5d96516720e75dfbb5d522f465187e73913
* | Removed unused service declaration from core tests.Svetoslav Ganov2011-05-311-6/+0
| | | | | | | | | | | | bug:4513413 Change-Id: I722655a0840762a90e581e57b7890ccc52174a0c
* | Fix default for getAbsoluteGravity()Fabrice Di Meglio2011-05-271-12/+12
|/ | | | | | | - remove LEFT as default, keep it as it is given (because apply() is doing CENTER_HORIZONTAL) - update unit tests Change-Id: I294621c5d5c7d675a715c15cb10947d026539b21
* Merge "Add support for Gravity BEFORE and AFTER"Fabrice Di Meglio2011-05-271-0/+72
|\
| * Add support for Gravity BEFORE and AFTERFabrice Di Meglio2011-05-271-0/+72
| | | | | | | | | | | | | | | | - update layouts - add Callback2 for RTL aware Drawable - add unit tests Change-Id: Ic64d0291e262170aff7297c6580b0b422eaa8d89
* | Tracking merge of dalvik-dev to masterBrian Carlstrom2011-05-272-4/+107
|/ | | | | | | | | | | | | | | Adapt to change in the way MockWebServer sets up CONNECT proxies. git cherry-pick --no-commit c7e2feee5e7908a019a0de91123c1feb9bdc38bc React to move of Base64 in libcore git cherry-pick --no-commit 119f7ebdd1f8df3a8ff8e3b8056bff725d569253 Expose and document android.net.HttpResponseCache. git cherry-pick --no-commit 7b73f0fdb8c032a65c55610541d66385bd8bcbe6) make update-api Change-Id: Ieb48b304ea38ee8c2ec01e860d99b1404583889e
* APIs to profile network usage for current UID.Jeff Sharkey2011-05-211-0/+97
| | | | | | | | | | | | | | | Added startDataProfiling() and stopDataProfiling() to TrafficStats, which can be used by apps to measure network usage delta between two points in time. Currently takes two NetworkStats snapshots and returns delta, which will eventually include tag-level granularity. Added tests for NetworkStats delta subtraction. Added NMS.getNetworkStatsUidDetail() that returns stats for specific UID. Always gives stats access for the calling UID, otherwise enforces that caller has permission. Fix readSingleLongFromFile(), since /proc/ files don't have well-defined lengths. Change-Id: Ic5b6414d8effbd66846e275b00d4b8a82c74589d
* Rename ViewRoot to ViewAncestor.Joe Onorato2011-05-042-2/+2
| | | | | | ViewRoot is about to be a new public class for poking at ViewAncestor. Change-Id: Ie95d707c6d8bbb48f78d093d7b2667851812a7d5
* resolved conflicts for merge of db46fa25 to masterRobert Greenwalt2011-05-022-17/+19
|\ | | | | | | Change-Id: I8df9d5d07588fbd70e417dae567be26f645b74b6
| * am a47c4019: Merge "Add RouteInfo objects for tracking routes." into ↵Robert Greenwalt2011-05-022-17/+19
| |\ | | | | | | | | | | | | | | | | | | honeycomb-LTE * commit 'a47c40193fcbe9ca07facea78b2828afdae5e025': Add RouteInfo objects for tracking routes.
| | * Add RouteInfo objects for tracking routes.Robert Greenwalt2011-05-022-17/+19
| | | | | | | | | | | | | | | | | | | | | Used to have list of gateways for default routes, but general static routes should be supported. Change-Id: I01730142c6139f2b833b9d48f5381d2d320b69f6
* | | am dddaa56f: Merge commit \'b737647d\' (Scrolling using arrow keys with ↵Conley Owens2011-05-024-2/+130
|\ \ \ | |/ / | | | | | | | | | | | | | | | padding) into m * commit 'dddaa56f793ad9ecb4e20df746f562ac7f24d158': Scolling using arrow keys with padding
| * | Merge commit 'b737647d' (Scrolling using arrow keys with padding) into mConley Owens2011-04-294-2/+130
| |\ \ | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: core/java/android/widget/ScrollView.java Change-Id: I1cfd3f7091e92793ce9fa048a09ae08a04c10c80
| | * \ Merge "Scolling using arrow keys with padding"Conley Owens2011-04-294-2/+130
| | |\ \
| | | * | Scolling using arrow keys with paddingMattias Petersson2011-04-074-2/+130
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | It was impossible to reach the end of a large test when scrolling down using the arrowkeys when the ScrollView had padding. A common example of this would be an AlertDialog with a text that is too long to fit on the screen. Change-Id: I55464290a0cdeabde83ccccc76fe8d015ae57a8d
* | | | | Merge commit 'f395e304' into mConley Owens2011-05-021-0/+46
|\ \ \ \ \ | |/ / / / | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: core/tests/coretests/src/android/text/TextUtilsTest.java Change-Id: I7439f7f80cf91ff654c0ddd79c3e6b3808ba4784
| * | | | am 19653c64: am 425db473: Merge "CHAR_SEQUENCE_CREATOR cannot handle null ↵Conley Owens2011-04-291-0/+46
| |\ \ \ \ | | |/ / / | | | | | | | | | | | | | | | | | | | | | | | | | string" * commit '19653c6440eaf7328ecbc01c3ca6d7a910906484': CHAR_SEQUENCE_CREATOR cannot handle null string
| | * | | Merge "CHAR_SEQUENCE_CREATOR cannot handle null string"Conley Owens2011-04-291-0/+46
| | |\ \ \
| | | * | | CHAR_SEQUENCE_CREATOR cannot handle null stringMartin Wallgren2011-04-071-0/+46
| | | |/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | TextUtils.writeToParcel can handle null as input CharSequence but createFromParcel will throw NullPointerException. Transforming to and from parcel should handle null in the same way. Change-Id: I707ea9be2091d2655c5f63eaa57c5674befa5ad3
* | | | | am c4791bd6: Merge commit \'5e3562a5\' into mConley Owens2011-04-275-0/+183
|\ \ \ \ \ | |/ / / / | | | | | | | | | | | | | | | * commit 'c4791bd65cdf2e487c87da0d863140337e5141cb': onDetachedFromWindow is called before onAttachedToWindow
| * | | | Merge commit '5e3562a5' into mConley Owens2011-04-275-0/+183
| |\ \ \ \ | | |/ / / | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: core/java/android/view/ViewRoot.java Change-Id: Idd1eb8309e169eae2de3838f7969606df8097b87
| | * | | am a538b4a2: Merge "onDetachedFromWindow is called before onAttachedToWindow"Conley Owens2011-04-275-0/+183
| | |\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | * commit 'a538b4a206c54ef763dab4da00990a8991425e77': onDetachedFromWindow is called before onAttachedToWindow
| | | * | | onDetachedFromWindow is called before onAttachedToWindowMartin Wallgren2011-04-135-0/+183
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* | | | | | Refactor menu internals.Adam Powell2011-04-194-39/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* | | | | | am 37677849: am 64c42cae: Rename HierarchicalStateMachine and ↵Wink Saville2011-04-181-163/+213
|\ \ \ \ \ \ | |/ / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | HierarchicalState to StateMachine and State. * commit '37677849998e6c9a39afe0a730b2f0131a371f3b': Rename HierarchicalStateMachine and HierarchicalState to StateMachine and State.
| * | | | | am 64c42cae: Rename HierarchicalStateMachine and HierarchicalState to ↵Wink Saville2011-04-181-163/+213
| |\ \ \ \ \ | | | |_|_|/ | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | StateMachine and State. * commit '64c42cae4482fe0157e977b8ddd0f2c2436b3f31': Rename HierarchicalStateMachine and HierarchicalState to StateMachine and State.
| | * | | | Rename HierarchicalStateMachine and HierarchicalState to StateMachine and State.Wink Saville2011-04-181-163/+213
| | | | | | | | | | | | | | | | | | | | | | | | Change-Id: Ib4b33894da75f5f156066092fb145b478e52f7d7