Home
last modified time | relevance | path

Searched refs:parent (Results 1 – 25 of 873) sorted by relevance

12345678910>>...35

/packages/providers/MediaProvider/jni/
Dnode_test.cpp33 unique_node_ptr CreateNode(node* parent, const std::string& path, const int transforms = 0) { in CreateNode() argument
35 node::Create(parent, path, "", true, transforms, 0, &lock_, 0, &tracker_), in CreateNode()
57 unique_node_ptr parent = CreateNode(nullptr, "/path"); in TEST_F() local
58 ASSERT_EQ(1, GetRefCount(parent.get())); in TEST_F()
61 unique_node_ptr child = CreateNode(parent.get(), "subdir"); in TEST_F()
62 ASSERT_EQ(2, GetRefCount(parent.get())); in TEST_F()
65 ASSERT_EQ(child.get(), parent->LookupChildByName("subdir", false /* acquire */)); in TEST_F()
87 unique_node_ptr parent = CreateNode(nullptr, "/path"); in TEST_F() local
89 unique_node_ptr child = CreateNode(parent.get(), "subdir"); in TEST_F()
90 ASSERT_EQ(2, GetRefCount(parent.get())); in TEST_F()
[all …]
/packages/modules/NeuralNetworks/tools/systrace_parser/parser/
Dtree.py80 elif node.phase() == PHASE_INITIALIZATION and node.parent.phase() != PHASE_INITIALIZATION:
82 elif (node.parent and node.parent.layer == LAYER_APPLICATION and
84 node.parent.phase() != node.phase() and node.parent.phase() != PHASE_OVERALL and
95 assert node.parent
96 new_parent = node.parent
102 new_parent = new_parent.parent
107 new_parent = new_parent.parent
111 new_parent = new_parent.parent
113 new_parent = new_parent.parent
128 (node.parent.layer == LAYER_APPLICATION and
[all …]
/packages/apps/WallpaperPicker2/src/com/android/wallpaper/picker/customization/ui/binder/
DWallpaperQuickSwitchSectionBinder.kt63 parent = optionContainer, in <lambda>()
77 parent: ViewGroup, in <lambda>()
84 parent.removeAllViews() in <lambda>()
87 val (largeOptionWidth, smallOptionWidth) = calculateSizes(parent, options.size) in <lambda>()
95 parent = parent, in <lambda>()
97 parent.addView(optionView) in <lambda>()
117 parent: View, in <lambda>()
122 val largeOptionWidth = parent.height - parent.paddingTop - parent.paddingBottom in <lambda>()
126 parent.width - parent.paddingStart - parent.paddingEnd in <lambda>()
128 val spacingWidth = parent.dimensionResource(R.dimen.spacing_8dp) in <lambda>()
[all …]
/packages/apps/Dialer/java/com/android/dialer/common/
DFragmentUtils.java45 T parent = (T) parentForTesting; in getParent() local
46 return parent; in getParent()
52 T parent = (T) parentFragment; in getParent() local
53 return parent; in getParent()
56 T parent = (T) fragment.getActivity(); in getParent() local
57 return parent; in getParent()
60 T parent = ((FragmentUtilListener) fragment.getActivity()).getImpl(callbackInterface); in getParent() local
61 return parent; in getParent()
81 T parent = (T) parentForTesting; in getParent() local
82 return parent; in getParent()
[all …]
/packages/services/Telephony/src/com/android/phone/settings/
DVoicemailDialogUtil.java39 public static Dialog getDialog(VoicemailSettingsActivity parent, int id) { in getDialog() argument
44 AlertDialog.Builder b = new AlertDialog.Builder(parent); in getDialog()
53 b.setNegativeButton(R.string.close_dialog, parent); in getDialog()
61 b.setNegativeButton(R.string.close_dialog, parent); in getDialog()
66 b.setPositiveButton(R.string.close_dialog, parent); in getDialog()
71 b.setPositiveButton(R.string.close_dialog, parent); in getDialog()
75 b.setPositiveButton(R.string.alert_dialog_yes, parent); in getDialog()
76 b.setNegativeButton(R.string.alert_dialog_no, parent); in getDialog()
82 b.setPositiveButton(R.string.ok, parent); in getDialog()
88 b.setNeutralButton(R.string.close_dialog, parent); in getDialog()
[all …]
/packages/apps/TV/common/src/com/android/tv/common/ui/setup/animation/
DFadeAndShortSlide.java149 View parent = view; in findParentForDelay() local
150 while (parent.getParent() instanceof View) { in findParentForDelay()
151 parent = (View) parent.getParent(); in findParentForDelay()
152 if (isParentForDelay(parent.getId())) { in findParentForDelay()
153 return parent; in findParentForDelay()
168 private void getTransitionTargets(ViewGroup parent, List<View> transitionTargets) { in getTransitionTargets() argument
169 int count = parent.getChildCount(); in getTransitionTargets()
171 View child = parent.getChildAt(i); in getTransitionTargets()
356 ViewParent parent = child.getParent(); in getRelativeLeft() local
358 while (parent instanceof View) { in getRelativeLeft()
[all …]
/packages/modules/Permission/SafetyCenter/Config/java/com/android/safetycenter/config/
DSafetyCenterConfigParser.java453 private static ParseException attributeUnexpected(String parent, String name) { in attributeUnexpected() argument
454 return new ParseException(String.format("Unexpected attribute %s.%s", parent, name)); in attributeUnexpected()
457 private static String attributeInvalidString(String valueString, String parent, String name) { in attributeInvalidString() argument
458 return String.format("Attribute value \"%s\" in %s.%s invalid", valueString, parent, name); in attributeInvalidString()
461 private static ParseException attributeInvalid(String valueString, String parent, String name) { in attributeInvalid() argument
462 return new ParseException(attributeInvalidString(valueString, parent, name)); in attributeInvalid()
466 String valueString, String parent, String name, Throwable ex) { in attributeInvalid() argument
467 return new ParseException(attributeInvalidString(valueString, parent, name), ex); in attributeInvalid()
471 String valueString, String parent, String name, Resources resources) in parseInteger() argument
473 String valueToParse = getValueToParse(valueString, parent, name, resources); in parseInteger()
[all …]
/packages/apps/WallpaperPicker2/src/com/android/wallpaper/widget/
DGridPaddingDecorationCreativeCategory.java47 public void getItemOffsets(Rect outRect, View view, RecyclerView parent, in getItemOffsets() argument
49 int position = parent.getChildAdapterPosition(view); in getItemOffsets()
50 int spanCount = getSpanCount(parent); in getItemOffsets()
51 boolean isRtl = isRtlLayout(parent); in getItemOffsets()
54 if (parent.getAdapter().getItemViewType(position) in getItemOffsets()
58 int totalHorizontalSpace = parent.getWidth() in getItemOffsets()
59 - parent.getPaddingLeft() in getItemOffsets()
60 - parent.getPaddingRight() in getItemOffsets()
99 } else if ((parent.getAdapter().getItemViewType(position) == ITEM_VIEW_TYPE_HEADER) in getItemOffsets()
100 || (parent.getAdapter().getItemViewType(position) in getItemOffsets()
[all …]
/packages/modules/Bluetooth/system/gd/packet/parser/
Dpacket_dependency.cc40 const ParentDef* parent, in CollectInitialParseAndMatchFields() argument
43 if (parent->children_.empty()) { in CollectInitialParseAndMatchFields()
44 auto constraints = parent->GetAllConstraints(); in CollectInitialParseAndMatchFields()
53 auto parent_constraints = parent->GetAllConstraints(); in CollectInitialParseAndMatchFields()
54 auto parent_fields = parent->fields_; in CollectInitialParseAndMatchFields()
56 for (const auto child : parent->children_) { in CollectInitialParseAndMatchFields()
88 const ParentDef* parent, in FinalizeParseAndMatchFields() argument
92 if (parent->parent_ == nullptr) { in FinalizeParseAndMatchFields()
93 dependencies[parent->name_] = std::vector<std::string>{}; in FinalizeParseAndMatchFields()
94 children_dependencies[parent->name_] = std::vector<std::string>{}; in FinalizeParseAndMatchFields()
[all …]
/packages/apps/Gallery2/src/com/android/gallery3d/ingest/ui/
DMtpImageView.java248 MtpImageView parent = ((WeakReference<MtpImageView>) msg.obj).get(); in handleMessage() local
249 if (parent == null) { in handleMessage()
254 synchronized (parent.mFetchLock) { in handleMessage()
255 parent.mFetchPending = false; in handleMessage()
256 device = parent.mFetchDevice; in handleMessage()
257 objectInfo = parent.mFetchObjectInfo; in handleMessage()
262 Object result = parent.fetchMtpImageDataFromDevice(device, objectInfo); in handleMessage()
266 synchronized (parent.mFetchLock) { in handleMessage()
267 if (parent.mFetchObjectInfo != objectInfo) { in handleMessage()
270 parent.mFetchResult = result; in handleMessage()
[all …]
/packages/apps/DeskClock/src/com/android/deskclock/widget/toast/
DSnackbarSlidingBehavior.kt38 parent: CoordinatorLayout, in layoutDependsOn()
46 parent: CoordinatorLayout, in onDependentViewChanged()
50 updateTranslationY(parent, child) in onDependentViewChanged()
54 override fun onDependentViewRemoved(parent: CoordinatorLayout, child: View, dependency: View) { in onDependentViewRemoved()
55 updateTranslationY(parent, child) in onDependentViewRemoved()
59 parent: CoordinatorLayout, in onLayoutChild()
63 updateTranslationY(parent, child) in onLayoutChild()
67 private fun updateTranslationY(parent: CoordinatorLayout, child: View) { in updateTranslationY()
69 for (dependency in parent.getDependencies(child)) { in updateTranslationY()
/packages/apps/Launcher3/src/com/android/launcher3/
DUtilitiesKt.kt107 parent: ViewParent?, in modifyAttributesOnViewTree()
118 if (v === parent) { in modifyAttributesOnViewTree()
121 if (v.parent is View) { in modifyAttributesOnViewTree()
122 modifyAttributesOnViewTree(v.parent as View, parent, *modifiers) in modifyAttributesOnViewTree()
141 parent: ViewParent?, in restoreAttributesOnViewTree()
152 if (v === parent) { in restoreAttributesOnViewTree()
155 if (v.parent is View) { in restoreAttributesOnViewTree()
156 restoreAttributesOnViewTree(v.parent as View, parent, *modifiers) in restoreAttributesOnViewTree()
/packages/services/Telecomm/testapps/src/com/android/server/telecom/testapps/
DSelfManagedCallListAdapter.java44 View parent = (View) v.getParent().getParent();
45 SelfManagedConnection connection = (SelfManagedConnection) parent.getTag();
57 View parent = (View) v.getParent().getParent();
58 SelfManagedConnection connection = (SelfManagedConnection) parent.getTag();
70 View parent = (View) v.getParent().getParent();
71 SelfManagedConnection connection = (SelfManagedConnection) parent.getTag();
80 View parent = (View) v.getParent().getParent();
81 SelfManagedConnection connection = (SelfManagedConnection) parent.getTag();
90 View parent = (View) v.getParent().getParent();
91 SelfManagedConnection connection = (SelfManagedConnection) parent.getTag();
[all …]
/packages/apps/Settings/src/com/android/settings/notification/app/
DImportancePreference.java167 void setImportanceSummary(ViewGroup parent, int importance, boolean fromUser) { in setImportanceSummary() argument
171 TransitionManager.beginDelayedTransition(parent, transition); in setImportanceSummary()
178 parent.findViewById(R.id.silence_summary).setVisibility(GONE); in setImportanceSummary()
179 ((ImageView) parent.findViewById(R.id.silence_icon)).setImageTintList(colorUnselected); in setImportanceSummary()
180 ((TextView) parent.findViewById(R.id.silence_label)).setTextColor(colorUnselected); in setImportanceSummary()
182 ((ImageView) parent.findViewById(R.id.alert_icon)).setImageTintList(colorSelected); in setImportanceSummary()
183 ((TextView) parent.findViewById(R.id.alert_label)).setTextColor(colorSelected); in setImportanceSummary()
185 parent.findViewById(R.id.alert_summary).setVisibility(VISIBLE); in setImportanceSummary()
187 parent.findViewById(R.id.alert_summary).setVisibility(GONE); in setImportanceSummary()
188 ((ImageView) parent.findViewById(R.id.alert_icon)).setImageTintList(colorUnselected); in setImportanceSummary()
[all …]
/packages/modules/Bluetooth/android/leaudio/app/src/main/java/com/android/bluetooth/leaudio/
DLeAudioRecycleViewAdapter.java74 private final AppCompatActivity parent; field in LeAudioRecycleViewAdapter
86 this.parent = context; in LeAudioRecycleViewAdapter()
92 public ViewHolder onCreateViewHolder(@NonNull ViewGroup parent, int viewType) { in onCreateViewHolder() argument
94 LayoutInflater.from(parent.getContext()) in onCreateViewHolder()
95 .inflate(R.layout.le_audio_device_fragment, parent, false); in onCreateViewHolder()
108 parent.getString(R.string.notes_icon) in onBindViewHolder()
122 parent.getString( in onBindViewHolder()
131 parent.getString( in onBindViewHolder()
141 parent.getString(R.string.svc_uuid_has)))); in onBindViewHolder()
149 parent.getString( in onBindViewHolder()
[all …]
/packages/apps/Dialer/java/com/android/dialer/app/calllog/
DCallLogAlertManager.java33 private final ViewGroup parent; field in CallLogAlertManager
36 public CallLogAlertManager(CallLogAdapter adapter, LayoutInflater inflater, ViewGroup parent) { in CallLogAlertManager() argument
39 this.parent = parent; in CallLogAlertManager()
40 view = inflater.inflate(R.layout.call_log_alert_item, parent, false); in CallLogAlertManager()
49 public RecyclerView.ViewHolder createViewHolder(ViewGroup parent) { in createViewHolder() argument
51 parent == this.parent, in createViewHolder()
DCallLogModalAlertManager.java36 private final ViewGroup parent; field in CallLogModalAlertManager
40 public CallLogModalAlertManager(LayoutInflater inflater, ViewGroup parent, Listener listener) { in CallLogModalAlertManager() argument
42 this.parent = parent; in CallLogModalAlertManager()
44 container = (ViewGroup) parent.findViewById(R.id.modal_message_container); in CallLogModalAlertManager()
49 return inflater.inflate(layoutId, parent, false); in inflate()
/packages/apps/Messaging/src/com/android/messaging/ui/
DAttachmentPreviewFactory.java65 final MessagePartData attachmentData, final ViewGroup parent, in createAttachmentPreview() argument
71 attachmentView = createPendingAttachmentPreview(layoutInflater, parent, in createAttachmentPreview()
74 attachmentView = createImagePreview(layoutInflater, attachmentData, parent, viewType, in createAttachmentPreview()
77 attachmentView = createAudioPreview(layoutInflater, attachmentData, parent, viewType); in createAttachmentPreview()
79 attachmentView = createVideoPreview(layoutInflater, attachmentData, parent, viewType); in createAttachmentPreview()
81 attachmentView = createVCardPreview(layoutInflater, attachmentData, parent, viewType); in createAttachmentPreview()
150 final MessagePartData attachmentData, final ViewGroup parent, in createImagePreview() argument
167 final View view = layoutInflater.inflate(layoutId, parent, false /* attachToRoot */); in createImagePreview()
188 parent.getResources().getString(R.string.message_image_content_description)); in createImagePreview()
193 final ViewGroup parent, final PendingAttachmentData attachmentData) { in createPendingAttachmentPreview() argument
[all …]
/packages/apps/WallpaperPicker2/src/com/android/wallpaper/picker/customization/ui/view/
DWallpaperSurfaceView.kt39 var parent: ViewParent? = v.parent in onViewAttachedToWindow() variable
40 while (parent != null && scrollContainer == null) { in onViewAttachedToWindow()
41 parent = parent.parent in onViewAttachedToWindow()
42 val view = parent as? View in onViewAttachedToWindow()
/packages/screensavers/PhotoTable/src/com/android/dreams/phototable/
DBummerView.java43 final View parent = (View) BummerView.this.getParent();
44 if (parent == null)
47 final float framew = parent.getMeasuredWidth();
48 final float frameh = parent.getMeasuredHeight();
92 final View parent = (View) this.getParent(); in onAttachedToWindow() local
93 parent.addOnLayoutChangeListener(new OnLayoutChangeListener() { in onAttachedToWindow()
96 if (v == parent && right != oldRight) { in onAttachedToWindow()
/packages/modules/Connectivity/Tethering/src/com/android/networkstack/tethering/util/
DSyncStateMachine.java69 public final State parent; field in SyncStateMachine.StateInfo
73 public StateInfo(@NonNull final State child, @Nullable final State parent) { in StateInfo() argument
75 this.parent = parent; in StateInfo()
139 if (info.parent != null) ensureExistingState(info.parent); in addAllStates()
211 consideredState = mStateInfo.get(consideredState.parent); in currentStateProcessMessageThenPerformTransitions()
277 return getLastActiveAncestor(mStateInfo.get(start.parent)); in getLastActiveAncestor()
296 executeExitMethods(commonAncestor, mStateInfo.get(exitingState.parent)); in executeExitMethods()
312 executeEnterMethods(commonAncestor, mStateInfo.get(enteringState.parent)); in executeEnterMethods()
/packages/apps/Settings/src/com/android/settings/applications/manageapplications/
DApplicationViewHolder.java88 static View newView(ViewGroup parent) { in newView() argument
89 return newView(parent, false /* twoTarget */, LIST_TYPE_NONE /* listType */); in newView()
92 static View newView(ViewGroup parent, boolean twoTarget, int listType) { in newView() argument
93 ViewGroup view = (ViewGroup) LayoutInflater.from(parent.getContext()) in newView()
94 … .inflate(com.android.settingslib.widget.preference.app.R.layout.preference_app, parent, false); in newView()
99 LayoutInflater.from(parent.getContext()) in newView()
102 LayoutInflater.from(parent.getContext()).inflate( in newView()
106 View divider = LayoutInflater.from(parent.getContext()).inflate( in newView()
118 static View newHeader(ViewGroup parent, int resText) { in newHeader() argument
119 ViewGroup view = (ViewGroup) LayoutInflater.from(parent.getContext()) in newHeader()
[all …]
/packages/apps/Launcher3/tests/src/com/android/launcher3/util/viewcapture_analysis/
DViewCaptureAnalyzer.java51 public AnalysisNode parent; field in ViewCaptureAnalyzer.AnalysisNode
185 private static void analyzeView(long frameTimeNs, ViewNode viewCaptureNode, AnalysisNode parent, in analyzeView() argument
191 final float parentAlpha = parent != null ? parent.alpha : 1; in analyzeView()
199 final float parentScaleX = parent != null ? parent.scaleX : 1; in analyzeView()
200 final float parentScaleY = parent != null ? parent.scaleY : 1; in analyzeView()
219 newAnalysisNode.parent = parent; in analyzeView()
301 for (AnalysisNode ancestor = analysisNode.parent; in diagPathFromRoot()
303 ancestor = ancestor.parent) { in diagPathFromRoot()
/packages/apps/Launcher3/src/com/android/launcher3/allapps/
DPrivateAppsSectionDecorator.java40 public void onDraw(Canvas c, RecyclerView parent, RecyclerView.State state) { in onDraw() argument
43 for (int i = 0; i < parent.getChildCount(); i++) { in onDraw()
44 View view = parent.getChildAt(i); in onDraw()
45 int position = parent.getChildAdapterPosition(view); in onDraw()
60 decorationHandler, parent.getPaddingLeft(), in onDraw()
61 parent.getPaddingRight())); in onDraw()
/packages/services/Car/car-lib/native/include/
DCarPowerManager.h80 explicit CarPowerStateListener(CarPowerManager* parent) : mParent(parent) {} in CarPowerStateListener() argument
83 android::sp<CarPowerManager> parent = mParent; in onStateChanged() local
84 if ((parent == nullptr) || (parent->mListener == nullptr)) { in onStateChanged()
91 parent->mListener(static_cast<State>(state)); in onStateChanged()

12345678910>>...35