OpenGrok
Home
Sort by relevance
Sort by last modified time
Full Search
Definition
Symbol
File Path
History
|
|
Help
Searched
refs:ImapElement
(Results
1 - 15
of
15
) sorted by null
/packages/apps/Email/tests/src/com/android/email/mail/store/imap/
ImapElementTest.java
19
import com.android.email.mail.store.imap.
ImapElement
;
28
/** Test for {@link
ImapElement
#NONE} */
30
assertFalse(
ImapElement
.NONE.isList());
31
assertFalse(
ImapElement
.NONE.isString());
33
assertTrue(
ImapElement
.NONE.equalsForTest(
ImapElement
.NONE));
34
assertFalse(
ImapElement
.NONE.equalsForTest(null));
35
assertFalse(
ImapElement
.NONE.equalsForTest(ImapTestUtils.STRING_1));
36
assertFalse(
ImapElement
.NONE.equalsForTest(ImapTestUtils.LIST_1));
ImapTestUtils.java
20
import com.android.email.mail.store.imap.
ImapElement
;
44
/** @see #assertElement(String,
ImapElement
,
ImapElement
) */
45
public static final void assertElement(
ImapElement
expected,
ImapElement
actual) {
50
* Compare two {@link
ImapElement
}s and throws {@link AssertionFailedError} if different.
52
* Note this method used {@link
ImapElement
#equalsForTest} rather than equals().
54
public static final void assertElement(String message,
ImapElement
expected,
55
ImapElement
actual) {
66
public static final ImapList buildList(
ImapElement
... elements)
[
all
...]
ImapListTest.java
21
import com.android.email.mail.store.imap.
ImapElement
;
102
assertElement(
ImapElement
.NONE, list.getElementOrNone(4)); // Out of index.
105
assertElement(
ImapElement
.NONE, ImapList.EMPTY.getElementOrNone(0));
/packages/apps/Dialer/java/com/android/voicemail/impl/mail/store/imap/
ImapElement.java
25
*
ImapElement
27
* |--
ImapElement
.NONE (for 'index out of range')
46
public abstract class
ImapElement
{
51
public static final
ImapElement
NONE =
52
new
ImapElement
() {
75
public boolean equalsForTest(
ImapElement
that) {
118
public boolean equalsForTest(
ImapElement
that) {
ImapList.java
22
public class ImapList extends
ImapElement
{
33
void add(
ImapElement
e) {
38
private ArrayList<
ImapElement
> list = new ArrayList<
ImapElement
>();
40
/* package */ void add(
ImapElement
e) {
84
*
ImapElement
#NONE}.
86
public final
ImapElement
getElementOrNone(int index) {
87
return (index >= list.size()) ?
ImapElement
.NONE : list.get(index);
95
ImapElement
el = getElementOrNone(index);
104
ImapElement
el = getElementOrNone(index)
[
all
...]
ImapString.java
34
public abstract class ImapString extends
ImapElement
{
172
public final boolean equalsForTest(
ImapElement
that) {
ImapResponse.java
123
public boolean equalsForTest(
ImapElement
that) {
ImapResponseParser.java
296
private
ImapElement
parseElement() throws IOException, MessagingException {
388
final
ImapElement
el = parseElement();
/packages/apps/Email/provider_src/com/android/email/mail/store/imap/
ImapElement.java
24
*
ImapElement
26
* |--
ImapElement
.NONE (for 'index out of range')
45
public abstract class
ImapElement
{
50
public static final
ImapElement
NONE = new
ImapElement
() {
69
public boolean equalsForTest(
ImapElement
that) {
114
public boolean equalsForTest(
ImapElement
that) {
ImapList.java
24
public class ImapList extends
ImapElement
{
34
@Override void add(
ImapElement
e) {
39
private ArrayList<
ImapElement
> mList = new ArrayList<
ImapElement
>();
41
/* package */ void add(
ImapElement
e) {
87
* If {@code index} is out of range, returns {@link
ImapElement
#NONE}.
89
public final
ImapElement
getElementOrNone(int index) {
90
return (index >= mList.size()) ?
ImapElement
.NONE : mList.get(index);
98
ImapElement
el = getElementOrNone(index);
107
ImapElement
el = getElementOrNone(index)
[
all
...]
ImapString.java
36
public abstract class ImapString extends
ImapElement
{
179
public final boolean equalsForTest(
ImapElement
that) {
ImapResponse.java
140
public boolean equalsForTest(
ImapElement
that) {
ImapResponseParser.java
330
private
ImapElement
parseElement() throws IOException, MessagingException {
416
final
ImapElement
el = parseElement();
/packages/apps/Dialer/java/com/android/voicemail/impl/mail/store/
ImapFolder.java
41
import com.android.voicemail.impl.mail.store.imap.
ImapElement
;
491
ImapElement
e = bs.getElementOrNone(i);
/packages/apps/Email/provider_src/com/android/email/mail/store/
ImapFolder.java
27
import com.android.email.mail.store.imap.
ImapElement
;
[
all
...]
Completed in 228 milliseconds