/frameworks/base/core/tests/coretests/src/android/net/ |
NetworkStatsTest.java | 330 final NetworkStats first = new NetworkStats(TEST_START, 5) local 346 first.combineAllValues(second); 348 assertEquals(4, first.size()); 349 assertValues(first, 0, TEST_IFACE, 100, SET_DEFAULT, TAG_NONE, ROAMING_NO, 64L, 0L, 0L, 351 assertValues(first, 1, TEST_IFACE, 100, SET_FOREGROUND, TAG_NONE, ROAMING_NO, 32L, 0L, 353 assertValues(first, 2, TEST_IFACE, 100, SET_FOREGROUND, TAG_NONE, ROAMING_YES, 64L, 0L, 355 assertValues(first, 3, TEST_IFACE2, UID_ALL, SET_DEFAULT, TAG_NONE, ROAMING_NO, 32L,
|
/frameworks/base/packages/DocumentsUI/src/com/android/documentsui/dirlist/ |
FocusManager.java | 83 // Search helper gets first crack, for doing type-to-focus. 132 // Focus the first visible item 180 // Stop backward focus search at the first item, otherwise focus will wrap 188 // around to the first visible item. 224 * <li>The first (or last) item, if paging up (or down) would go past those limits. 231 int first = mLayout.findFirstVisibleItemPosition(); local 234 int pageSize = last - first + 1; 237 if (current > first) { 238 // If the current item isn't the first item, target the first item [all...] |
/frameworks/base/packages/Osu/src/com/android/hotspot2/osu/ |
SPVerifier.java | 119 Asn1Object first = imageInfo.next(); local 120 if (first.getTag() == 0) { 121 first = imageInfo.next(); // Ignore optional LogotypeImageType 124 fileSize = (int) castObject(first, Asn1Integer.class).getValue();
|
/hardware/ti/omap4-aah/ |
heaptracker.c | 90 static struct hdr *first; variable in typeref:struct:hdr 162 static inline void __add(struct hdr *hdr, struct hdr **first, struct hdr **last) 169 *first = hdr; 173 static inline int __del(struct hdr *hdr, struct hdr **first, struct hdr **last) 182 *first = hdr->prev; 194 __add(hdr, &first, &last); 204 __del(hdr, &first, &last); 292 struct hdr **first, struct hdr **last, unsigned *cnt, 299 __del(hdr, first, last); 325 &first, &last, &num [all...] |
/hardware/ti/omap4xxx/ |
heaptracker.c | 90 static struct hdr *first; variable in typeref:struct:hdr 162 static inline void __add(struct hdr *hdr, struct hdr **first, struct hdr **last) 169 *first = hdr; 173 static inline int __del(struct hdr *hdr, struct hdr **first, struct hdr **last) 182 *first = hdr->prev; 194 __add(hdr, &first, &last); 204 __del(hdr, &first, &last); 292 struct hdr **first, struct hdr **last, unsigned *cnt, 299 __del(hdr, first, last); 325 &first, &last, &num [all...] |
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/text/ |
BreakIteratorTest.java | 75 assertEquals(iterator.first(), iterator.current()); 79 assertEquals(0, iterator.first()); 81 assertEquals(0, iterator.first()); 273 int n = bi.first();
|
/ndk/sources/host-tools/ndk-stack/regex/ |
engine.c | 424 for (;;) { /* find first matching branch */ 620 for (;;) { /* find first matching branch */ 917 case OCH_: /* mark the first two branches */ 959 int first = 1; local 969 (void)fprintf(d, "%s%d", (first) ? "\t" : ", ", i); 970 first = 0;
|
/packages/apps/Calendar/src/com/android/calendar/ |
AsyncQueryServiceHelper.java | 258 OperationInfo first = sWorkQueue.peek(); local 259 long waitTime = first.mScheduledTimeMillis - SystemClock.elapsedRealtime(); 291 * filled, which will make the first access on the main
|
/packages/apps/Dialer/InCallUI/src/com/android/incallui/ |
ConferenceParticipantListAdapter.java | 316 int first = mListView.getFirstVisiblePosition(); local 319 for (int position = 0; position <= last - first; position++) { 323 getView(position+first, view, mListView);
|
/packages/services/Car/tests/carservice_test/src/com/android/car/test/ |
CarPowerManagementTest.java | 154 int[] first = setEvents.getFirst(); local 155 assertEquals(VehicleApPowerSetState.VEHICLE_AP_POWER_SET_BOOT_COMPLETE, first[0]); 156 assertEquals(0, first[1]);
|
/prebuilts/python/linux-x86/2.7.5/lib/python2.7/site-packages/sepolgen/ |
yacc.py | 328 # first syntax error. This function is only called if 484 global Nonterminals, First, Follow, Precedence, LRitems 487 Productions = [None] # A list of all of the productions. The first 503 First = { } # A dictionary of precomputed FIRST(x) symbols 1046 def first(beta): function [all...] |
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/common/layout/ |
BaseLayoutRule.java | 115 final INode first = targets.get(0); local 127 String all = first.getStringAttr(uri, ATTR_LAYOUT_MARGIN); 128 String left = first.getStringAttr(uri, ATTR_LAYOUT_MARGIN_LEFT); 129 String right = first.getStringAttr(uri, ATTR_LAYOUT_MARGIN_RIGHT); 130 String top = first.getStringAttr(uri, ATTR_LAYOUT_MARGIN_TOP); 131 String bottom = first.getStringAttr(uri, ATTR_LAYOUT_MARGIN_BOTTOM); 158 final INode first = targets.get(0); local 163 IAttributeInfo info = first.getAttributeInfo(ANDROID_URI, attributeName); 179 first.getStringAttr(ANDROID_URI, attributeName), ICON_GRAVITY, 196 final INode first = targets.get(0) local [all...] |
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/layout/gle2/ |
LayoutMetadata.java | 127 Node first = node.getFirstChild(); local 128 if (first != null && first.getNextSibling() == null 129 && first.getNodeType() == Node.TEXT_NODE) { 130 if (first.getNodeValue().trim().length() == 0) { 131 node.removeChild(first);
|
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/layout/refactoring/ |
UseCompoundDrawableRefactoring.java | 160 Element first = children.get(0); local 163 first.getTagName().equals(TEXT_VIEW) 166 first.getTagName().equals(IMAGE_VIEW) 225 Element first = children.get(0); local 229 if (first.getTagName().equals(TEXT_VIEW)) { 230 text = first; 234 image = first; 293 if (first == image) { 303 if (first == image) {
|
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/ui/tree/ |
UiElementDetail.java | 109 Object first = tree_selection.getFirstElement(); local 110 if (first instanceof UiElementNode) { 111 UiElementNode ui_node = (UiElementNode) first;
|
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/lint/ |
AddSuppressAnnotation.java | 359 // Error added on the first line of a Java class: typically from a class-based 383 ASTNode first = (ASTNode) field.fragments().get(0); local 384 if (first instanceof VariableDeclarationFragment) { 385 VariableDeclarationFragment decl = (VariableDeclarationFragment) first;
|
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/ui/ |
ReferenceChooserDialog.java | 234 // the selection mode is SWT.SINGLE, so we just get the first one. 326 Object first = selection.getFirstSegment(); local 327 if (first instanceof ResourceType) { 328 type = (ResourceType) first; 340 // checks the inline id pattern first as it's more restrictive than the other one.
|
/system/connectivity/shill/net/ |
rtnl_message_unittest.cc | 533 bool first = true; local 535 if (!first) { 538 first = false;
|
/system/core/debuggerd/ |
tombstone.cpp | 276 size_t first = 0, last; local 280 if (!first) { 281 first = i+1; 286 if (!first) { 289 first--; 291 // Dump a few words before the first frame. 292 word_t sp = backtrace->GetFrame(first)->sp - STACK_WORDS * sizeof(word_t); 296 // Only log the first 3 frames, put the rest in the tombstone. 297 for (size_t i = first; i <= last; i++) { 488 bool first = true local [all...] |
/system/core/libsysutils/src/ |
NetlinkEvent.cpp | 181 // Only look at the first address, because we only support notifying 284 /* First 256 bytes is plenty */ 436 // So only parse the first ND option in the message. 511 * there are multiple valid messages in the buffer, only the first one will be 514 * TODO: consider only ever looking at the first message. 588 int first = 1; local 598 if (first) { 607 first = 0;
|
/toolchain/binutils/binutils-2.25/bfd/ |
merge.c | 64 /* First entity in the SEC_MERGE sections of this type. */ 65 struct sec_merge_hash_entry *first; member in struct:sec_merge_hash 94 /* First string in this section. */ 250 table->first = NULL; 275 if (tab->first == NULL) 276 tab->first = entry; 610 for (e = sinfo->htab->first, a = array; e; e = e->next) 659 secinfo = sinfo->htab->first->secinfo; 660 for (e = sinfo->htab->first; e; e = e->next) 688 for (a = &sinfo->htab->first, e = *a; e; e = e->next [all...] |
/libcore/jsr166-tests/src/test/java/jsr166/ |
ConcurrentSkipListSetTest.java | 59 * Returns a new set of first 5 ints. 550 assertEquals(two, sm.first()); 571 assertEquals(three, sm.first()); 582 assertEquals(two, sm.first()); 628 assertEquals(four, set.first()); 655 assertEquals(four, ssm.first()); 881 int first() { method in class:ConcurrentSkipListSetTest.ReferenceSet 958 assertEq(set.first(), rs.first()); 961 assertEq(rs.first(), -1) [all...] |
TreeSetTest.java | 63 * Returns a new set of first 5 ints. 553 assertEquals(two, sm.first()); 574 assertEquals(three, sm.first()); 585 assertEquals(two, sm.first()); 631 assertEquals(four, set.first()); 658 assertEquals(four, ssm.first()); 882 int first() { method in class:TreeSetTest.ReferenceSet 959 assertEq(set.first(), rs.first()); 962 assertEq(rs.first(), -1) [all...] |
/libcore/luni/src/test/java/libcore/java/util/prefs/ |
OldAbstractPreferencesTest.java | 674 AbstractPreferences first = (AbstractPreferences) pref.node("First node"); local 678 assertEquals(0, first.childrenNames().length); 693 first.childrenNames(); 720 AbstractPreferences node = (AbstractPreferences) pref.node("First node/sub node"); 722 assertTrue(node.parent().name().compareTo("First node") == 0); 735 AbstractPreferences first = (AbstractPreferences) pref.node("First node"); local 739 first.node("blabla/"); 746 first.node("///invalid") 853 AbstractPreferences first = (AbstractPreferences) pref.node("First node"); local [all...] |
/external/guice/extensions/persist/lib/ |
easymock.jar | |