Searched refs:object (Results 1 - 25 of 281) sorted by relevance

1234567891011>>

/dalvik/libcore/json/src/test/java/org/json/
H A DJSONObjectTest.java31 JSONObject object = new JSONObject();
32 assertEquals(0, object.length());
34 // bogus (but documented) behaviour: returns null rather than the empty object!
35 assertNull(object.names());
38 assertNull(object.toJSONArray(new JSONArray()));
39 assertEquals("{}", object.toString());
40 assertEquals("{}", object.toString(5));
42 object.get("foo");
47 object.getBoolean("foo");
52 object
[all...]
/dalvik/libcore/security/src/main/java/java/security/
H A DGuard.java30 * @param object
31 * the object to be protected by this {@code Guard}.
35 public void checkGuard(Object object) throws SecurityException; argument
H A DGuardedObject.java24 * {@code GuardedObject} controls access to an object, by checking all requests
25 * for the object with a {@code Guard}.
31 private final Object object; field in class:GuardedObject
39 * @param object
45 public GuardedObject(Object object, Guard guard) { argument
46 this.object = object;
55 * @return the guarded object.
57 * if access is not granted to the guarded object.
61 guard.checkGuard(object);
[all...]
/dalvik/libcore/luni/src/main/java/java/util/
H A DCollection.java48 * Attempts to add {@code object} to the contents of this
51 * After this method finishes successfully it is guaranteed that the object
58 * objects, but it has to specify this in the documentation. If the object
62 * If a collection does not yet contain an object that is to be added and
63 * adding the object fails, this method <i>must</i> throw an appropriate
68 * @param object
69 * the object to add.
76 * if the class of the object is inappropriate for this
79 * if the object cannot be added to this {@code Collection}.
83 public boolean add(E object); argument
137 contains(Object object) argument
171 equals(Object object) argument
220 remove(Object object) argument
[all...]
H A DComparator.java59 * are equal. In order to be equal, {@code object} must represent the same object
65 * @param object
72 public boolean equals(Object object); argument
H A DSet.java29 * Adds the specified object to this set. The set is not modified if it
30 * already contains the object.
32 * @param object
33 * the object to add.
38 * when the class of the object is inappropriate for this set.
40 * when the object cannot be added to this set.
42 public boolean add(E object); argument
54 * when the class of an object is inappropriate for this set.
56 * when an object cannot be added to this set.
71 * Searches this set for the specified object
78 contains(Object object) argument
102 equals(Object object) argument
141 remove(Object object) argument
[all...]
H A DList.java29 * Inserts the specified object into this {@code List} at the specified location.
30 * The object is inserted before the current element at the specified
31 * location. If the location is equal to the size of this {@code List}, the object
38 * @param object
39 * the object to add.
43 * if the class of the object is inappropriate for this
46 * if the object cannot be added to this {@code List}.
50 public void add(int location, E object); argument
53 * Adds the specified object at the end of this {@code List}.
55 * @param object
66 add(E object) argument
128 contains(Object object) argument
153 equals(Object object) argument
183 indexOf(Object object) argument
212 lastIndexOf(Object object) argument
261 remove(Object object) argument
306 set(int location, E object) argument
[all...]
H A DListIterator.java28 * Inserts the specified object into the list between {@code next} and
29 * {@code previous}. The object inserted will be the previous object.
31 * @param object
32 * the object to insert.
36 * if the class of the object is inappropriate for the list.
38 * if the object cannot be added to the list.
40 void add(E object); argument
60 * Returns the next object in the iteration.
62 * @return the next object
131 set(E object) argument
[all...]
H A DAbstractSet.java38 * Compares the specified object to this Set and returns true if they are
39 * equal. The object must be an instance of Set and contain the same
42 * @param object
43 * the object to compare with this set.
44 * @return {@code true} if the specified object is equal to this set,
49 public boolean equals(Object object) { argument
50 if (this == object) {
53 if (object instanceof Set) {
54 Set<?> s = (Set<?>) object;
/dalvik/libcore/security/src/main/java/org/apache/harmony/security/x509/
H A DTime.java51 public int getIndex(java.lang.Object object) {
53 if (((java.util.Date) object).getTime() < JAN_01_2050) {
60 public Object getObjectToEncode(Object object) {
61 return object;
/dalvik/libcore/json/src/main/java/org/json/
H A DJSONArray.java87 Object object = readFrom.nextValue();
88 if (object instanceof JSONArray) {
89 values = ((JSONArray) object).values;
91 throw JSON.typeMismatch(object, "JSONArray");
286 Object object = get(index);
287 Boolean result = JSON.toBoolean(object);
289 throw JSON.typeMismatch(index, object, "boolean");
307 Object object = opt(index);
308 Boolean result = JSON.toBoolean(object);
320 Object object
[all...]
H A DJSONObject.java69 * named entry from the object but {@code put(name, JSONObject.NULL)} stores an
142 * object in the tokener.
154 Object object = readFrom.nextValue();
155 if (object instanceof JSONObject) {
156 this.nameValuePairs = ((JSONObject) object).nameValuePairs;
158 throw JSON.typeMismatch(object, "JSONObject");
166 * @param json a JSON-encoded string containing an object.
176 * from the given object. Names that aren't present in {@code copyFrom} will
190 * Returns the number of name/value mappings in this object.
200 * @return this object
[all...]
/dalvik/libcore/security/src/main/java/org/apache/harmony/security/asn1/
H A DASN1ValueCollection.java57 * Provides an object's values to be encoded
62 * @param - an object to be encoded
63 * @return - a collection of object's values to be encoded
65 public Collection getValues(Object object) { argument
66 return (Collection)object;
H A DInformationObjectSet.java55 public void put(int[] oid, Object object) { argument
73 list[i] = new Entry(oid, object);
83 return list[i].object;
101 public Object object; field in class:InformationObjectSet.Entry
103 public Entry(int[] oid, Object object) { argument
105 this.object = object;
H A DASN1TypeCollection.java76 * @param object - a component's default value
79 protected final void setDefault(Object object, int index) { argument
81 DEFAULT[index] = object;
85 * Provides an object's values to be encoded
92 * @param object - an object to be encoded
93 * @param values - an array to store an object's values to be encoded
95 protected void getValues(Object object, Object[] values) { argument
/dalvik/vm/mterp/armv4t/
H A DOP_IGET_WIDE_QUICK.S2 %verify "null object"
5 GET_VREG(r3, r2) @ r3<- object we're operating on
7 cmp r3, #0 @ check object for null
9 beq common_errNullObject @ object was null
10 add r9, r3, r1 @ r9<- object + offset
/dalvik/vm/mterp/armv5te/
H A DOP_IGET_QUICK.S2 %verify "null object"
3 /* For: iget-quick, iget-object-quick */
6 GET_VREG(r3, r2) @ r3<- object we're operating on
8 cmp r3, #0 @ check object for null
10 beq common_errNullObject @ object was null
H A DOP_IGET_WIDE_QUICK.S2 %verify "null object"
5 GET_VREG(r3, r2) @ r3<- object we're operating on
7 cmp r3, #0 @ check object for null
9 beq common_errNullObject @ object was null
/dalvik/libcore/security/src/main/java/org/apache/harmony/security/x501/
H A DDirectoryString.java58 public int getIndex(java.lang.Object object) {
63 public Object getObjectToEncode(Object object) {
64 return /*(String)*/ object;
/dalvik/libcore/text/src/main/java/java/text/
H A DParsePosition.java40 * Compares the specified object to this {@code ParsePosition} and indicates
41 * if they are equal. In order to be equal, {@code object} must be an
45 * @param object
46 * the object to compare with this object.
47 * @return {@code true} if the specified object is equal to this
52 public boolean equals(Object object) { argument
53 if (!(object instanceof ParsePosition)) {
56 ParsePosition pos = (ParsePosition) object;
/dalvik/vm/mterp/x86/
H A DOP_THROW.S2 %verify "exception for null object"
4 * Throw an exception object in the current thread.
9 GET_VREG(%eax,rINST_FULL) # eax<- exception object
11 testl %eax,%eax # null object?
H A DOP_IGET_QUICK.S2 %verify "null object"
3 /* For: iget-quick, iget-object-quick */
7 GET_VREG(%ecx,%ecx) # vB (object we're operating on)
9 cmpl $$0,%ecx # is object null?
/dalvik/vm/mterp/x86-atom/
H A DOP_THROW.S23 * Description: Throw an exception object in the current thread.
34 je common_errNullObject # handle null object
35 movl rINST, offThread_exception(%ecx) # thread->exception<- object
/dalvik/vm/mterp/armv6t2/
H A DOP_IGET_QUICK.S2 %verify "null object"
3 /* For: iget-quick, iget-object-quick */
7 GET_VREG(r3, r2) @ r3<- object we're operating on
9 cmp r3, #0 @ check object for null
10 beq common_errNullObject @ object was null
H A DOP_IGET_WIDE_QUICK.S2 %verify "null object"
6 GET_VREG(r3, r2) @ r3<- object we're operating on
8 cmp r3, #0 @ check object for null
9 beq common_errNullObject @ object was null

Completed in 305 milliseconds

1234567891011>>