Searched refs:stack (Results 1 - 18 of 18) sorted by relevance

/packages/apps/UnifiedEmail/src/org/apache/james/mime4j/message/
H A DMessage.java100 private Stack<Object> stack = new Stack<Object>(); field in class:Message.MessageBuilder
106 if (!c.isInstance(stack.peek())) {
107 throw new IllegalStateException("Internal stack error: "
109 + stack.peek().getClass().getName() + "'");
117 if (stack.isEmpty()) {
118 stack.push(Message.this);
122 ((Entity) stack.peek()).setBody(m);
123 stack.push(m);
132 stack.pop();
139 stack
[all...]
/packages/apps/Camera/src/com/android/camera/
H A DCameraHolder.java70 String[] stack; field in class:CameraHolder.OpenReleaseState
87 StackTraceElement[] stack = Thread.currentThread().getStackTrace();
88 String[] lines = new String[stack.length];
89 for (int i = 0; i < stack.length; i++) {
90 lines[i] = stack[i].toString();
92 s.stack = lines;
107 for (int j = 0; j < s.stack.length; j++) {
108 Log.d(TAG, " " + s.stack[j]);
/packages/apps/UnifiedEmail/src/com/android/mail/lib/html/parser/
H A DHtmlTreeBuilder.java39 private final List<HTML.Element> stack = new ArrayList<HTML.Element>(); field in class:HtmlTreeBuilder
59 while (stack.size() > 0) {
103 while (pos < stack.size() - 1) {
128 /** Finds the start tag from the stack, returns -1 if not found */
130 for (int i = stack.size() - 1; i >= 0; i--) {
131 HTML.Element e = stack.get(i);
140 * Adds a close tag corresponding to a tag on the stack, if
151 /** Pushes a tag onto the stack */
153 stack.add(element);
156 /** Pops an elemnt from the stack */
[all...]
H A DHtmlTree.java231 int stack = 0;
242 stack++;
248 if (stack == 0) {
251 stack--;
256 if (stack == 0 && sb.length() >= chunkSize) {
270 if (!balanced || stack != 0) {
896 private Stack<Integer> stack; field in class:HtmlTree
901 stack = new Stack<Integer>();
907 X.assertTrue(stack.size() == 0);
918 stack
[all...]
/packages/apps/UnifiedEmail/src/com/google/android/mail/common/html/parser/
H A DHtmlTreeBuilder.java39 private final List<HTML.Element> stack = new ArrayList<HTML.Element>(); field in class:HtmlTreeBuilder
59 while (stack.size() > 0) {
103 while (pos < stack.size() - 1) {
128 /** Finds the start tag from the stack, returns -1 if not found */
130 for (int i = stack.size() - 1; i >= 0; i--) {
131 HTML.Element e = stack.get(i);
140 * Adds a close tag corresponding to a tag on the stack, if
151 /** Pushes a tag onto the stack */
153 stack.add(element);
156 /** Pops an elemnt from the stack */
[all...]
H A DHtmlTree.java268 int stack = 0;
279 stack++;
285 if (stack == 0) {
288 stack--;
293 if (stack == 0 && sb.length() >= chunkSize) {
307 if (!balanced || stack != 0) {
979 private Stack<Integer> stack; field in class:HtmlTree
984 stack = new Stack<Integer>();
990 X.assertTrue(stack.size() == 0);
1002 stack
[all...]
/packages/apps/Gallery2/src/com/android/gallery3d/util/
H A DProfileData.java74 public void addSample(String[] stack) { argument
75 int[] ids = new int[stack.length];
76 for (int i = 0; i < stack.length; i++) {
77 ids[i] = nameToId(stack[i]);
81 for (int i = stack.length - 1; i >= 0; i--) {
127 // Writes out one stack, consisting of N+2 words:
129 // second word: depth of the stack (N)
130 // N words: each word is the id of one address in the stack
H A DProfile.java27 // samples stack traces for a thread periodically. enable() and disable() is
40 // For every cycleTime period, we dump the stack of the thread.
127 StackTraceElement[] stack = thread.getStackTrace();
128 String[] lines = new String[stack.length];
129 for (int i = 0; i < stack.length; i++) {
130 lines[i] = stack[i].toString();
186 // milliseconds) sample the stack trace of the calling thread.
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/makedict/
H A DBinaryDictIOUtils.java93 Stack<Position> stack = new Stack<>();
97 stack.push(initPos);
99 while (!stack.empty()) {
100 Position p = stack.peek();
116 stack.pop();
134 stack.pop();
142 stack.push(childrenPos);
H A DFusionDictionary.java353 ArrayList<PtNode> stack = ptNodeArray.mData;
355 for (int i = 0; i < stack.size(); ++i) {
356 int currentValue = stack.get(i).mChars[0];
358 throw new RuntimeException("Invalid stack");
/packages/apps/UnifiedEmail/src/com/android/emailcommon/internet/
H A DMimeMessage.java540 private final Stack<Object> stack = new Stack<Object>(); field in class:MimeMessage.MimeMessageBuilder
546 if (!c.isInstance(stack.peek())) {
547 throw new IllegalStateException("Internal stack error: " + "Expected '"
548 + c.getName() + "' found '" + stack.peek().getClass().getName() + "'");
554 if (stack.isEmpty()) {
555 stack.push(MimeMessage.this);
560 ((Part)stack.peek()).setBody(m);
561 stack.push(m);
571 stack.pop();
584 ((Part)stack
[all...]
/packages/apps/UnifiedEmail/src/com/android/mail/ui/
H A DFolderSelectorAdapter.java236 final Deque<TreeNode> stack = new ArrayDeque<TreeNode>(10);
237 stack.push(root);
239 while ((currentNode = stack.poll()) != null) {
240 final TreeNode parentNode = stack.peek();
266 stack.push(currentNode);
268 stack.push(childNode);
/packages/apps/Camera/jni/feature_mos/src/mosaic/
H A DDelaunay.cpp372 int stack[DM]; local
409 // Now to recurse on shorter partition, store longer partition on stack
413 break; // empty stack && both partitions < QQ so break
415 sj = stack[--m];
416 si = stack[--m];
423 stack[m++] = si;
424 stack[m++] = sL;
432 break; // empty stack && both partitions < QQ so break
434 sj = stack[--m];
435 si = stack[
[all...]
/packages/apps/LegacyCamera/jni/feature_mos/src/mosaic/
H A DDelaunay.cpp372 int stack[DM]; local
409 // Now to recurse on shorter partition, store longer partition on stack
413 break; // empty stack && both partitions < QQ so break
415 sj = stack[--m];
416 si = stack[--m];
423 stack[m++] = si;
424 stack[m++] = sL;
432 break; // empty stack && both partitions < QQ so break
434 sj = stack[--m];
435 si = stack[
[all...]
/packages/apps/Browser/src/com/android/browser/
H A DPieControl.java153 PieStackView stack = new PieStackView(mActivity);
154 stack.setLayoutListener(new OnLayoutListener() {
160 stack.setOnCurrentListener(mTabAdapter);
161 stack.setAdapter(mTabAdapter);
162 mShowTabs.setPieView(stack);
/packages/apps/Calculator/
H A Darity-2.1.2.jar ... .javia.arity.TokenConsumer { java.util.Stack stack int prevTokenId org.javia.arity.TokenConsumer ...
/packages/apps/Mms/src/com/android/mms/data/
H A DContact.java140 StackTraceElement[] stack = current.getStackTrace();
149 int stop = stack.length > 7 ? 7 : stack.length;
151 String methodName = stack[i].getMethodName();
/packages/apps/Mms/src/com/android/mms/ui/
H A DComposeMessageActivity.java351 StackTraceElement[] stack = current.getStackTrace();
352 String methodName = stack[3].getMethodName();

Completed in 334 milliseconds