Lines Matching defs:box
229 final StackBox box = mStackBoxes.get(stackBoxNdx);
232 // Position indicates a new box is added at top level only.
233 if (box.contains(relativeStackBoxId)) {
245 // Remaining position values indicate a box must be split.
246 newStack = box.split(stackId, relativeStackBoxId, position, weight);
266 final StackBox box = mStackBoxes.get(stackBoxNdx);
267 if (box.resize(stackBoxId, weight)) {
275 void addStackBox(StackBox box, boolean toTop) {
279 mStackBoxes.add(toTop ? mStackBoxes.size() : 0, box);
282 void removeStackBox(StackBox box) {
283 if (DEBUG_STACK) Slog.d(TAG, "removeStackBox: box=" + box);
284 final TaskStack stack = box.mStack;
290 mStackBoxes.remove(box);
293 StackBoxInfo getStackBoxInfo(StackBox box) {
295 info.stackBoxId = box.mStackBoxId;
296 info.weight = box.mWeight;
297 info.vertical = box.mVertical;
298 info.bounds = new Rect(box.mBounds);
299 if (box.mStack != null) {
300 info.stackId = box.mStack.mStackId;
305 info.children[0] = getStackBoxInfo(box.mFirst);
306 info.children[1] = getStackBoxInfo(box.mSecond);