/external/toybox/toys/other/ |
netcat.c | 151 pid_t child = 0; local 161 child = forkpty(&(pollfds[1].fd), NULL, NULL, NULL); 166 if (toys.optflags&FLAG_L) child = fork(); 167 if (!child && toys.optc) { 177 if (child<0) error_msg("Fork failed\n"); 178 if (child<1) break;
|
/external/valgrind/helgrind/tests/ |
tc07_hbl1.c | 6 /* Simple test program, no race. Parent and child both modify x and 130 pthread_t child; local 132 if (pthread_create(&child, NULL, child_fn, NULL)) { 139 if (pthread_join(child, NULL)) {
|
tc21_pthonce.c | 69 void* child ( void* argV ) { function 73 printf("child: Hi, I'm thread %d\n", *(int*)argV); 87 r= pthread_create(&threads[i], NULL, child, &id_arg[i]);
|
tc24_nonzero_sem.c | 30 pthread_t child[N_THREADS]; local 35 r= pthread_create( &child[i], NULL, child_fn, sem ); 40 r= pthread_join( child[i], NULL );
|
/external/valgrind/memcheck/tests/ |
err_disable4.c | 78 pthread_t child[NTHREADS]; local 101 r = pthread_create(&child[i], &attr, child_fn_1, NULL); 116 r = pthread_join(child[i], NULL); assert(!r); 128 r = pthread_create(&child[i], &attr, child_fn_2, NULL); 143 r = pthread_join(child[i], NULL); assert(!r);
|
/external/valgrind/none/tests/ |
pth_atfork1.c | 65 child (void) function 80 pthread_atfork (prepare, parent, child); 104 /* We check whether the `prepare' and `child' function ran. */ 111 error (EXIT_FAILURE, errno, "wrong child"); 114 error (EXIT_FAILURE, 0, "Child terminated incorrectly");
|
/frameworks/support/v17/leanback/src/android/support/v17/leanback/widget/ |
BrowseRowsFrameLayout.java | 22 * Customized FrameLayout excludes margin of child from calculating the child size. 43 protected void measureChildWithMargins(View child, 46 final MarginLayoutParams lp = (MarginLayoutParams) child.getLayoutParams(); 51 child.measure(childWidthMeasureSpec, childHeightMeasureSpec);
|
/libcore/luni/src/main/java/java/util/prefs/ |
NodeChangeEvent.java | 27 * This is the event class to indicate that one child of the preference node has 44 private final Preferences child; field in class:NodeChangeEvent 53 * the child {@code Preferences} instance that was added or deleted. 58 child = c; 71 * Gets the child {@code Preferences} node that was added or removed. 73 * @return the added or removed child {@code Preferences} node. 76 return child;
|
/ndk/sources/android/crazy_linker/tests/ |
test_relocated_shared_relro.cpp | 38 pid_t child = fork(); local 39 if (child < 0) 42 if (child == 0) { 43 // In the child. 47 printf("Child waiting for foo relro fd\n"); 52 printf("RELRO used in child process\n"); 82 printf("Relocated RELRO sent to child\n"); 86 printf("Parent waiting for child\n"); 88 // Wait for child to complete. 90 waitpid(child, &status, 0) [all...] |
/ndk/sources/cxx-stl/llvm-libc++abi/libcxxabi/test/ |
inherited_exception.cpp | 20 struct Child : public Base, public Base2 { 25 Child child; local 26 child.b1 = 10; 27 child.b2 = 11; 28 child.c = 12; 29 throw child; 33 Child child; local 34 child.b1 = 10 41 Child* child = new Child; local [all...] |
/packages/apps/Browser/src/com/android/browser/view/ |
EventRedirectingFrameLayout.java | 52 View child = getChildAt(mTargetChild); local 53 if (child != null) 54 return child.dispatchTouchEvent(ev); 60 View child = getChildAt(mTargetChild); local 61 if (child != null) 62 return child.dispatchKeyEvent(event); 68 View child = getChildAt(mTargetChild); local 69 if (child != null) 70 return child.dispatchKeyEventPreIme(event);
|
/packages/apps/Launcher2/src/com/android/launcher2/ |
PagedViewCellLayoutChildren.java | 50 final View child = getChildAt(i); local 51 child.cancelLongPress(); 68 public void requestChildFocus(View child, View focused) { 69 super.requestChildFocus(child, focused); 70 if (child != null) { 72 child.getDrawingRect(r); 91 View child = getChildAt(i); local 93 (PagedViewCellLayout.LayoutParams) child.getLayoutParams(); 103 child.measure(childWidthMeasureSpec, childheightMeasureSpec); 119 View child = getChildAt(i) local 132 View child = getChildAt(i); local [all...] |
/packages/apps/LegacyCamera/src/com/android/camera/ui/ |
StackLayout.java | 24 // A layout designed to make the children same size as the first child. 36 // Measure only the first child. 37 final View child = getChildAt(0); local 38 measureChild(child, widthMeasureSpec, heightMeasureSpec); 41 int width = child.getMeasuredWidth(); 42 int height = child.getMeasuredHeight(); 53 final View child = getChildAt(i); local 54 if (child.getVisibility() != View.GONE) { 55 child.layout(0, 0, r - l, b - t);
|
/packages/apps/Settings/src/com/android/settings/ |
CheckableLinearLayout.java | 65 View child = getChildAt(i); local 66 if (child instanceof Checkable) { 67 ((Checkable) child).setChecked(mChecked);
|
/development/samples/devbytes/animation/ToonGame/src/com/example/android/toongame/ |
PlayerSetupActivity.java | 133 Button child = (Button) parent.getChildAt(i); local 134 if (child != clickedView) { 135 child.animate().alpha(0); 138 child.setVisibility(View.INVISIBLE); 139 buttonCopy.setBackground(child.getBackground()); 140 buttonCopy.setText(((Button) child).getText()); 148 buttonCopy.setPadding(child.getPaddingLeft(), child.getPaddingTop(), 149 child.getPaddingRight(), child.getPaddingBottom()) 297 View child = parent.getChildAt(i); local [all...] |
/packages/apps/Launcher3/src/com/android/launcher3/ |
ShortcutAndWidgetContainer.java | 71 View child = getChildAt(i); local 72 CellLayout.LayoutParams lp = (CellLayout.LayoutParams) child.getLayoutParams(); 76 return child; 91 final View child = getChildAt(i); local 92 final CellLayout.LayoutParams lp = (CellLayout.LayoutParams) child.getLayoutParams(); 109 View child = getChildAt(i); local 110 if (child.getVisibility() != GONE) { 111 measureChild(child); 142 public void measureChild(View child) { 146 CellLayout.LayoutParams lp = (CellLayout.LayoutParams) child.getLayoutParams() 180 final View child = getChildAt(i); local 223 final View child = getChildAt(i); local [all...] |
/development/samples/HoneycombGallery/src/com/example/android/hcgallery/ |
FitCenterFrameLayout.java | 25 * A simple layout that fits and centers each child view, maintaining aspect ratio. 38 // We purposely disregard child measurements. 68 final View child = getChildAt(i); local 69 if (child.getVisibility() == GONE) { 73 // Fit and center the child within the parent. Make sure not to consider padding 74 // as part of the child's aspect ratio. 76 childPaddingLeft = child.getPaddingLeft(); 77 childPaddingTop = child.getPaddingTop(); 78 childPaddingRight = child.getPaddingRight(); 79 childPaddingBottom = child.getPaddingBottom() [all...] |
/development/samples/devbytes/animation/ActivityAnimations/src/com/example/android/activityanim/ |
ShadowLayout.java | 92 * Overriding onDraw allows us to draw shadows behind every child of this container. 99 View child = getChildAt(i); local 100 if (child.getVisibility() != View.VISIBLE || child.getAlpha() == 0) { 105 canvas.translate(child.getLeft() + depthFactor, 106 child.getTop() + depthFactor); 107 canvas.concat(child.getMatrix()); 108 tempShadowRectF.right = child.getWidth(); 109 tempShadowRectF.bottom = child.getHeight();
|
/external/jetty/src/java/org/eclipse/jetty/server/handler/ |
HandlerWrapper.java | 173 Handler child=getHandler(); local 174 if (child!=null) 177 child.destroy();
|
HotSwapHandler.java | 168 Handler child = getHandler(); local 169 if (child != null) 172 child.destroy();
|
/frameworks/base/core/java/android/widget/ |
AbsoluteLayout.java | 68 // Find rightmost and bottom-most child 70 View child = getChildAt(i); local 71 if (child.getVisibility() != GONE) { 76 = (AbsoluteLayout.LayoutParams) child.getLayoutParams(); 78 childRight = lp.x + child.getMeasuredWidth(); 79 childBottom = lp.y + child.getMeasuredHeight(); 115 View child = getChildAt(i); local 116 if (child.getVisibility() != GONE) { 119 (AbsoluteLayout.LayoutParams) child.getLayoutParams(); 123 child.layout(childLeft, childTop [all...] |
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/hotspot2/omadm/ |
OMAConstructed.java | 23 OMANode child = value != null ? local 26 mChildren.put(name.toLowerCase(), child); local 27 return child; 36 throw new IOException("No child node '" + element + "' in " + getPathString()); 38 throw new IOException("Cannot add child to leaf node: " + getPathString()); 49 OMANode child = mChildren.get(tag.toLowerCase()); local 50 if (child != null) { 51 return child.getScalarValue(path); 63 OMANode child = mChildren.get(tag.toLowerCase()); local 64 if (child != null) [all...] |
/packages/apps/Gallery/src/com/android/camera/ |
EvenlySpacedLayout.java | 54 View child = getChildAt(i); local 55 if (child.getVisibility() == GONE) continue; 56 measureChild(child, widthMeasureSpec, heightMeasureSpec); 58 width += child.getMeasuredWidth(); 59 height = Math.max(height, child.getMeasuredHeight()); 61 height += child.getMeasuredHeight(); 62 width = Math.max(width, child.getMeasuredWidth()); 75 View child = getChildAt(i); local 76 if (child.getVisibility() == GONE) continue; 77 usedWidth += child.getMeasuredWidth() 86 View child = getChildAt(i); local 102 View child = getChildAt(i); local 113 View child = getChildAt(i); local [all...] |
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/common/layout/relative/ |
DeletionHandler.java | 72 for (INode child : mChildren) { 73 String id = child.getStringAttr(ANDROID_URI, ATTR_ID); 75 mNodeMap.put(stripIdPrefix(id), child); local 131 for (INode child : mChildren) { 132 if (mDeleted.contains(child)) { 136 for (IAttribute attribute : child.getLiveAttributes()) { 145 child.setAttribute(ANDROID_URI, name, null); 151 transfer(deleted, child, type, 0);
|
/cts/tests/tests/widget/src/android/widget/cts/ |
LayoutDirectionTest.java | 75 LinearLayout child = new LinearLayout(getActivity()); local 76 child.setLayoutDirection(LAYOUT_DIRECTION_INHERIT); 77 parent.addView(child); 83 assertEquals(LAYOUT_DIRECTION_LTR, child.getLayoutDirection()); 89 assertEquals(LAYOUT_DIRECTION_RTL, child.getLayoutDirection());
|