/openjdk7/jdk/test/java/util/Collections/ |
H A D | Frequency.java | 40 static void test(List<Integer> list) { argument 43 list.add(i); 44 Collections.shuffle(list); 47 if (Collections.frequency(list, i) != i) 48 throw new RuntimeException(list.getClass() + ": " + i);
|
H A D | EqualsTest.java | 43 List list = Collections.synchronizedList(new ArrayList()); 44 list.add(list); 45 test = list.equals(list); 47 list.remove(list);
|
H A D | NullComparator.java | 34 List list = new ArrayList(100); 36 list.add(new Integer(i)); 37 List sorted = new ArrayList(list); 38 Collections.shuffle(list); 40 Object a[] = list.toArray(); 44 a = list.toArray(); 51 List tmp = new ArrayList(list); 57 if (!Collections.min(list, null).equals(new Integer(0))) 59 if (!Collections.max(list, null).equals(new Integer(99)))
|
/openjdk7/jdk/test/java/awt/List/ActionAfterRemove/ |
H A D | ActionAfterRemove.java | 28 @author Dmitry Cherepanov area=awt-list 52 final List list = new List(); 58 list.add("will be removed"); 59 frame.add(list); 65 list.select(0); 66 list.remove(0); 74 Util.clickOnComp(list, robot); 76 Util.clickOnComp(list, robot);
|
/openjdk7/jdk/test/java/beans/XMLDecoder/spec/ |
H A D | TestNew.java | 55 private List<String> list; field in class:TestNew 59 this.list = new ArrayList<String>(); 61 this.list.add(message); 70 return (test.list == null) 71 ? this.list == null 72 : test.list.equals(this.list);
|
/openjdk7/jdk/src/share/classes/sun/nio/ch/ |
H A D | FileLockTable.java | 66 * @return The list of file locks removed 85 * SharedFileLockTable uses a list of file lock references to avoid keeping the 104 // The map value is a list of file locks represented by FileLockReferences. 105 // All access to the list must be synchronized on the list. 125 List<FileLockReference> list = lockMap.get(fileKey); 130 if (list == null) { 131 list = new ArrayList<FileLockReference>(2); 133 synchronized (list) { 134 prev = lockMap.putIfAbsent(fileKey, list); 165 removeKeyIfEmpty(FileKey fk, List<FileLockReference> list) argument 248 checkList(List<FileLockReference> list, long position, long size) argument [all...] |
/openjdk7/jdk/src/share/classes/sun/net/www/protocol/http/ |
H A D | AuthCacheImpl.java | 55 LinkedList list = (LinkedList) hashtable.get (pkey); 57 if (list == null) { 58 list = new LinkedList (); 59 hashtable.put (pkey, list); 62 ListIterator iter = list.listIterator(); 77 LinkedList list = (LinkedList) hashtable.get (pkey); 78 if (list == null || list.size() == 0) { 82 // list should contain only one element 83 return (AuthenticationInfo)list [all...] |
/openjdk7/jaxws/src/share/jaxws_classes/com/sun/xml/internal/messaging/saaj/packaging/mime/internet/ |
H A D | ContentType.java | 47 private ParameterList list; // parameter list field in class:ContentType 59 * @param list ParameterList 62 ParameterList list) { 65 if (list == null) 66 list = new ParameterList(); 67 this.list = list; 102 list = new ParameterList(rem); 106 return new ContentType(primaryType,subType,list 61 ContentType(String primaryType, String subType, ParameterList list) argument 192 setParameterList(ParameterList list) argument [all...] |
/openjdk7/jdk/test/sun/security/smartcardio/ |
H A D | TestMultiplePresent.java | 47 List<CardTerminal> list = terminals.list(); 48 System.out.println("Terminals: " + list); 50 if (list.size() < 2) { 51 if (list.isEmpty()) { 60 for (CardTerminal terminal : list) { 73 result = terminals.list(CARD_PRESENT); 84 result = terminals.list(CARD_PRESENT); 92 result = terminals.list(CARD_INSERTION); 99 result = terminals.list(CARD_INSERTIO [all...] |
/openjdk7/jdk/test/sun/nio/cs/ |
H A D | Test4200310.sh | 30 2>&1 $TESTJAVA/bin/jar -tf "$TESTJAVA/jre/lib/rt.jar" > class-list 31 2>&1 $TESTJAVA/bin/jar -tf "$TESTJAVA/jre/lib/charsets.jar" >> class-list 32 2>&1 $TESTJAVA/bin/jar -tf "$TESTJAVA/jre/lib/ext/localedata.jar" >> class-list 33 duplicates=`grep '\.class$' class-list | sort | uniq -d` 35 rm -f class-list
|
/openjdk7/langtools/test/tools/javac/ |
H A D | T6238612.java | 48 // given a list, exercise the List.toArray method for a variety of arrays 49 void test(List<String> list) { argument 50 int n = list.size(); 52 test(list, new String[0]); 55 test(list, new String[n - 1]); 57 test(list, new String[n]); 58 test(list, new String[n + 1]); 59 test(list, new String[n + 5]); 62 // test the List.toArray method for a particular list and array 63 void test(List<String> list, Strin argument [all...] |
/openjdk7/jaxws/src/share/jaxws_classes/com/sun/xml/internal/ws/api/ |
H A D | WebServiceFeatureFactory.java | 42 * Returns a feature list for feature annotations(i.e which have 45 * @param ann list of annotations(that can also have non-feature annotations) 46 * @return non-null feature list object 49 WebServiceFeatureList list = new WebServiceFeatureList(); 50 list.parseAnnotations(ann); 51 return list;
|
/openjdk7/jdk/test/java/nio/channels/DatagramChannel/ |
H A D | NetworkConfiguration.java | 68 .list(NetworkInterface.getNetworkInterfaces()); 74 List<InetAddress> addrs = Collections.list(nif.getInetAddresses()); 78 List<InetAddress> list = ip4Interfaces.get(nif); 79 if (list == null) { 80 list = new LinkedList<InetAddress>(); 82 list.add(addr); 83 ip4Interfaces.put(nif, list); 85 List<InetAddress> list = ip6Interfaces.get(nif); 86 if (list == null) { 87 list [all...] |
/openjdk7/jdk/test/java/util/LinkedList/ |
H A D | Remove.java | 37 LinkedList list = new LinkedList(); 38 ListIterator e = list.listIterator(); 45 if (!o.equals(list.get(0)))
|
/openjdk7/jaxp/src/com/sun/org/apache/bcel/internal/generic/ |
H A D | InstructionListObserver.java | 18 * notice, this list of conditions and the following disclaimer. 21 * notice, this list of conditions and the following disclaimer in 68 public void notify(InstructionList list); argument
|
/openjdk7/jdk/src/share/classes/javax/smartcardio/ |
H A D | CardTerminals.java | 65 * Returns an unmodifiable list of all available terminals. 67 * @return an unmodifiable list of all available terminals. 71 public List<CardTerminal> list() throws CardException { method in class:CardTerminals 72 return list(State.ALL); 76 * Returns an unmodifiable list of all terminals matching the specified 96 * @return an unmodifiable list of all terminals matching the specified 102 public abstract List<CardTerminal> list(State state) throws CardException; method in class:CardTerminals 118 for (CardTerminal terminal : list()) { 162 * {@link #list(CardTerminals.State) list(Stat [all...] |
/openjdk7/jdk/test/java/awt/List/ScrollOutside/ |
H A D | ScrollOut.java | 28 @author Andrei Dmitriev area=awt-list 44 final List list = new List(); 48 list.add("abcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyz"); 51 frame.add(list); 66 Point from = new Point(list.getLocationOnScreen().x + list.getWidth()/2, 67 list.getLocationOnScreen().y + list.getHeight()/2); 68 Point to = new Point(list.getLocationOnScreen().x - 30, 78 list [all...] |
/openjdk7/jdk/test/java/beans/Introspector/ |
H A D | Test7193977.java | 44 private static final List<String> names = Arrays.asList("listType", "list", "value"); 63 private List<T> list; field in class:Test7193977.Abstract 66 return this.list; 69 public void setList(List<T> list) { argument 70 this.list = list; 74 return (0 <= index) && (this.list != null) && (index < this.list.size()) 75 ? this.list.get(index) 80 if ((0 <= index) && (this.list ! [all...] |
/openjdk7/jdk/test/java/beans/XMLEncoder/ |
H A D | java_util_Collections_CheckedCollection.java | 41 List<String> list = Collections.singletonList("string"); 42 return Collections.checkedCollection(list, String.class); 46 List<String> list = Collections.emptyList(); 47 return Collections.checkedCollection(list, String.class);
|
/openjdk7/jdk/test/com/sun/jdi/ |
H A D | AllLineLocations.java | 73 List list = rt.allLineLocations(); 74 if (list.size() != 1) { 85 if (!list2.equals(list)) { 97 list = rt.allLineLocations(); 98 if (list.size() != 1) { 109 if (!list2.equals(list)) { 121 list = rt.allLineLocations(); 122 if (list.size() != 0) { 135 list = rt.allLineLocations(); 136 if (list [all...] |
/openjdk7/jdk/src/share/classes/javax/swing/plaf/basic/ |
H A D | BasicListUI.java | 62 protected JList list = null; field in class:BasicListUI 78 * Height of the list. When asked to paint, if the current size of 79 * the list differs, this will update the layout state. 84 * Width of the list. When asked to paint, if the current size of 85 * the list differs, this will update the layout state. 90 * The layout orientation of the list. 94 // Following ivars are used if the list is laying out horizontally 101 * Preferred height to make the list, this is only used if the 102 * the list is layed out horizontally. 205 boolean cellHasFocus = list 919 createUI(JComponent list) argument 928 locationToIndex(JList list, Point location) argument 937 indexToLocation(JList list, int index) argument 951 getCellBounds(JList list, int index1, int index2) argument 995 getCellBounds(JList list, int index) argument 1996 clearSelection(JList list) argument 2000 selectAll(JList list) argument 2029 getNextPageIndex(JList list, int direction) argument 2154 changeSelection(JList list, int type, int index, int direction) argument 2197 adjustScrollPositionIfNecessary(JList list, int index, int direction) argument 2285 getNextColumnIndex(JList list, BasicListUI ui, int amount) argument 2318 getNextIndex(JList list, BasicListUI ui, int amount) argument 2827 adjustIndex(int index, JList list) argument [all...] |
/openjdk7/jdk/test/sun/security/tools/keytool/ |
H A D | console.sh | 66 $JM/bin/keytool -keystore kkk -list -storepass $PASS 70 $J5/bin/keytool -keystore kkk -list -storepass $PASS 74 $JM/bin/keytool -keystore kkk -list 75 echo $PASS| $J5/bin/keytool -keystore kkk -list 76 echo $PASS| $JM/bin/keytool -keystore kkk -list 80 $J5/bin/keytool -keystore kkk -list 81 echo $PASS| $JM/bin/keytool -keystore kkk -list 82 echo $PASS| $J5/bin/keytool -keystore kkk -list 86 $JM/bin/keytool -keystore kkk -list 87 echo $PASS| $J5/bin/keytool -keystore kkk -list [all...] |
/openjdk7/hotspot/agent/src/share/classes/sun/jvm/hotspot/utilities/ |
H A D | LivenessAnalysis.java | 48 LivenessPathList list = computeAllLivenessPaths(target, true); 49 if ((list == null) || (list.size() == 0)) { 53 return list; 96 LivenessPathList list = new LivenessPathList(); 100 list.add(path); 108 for (int i = list.size() - 1; i >= 0; i--) { 109 LivenessPath tmp = list.get(i); 118 return list; 123 // Remove the path from the list o [all...] |
/openjdk7/jdk/test/com/sun/management/HotSpotDiagnosticMXBean/ |
H A D | DumpHeap.java | 38 List<HotSpotDiagnosticMXBean> list = ManagementFactory.getPlatformMXBeans(HotSpotDiagnosticMXBean.class); 40 list.get(0).dumpHeap(argv[0], true);
|
/openjdk7/jdk/test/java/awt/dnd/FileListBetweenJVMsTest/ |
H A D | SourceFileListFrame.java | 39 private List list = new List(FileListBetweenJVMsTest.VISIBLE_RAWS_IN_LIST); field in class:SourceFileListFrame 47 new DragSource().createDefaultDragGestureRecognizer(list, 57 list.add(currFile.getName()); 64 this.add(new Panel().add(list)); 78 return (int)list.getLocationOnScreen().getX()+(list.getWidth()/2); 82 return (int)list.getLocationOnScreen().getY()+ SOURCE_POINT_SHIFT; 90 String [] filesAsStringArray = list.getItems();
|