summaryrefslogtreecommitdiffstats
path: root/core/tests
Commit message (Collapse)AuthorAgeFilesLines
* Address API review comments.Wei Wang2014-05-293-59/+62
| | | | | | | | | | | | | | | | 1. Moved le stuff to it's subpackage. Remove BluetoothLe for all classes except *Scanner, *ScanSetting, *Advertiser and *AdvertiseSettings. 2. Make all callbacks abstract classes instead of interfaces. 3. Moved AdvertisementData and ScanRecord out and removed AdvertiseBaseData 4. Removed newBuild and use new Builder for all builders. 5. Using setxxx in builders. 6. Misc other changes. Fixes b/15140940 Change-Id: I32ae3d24a9491baf96048040b5ac78f6f731e468 NO_SQ: multi-project submit
* Remove unnecessary internal lockYohei Yukawa2014-05-221-14/+14
| | | | | | | | | | | | | | | | | | | | | Previously, InputMethodSubtypeSwitchingController has relied on its own internal lock for #getNextInputMethod and class has to be invalidated whenever InputMethodManagerService#mMethodMap is updated, any method of InputMethodSubtypeSwitchingController should be called under the global lock of InputMethodManagerService#mMethodMap. As a consequence, we can conclude that InputMethodSubtypeSwitchingController does not need its own internal lock. This CL also adds additional synchronization blocks into the constructor of InputMethodManagerService to address the existing inconsistency that methods with *Locked suffix are called without the lock actually. BUG: 7043015 Change-Id: I9d4d3d7232c984432185c10c13fb726a6158cac8
* Style fix and dead code removalYohei Yukawa2014-05-211-6/+6
| | | | | | | | This CL does not change the existing behavior. Smarter language switching will be coverted by subsequent CLs. BUG: 7043015 Change-Id: I281a33191d44be448492c2b74760cb8680719124
* Fix build.Lorenzo Colitti2014-05-202-6/+6
| | | | Change-Id: I5c09a406b6c43318cea600171b8dd25eeeffa673
* Move IP config from WifiConfiguration to IpConfiguration.Jaewan Kim2014-05-202-8/+8
| | | | | | | | | This is so that Ethernet can use it in the future. Bug: 7606609 Bug: 8687763 Change-Id: I5d1189682b13f1088848809604690648d8d9ecca
* am cd98ecc6: am 6071e45a: Merge "add a command to list all bonded devices" ↵Guang Zhu2014-05-201-0/+14
|\ | | | | | | | | | | | | into klp-modular-dev * commit 'cd98ecc66b968c5d5d0d12522c4c8c9b848bf181': add a command to list all bonded devices
| * am 6071e45a: Merge "add a command to list all bonded devices" into ↵Guang Zhu2014-05-201-0/+14
| |\ | | | | | | | | | | | | | | | | | | klp-modular-dev * commit '6071e45a64ab764eb86603f2f4496cfd5c8de708': add a command to list all bonded devices
| | * add a command to list all bonded devicesGuang Zhu2014-05-191-0/+14
| | | | | | | | | | | | | | | | | | Bug: 14601515 Change-Id: I3cc5bb664485ef768bb81f1f8870ed9bf62f8329
* | | Revert "Revert "APIs for BLE scan, scan filter, batch scan, onFound/onLost ↵Wei Wang2014-05-193-0/+312
| | | | | | | | | | | | | | | | | | | | | | | | and multiple advertising."" This reverts commit b1d9fbc0f8dea0c77ed810190b325bfdaaf21789. Change-Id: Ic8dec9385a7c763170ebeb1bcddd221c72f46e88
* | | Revert "APIs for BLE scan, scan filter, batch scan, onFound/onLost and ↵Wei Wang2014-05-203-312/+0
| | | | | | | | | | | | | | | | | | | | | | | | multiple advertising." This reverts commit 2c4e68a86b7a9b9f760a8907b93ff40ccad56c80. Change-Id: I98c91343d886ebe22d0bf75a710fa0b0abf738b6
* | | APIs for BLE scan, scan filter, batch scan, onFound/onLost and multipleWei Wang2014-05-193-0/+312
| | | | | | | | | | | | | | | | | | advertising. Change-Id: I1655eb9cffa890b6fe38108bf51078662e90bc03
* | | Add a method to check whether a UUID is 32bit.Wei Wang2014-05-191-0/+16
| | | | | | | | | | | | Change-Id: I92e8bab560b2083e9f4855d28b3f54f2120ef628
* | | Fix inconsistent package name.Jeff Davidson2014-05-151-4/+2
| | | | | | | | | | | | Change-Id: I6dfa0ded4309ae9e3f8ab73d96e6ccb521beb7c4
* | | Merge "Test multidex and annotations access."Yohann Roussel2014-05-1515-4/+366
|\ \ \
| * | | Test multidex and annotations access.Yohann Roussel2014-04-2515-4/+366
| | | | | | | | | | | | | | | | | | | | | | | | | | | | This was able to reproduce a problem reported by GMM when they were listing annotations on classes used before MultiDex installation. See Bug 14233284 Change-Id: I828c92f0e382dc984b6462fab710f414138e7e02
* | | | Make a copy of Matrix in CursorAnchorInfoBuilderYohei Yukawa2014-05-151-0/+28
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This CL fixes a bug that CursorAnchorInfoBuilder does't make a copy if the Matrix specified with #setMatrix. Without this fix, IMM#updateCursorAnchorInfo could fail to detect duplicated events when the same instances of CursorAnchorInfoBuilder and Matrix are reused to optimize performance. Change-Id: I50c50a12a06d3cda4dec445b171b61ceb78da21a
* | | | Enable CursorAnchorInfo to contain composing stringYohei Yukawa2014-05-141-12/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This CL adds one more functionality to CursorAnchorInfo that enables applications to associate the composition string with its positional information. This is useful for an IME to handle CursorAnchorInfo asynchronously. This is also useful for the framework to detect if the application is unnecessarily calling IMM#updateCursorAnchroInfo with duplicate event. BUG: 14579622 Change-Id: Ie75c17b523dad33e97b08c15f5f5267573ce2063
* | | | Replace LinkCapabilities with NetworkCapabilitiesRobert Greenwalt2014-05-121-44/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Also remove unused LinkSocket and LinkSocketNotifier. bug:13885501 Change-Id: Id426e31b201fa4f29109b5fea485d8efb34519d3
* | | | Introduce new API for floating window supportYohei Yukawa2014-05-093-1/+398
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This CL introduces a new API IMM#updateCursorAnchorInfo for floating window support. BUG: 14579622 Change-Id: I61dec2f8fa671ba891da1d4af08975750e3acb04
* | | | State based animators for ViewsYigit Boyar2014-05-073-0/+127
| | | | | | | | | | | | | | | | | | | | | | | | Set quantum theme buttons to elevate 2dp on press Change-Id: Ibf4f5ef166b901382c304d392eba075836a96a35
* | | | Merge changes I0c808d51,I4ecf0edeMatthew Xie2014-05-071-0/+50
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | * changes: Tear down PAN if we can't successfully complete a DHCP request after establishing a PANU connection. Add parse method to parse UUID from bytes for 16 bit, 32 bit and 128 bit Bluetooth UUIDs. Added unit tests.
| * | | | Add parse method to parse UUID from bytes for 16 bit, 32 bit and 128 bitWei Wang2014-05-061-0/+50
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Bluetooth UUIDs. Added unit tests. Change-Id: I4ecf0ede02561a5e9815acf8a5a1309d5756b887
* | | | | Merge "Take supportsSwitchingToNextInputMethod into considertaion"Yohei Yukawa2014-05-061-12/+12
|\ \ \ \ \ | |/ / / / |/| | | |
| * | | | Take supportsSwitchingToNextInputMethod into considertaionYohei Yukawa2014-05-011-12/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | With this CL, InputMethodManager#switchToNextInputMethod starts behaving as if there are two rotation groups: one is for the new input methods that are declared with supportsSwitchingToNextInputMethod set to true to indicate they have some language switching UI, and the other is for the other input methods to preserve the existing behavior. In addition to the above change, this CL also fixes the behavior of InputMethodManager#shouldOfferSwitchingToNextInputMethod() so as to return true if and only if the former rotation group consists of two or more input methods, as originally designed. BUG: 12981505 Change-Id: I84291fd4a7d6192b3bd0c366c49586e79135584f
* | | | | am 9284a37d: am 1edfd835: Merge "add getAddress function to return BT mac" ↵Guang Zhu2014-05-031-0/+8
|\ \ \ \ \ | | |_|/ / | |/| | | | | | | | | | | | | | | | | | | | | | | into klp-modular-dev * commit '9284a37d601f8d90e868f6fb032ebb8b4e07029d': add getAddress function to return BT mac
| * | | | am 1edfd835: Merge "add getAddress function to return BT mac" into ↵Guang Zhu2014-05-031-0/+8
| |\ \ \ \ | | | |_|/ | | |/| | | | | | | | | | | | | | | | | | | | | | klp-modular-dev * commit '1edfd835c2573711587cc77befeefd96083ccba5': add getAddress function to return BT mac
| | * | | add getAddress function to return BT macGuang Zhu2014-05-021-0/+8
| | | | | | | | | | | | | | | | | | | | Change-Id: Ib2bcd123e066672e411550856db862059949100e
* | | | | Merge "API for network cache subsystems."Jeff Davidson2014-05-021-0/+41
|\ \ \ \ \ | |_|_|/ / |/| | | |
| * | | | API for network cache subsystems.Jeff Davidson2014-04-301-0/+41
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | A network subsystem (e.g. Wi-Fi) will be responsible for implementing INetworkScoreCache. NetworkScoreService will load caches for each configured network subsystem. When it receives a call to update scores, it will separate the networks by type and call updateScores on the appropriate INetworkScoreCache. Each subsystem will also be responsible for requesting scores for new networks by calling NetworkScoreManager#requestScores. Bug: 14408144 Bug: 14137255 Change-Id: I76e5e5205bc359c39d6b9c1782126fb7f465cd96
* | | | | Add unit tests for InputMethodSubtypeSwitchingControllerYohei Yukawa2014-05-012-1/+206
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This CL adds unit tests for InputMethodSubtypeSwitchingController as a ground work to make it aware of supportsSwitchingToNextInputMethod in a subsequent CL. This CL never changes existing behavior. BUG: 12981505 Change-Id: I3b2c46c47c7686b811fa248ad549f20875367425
* | | | | am f0a3ea6e: am c6ebc0d1: Merge "make success explicit in BT instrumentation ↵Guang Zhu2014-04-291-6/+9
|\ \ \ \ \ | |/ / / / |/| / / / | |/ / / | | | | | | | | | | | | util" into klp-modular-dev * commit 'f0a3ea6ea259f836c71007ab07966d9dd2a140d6': make success explicit in BT instrumentation util
| * | | am c6ebc0d1: Merge "make success explicit in BT instrumentation util" into ↵Guang Zhu2014-04-291-6/+9
| |\ \ \ | | |/ / | | | | | | | | | | | | | | | | | | | | klp-modular-dev * commit 'c6ebc0d120bd7faa61d2f906f4a180c720f1f0d8': make success explicit in BT instrumentation util
| | * | make success explicit in BT instrumentation utilGuang Zhu2014-04-281-6/+9
| | | | | | | | | | | | | | | | Change-Id: I6c8eb8cdb7928fa6a7c1bc96b374667d1d6ae6a1
* | | | am c4e6f6d2: am cf939672: am 2e9d924d: Merge "Remove unused import."Elliott Hughes2014-04-291-1/+0
|\ \ \ \ | |/ / / | | | | | | | | | | | | * commit 'c4e6f6d2827ad526f562a5882975f42eee69486c': Remove unused import.
| * | | am cf939672: am 2e9d924d: Merge "Remove unused import."Elliott Hughes2014-04-291-1/+0
| |\ \ \ | | | | | | | | | | | | | | | | | | | | * commit 'cf939672f8c6e1ee29ae38f0e3665ab966491f7f': Remove unused import.
| | * | | Remove unused import.Elliott Hughes2014-04-281-1/+0
| | | | | | | | | | | | | | | | | | | | Change-Id: I3f6a035cda55859a7a521f3117da72ee962beb63
* | | | | am d937f275: am 12928a07: am 2336c4ec: Merge "Fix build."Elliott Hughes2014-04-281-1/+1
|\ \ \ \ \ | |/ / / / | | | | | | | | | | | | | | | * commit 'd937f2750c6edc2c1a03901605b22dad02b89147': Fix build.
| * | | | am 12928a07: am 2336c4ec: Merge "Fix build."Elliott Hughes2014-04-281-1/+1
| |\ \ \ \ | | |/ / / | | | | | | | | | | | | | | | * commit '12928a07c5c19ac3dea6d0489506595c138b621a': Fix build.
| | * | | Fix build.Elliott Hughes2014-04-281-1/+1
| | | | | | | | | | | | | | | | | | | | Change-Id: I0bd6e1aac19276bf664accd8d38f86d2cc7450cc
* | | | | resolved conflicts for merge of 3ce4f3d0 to masterElliott Hughes2014-04-283-15/+13
|\ \ \ \ \ | |/ / / / | | | | / | |_|_|/ |/| | | Change-Id: Id5c5997ad8f801b32e1dbd97413ea42e38c27210
| * | | am 685a0a72: am bbd87eb9: Merge "Track libcore.os\' move to android.system."Elliott Hughes2014-04-283-15/+13
| |\ \ \ | | |/ / | | | | | | | | | | | | * commit '685a0a72d445515167a2071330679cdf9b53a62d': Track libcore.os' move to android.system.
| | * | Track libcore.os' move to android.system.Elliott Hughes2014-04-283-15/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | (This is partial, but should cover everything in AOSP master except for the zygote.) Change-Id: I1042c99245765746a744c44e714095cb2c6cb75d
* | | | Allow prefix-based Uri permission grants.Jeff Sharkey2014-04-221-1/+53
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Define new FLAG_GRANT_PREFIX_URI_PERMISSION which indicates that a Uri permission grant should also apply to any other Uris that have matching scheme, authority, and path segments. For example, a prefix grant for /foo/ would allow /foo/bar/ but not /foo2/. Allow persistable and prefix grants to be issued directly through grantUriPermission(). Relaxing persistable is fine, since it still requires the receiver to actively take the permission. Since exact- and prefix-match grants for the same Uri can coexist, we track them separately using a new UriGrant key. (Consider the case where an app separately extends READ|PREFIX and WRITE for the same Uri: we can't let that become READ|WRITE|PREFIX.) Fix revoke to always take away persisted permissions. Move prefix matching logic to Uri and add tests. Add new flags to "am" tool, and various internal uses around Intent and Context. Switch some lagging users to ArraySet. Bug: 10607375 Change-Id: Ia8ce2b88421ff9f2fe5a979a27a026fc445d46f1
* | | | am 65bcc3ff: am 6c0454ec: Merge "add bt instrumentation to run as a util" ↵Guang Zhu2014-04-223-0/+111
|\ \ \ \ | |/ / / | | | | | | | | | | | | | | | | | | | | into klp-modular-dev * commit '65bcc3ff9212514a000ccdcc4d8295ddaedcef92': add bt instrumentation to run as a util
| * | | am 6c0454ec: Merge "add bt instrumentation to run as a util" into ↵Guang Zhu2014-04-223-0/+111
| |\ \ \ | | | |/ | | |/| | | | | | | | | | | | | | | | | klp-modular-dev * commit '6c0454ecae4fe46b7032299d02fc6da80f171ed2': add bt instrumentation to run as a util
| | * | add bt instrumentation to run as a utilGuang Zhu2014-04-213-0/+111
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | some bt test util methods are useful as device setup util, this change exposes some of them via a BluetoothInstrumentation so that they can be invoked like commands for setting up or controlling bt state in test harness Change-Id: I1d40baf374e145ab550ae4fa5f581e2eaf2e29bb
| * | | am 560e7541: am 1b007565: am 9b650702: Merge "Fix state transition ↵Xia Wang2014-03-181-13/+20
| |\ \ \ | | |/ / | | | / | | |/ | |/| | | | | | | verification." into klp-dev * commit '560e75417252b502a41967aa4d819a029361e384': Fix state transition verification.
| | * am 1b007565: am 9b650702: Merge "Fix state transition verification." into ↵Xia Wang2014-03-181-13/+20
| | |\ | | | | | | | | | | | | | | | | | | | | | | | | klp-dev * commit '1b007565c73097728496f3dbe811a51c879ba89e': Fix state transition verification.
| | | * Fix state transition verification.Xia Wang2014-03-181-13/+20
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When there is connectivity state change, the network states could be broadcasted multiple times. The state transition should consider that. Bug: 13277256 Change-Id: I3d400900a0e2454f9d198629f1c062cbb15bdcd8 (cherry picked from commit 71aae0b6fd1bb9204b81c2e9447f3544c29579c4)
* | | | Initial implementation of NetworkScoreManager's backing service.Jeff Davidson2014-04-211-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This service will ultimately be responsible for propagating scores down to lower-level network subsystems. For now, it just keeps scores in memory and exposes these for debugging purposes via "adb shell dumpsys network_score". This change also adds provisioning of a default scorer. When NetworkScoreService is first initialized, it checks to see if it has ever set a default scorer; if not, it reads a package name from a build config property and attempts to set it as the default. Also add autogenerated equals/hashCode methods to all parcelables. Bug: 14111427 Bug: 13786258 Change-Id: I02271171653d42e12acd240b73b9e23950744f6b