Searched refs:id (Results 101 - 125 of 1901) sorted by relevance

1234567891011>>

/frameworks/data-binding/integration-tests/TestApp/app/src/main/java/android/databinding/testapp/vo/
H A DViewBindingObject.java29 private int mNextFocusForward = R.id.padding;
31 private int mNextFocusLeft = R.id.paddingStartEnd;
33 private int mNextFocusRight = R.id.paddingTopBottom;
35 private int mNextFocusUp = R.id.backgroundTint;
37 private int mNextFocusDown = R.id.fadeScrollbars;
158 mNextFocusForward = R.id.paddingStartEnd;
159 mNextFocusLeft = R.id.paddingTopBottom;
160 mNextFocusRight = R.id.backgroundTint;
161 mNextFocusUp = R.id.fadeScrollbars;
162 mNextFocusDown = R.id
[all...]
/frameworks/support/v7/appcompat/src/android/support/v7/app/
H A DNotificationCompatImplBase.java73 view.removeAllViews(R.id.media_actions);
84 view.addView(R.id.media_actions, button);
88 view.setViewVisibility(R.id.end_padder, View.GONE);
89 view.setViewVisibility(R.id.cancel_action, View.VISIBLE);
90 view.setOnClickPendingIntent(R.id.cancel_action, cancelButtonIntent);
91 view.setInt(R.id.cancel_action, "setAlpha",
94 view.setViewVisibility(R.id.end_padder, View.VISIBLE);
95 view.setViewVisibility(R.id.cancel_action, View.GONE);
123 big.removeAllViews(R.id.media_actions);
127 big.addView(R.id
[all...]
/frameworks/support/v8/renderscript/java/src/android/support/v8/renderscript/
H A DScriptC.java42 * @param id
45 protected ScriptC(long id, RenderScript rs) { argument
46 super(id, rs);
59 long id = internalCreate(rs, resources, resourceID);
60 if (id == 0) {
63 setID(id);
76 long id = 0;
78 id = internalStringCreate(rs, resName, bitcode32);
80 id = internalStringCreate(rs, resName, bitcode64);
82 if (id
[all...]
/frameworks/base/media/tests/SoundPoolTest/src/com/android/
H A DSoundPoolTest.java96 int id = mSoundPool.load(getApplicationContext(), resId, priority);
97 if (id == 0) {
100 return id;
134 int id = mSoundPool.play(mSounds[index], DEFAULT_VOLUME, DEFAULT_VOLUME,
136 if (DEBUG) Log.d(LOG_TAG, "Start note " + id);
137 if (id == 0) {
142 mSoundPool.stop(id);
143 if (DEBUG) Log.d(LOG_TAG, "Stop note " + id);
156 int id = mSoundPool.play(mSounds[0], DEFAULT_VOLUME, DEFAULT_VOLUME,
158 if (DEBUG) Log.d(LOG_TAG, "Start note " + id);
[all...]
/frameworks/data-binding/compiler/src/test/java/android/databinding/tool/
H A DLayoutBinderTest.java55 final IdentifierExpr id = (IdentifierExpr) value;
56 assertEquals("test", id.getName());
57 assertEquals(new JavaClass(String.class), id.getResolvedType());
58 assertTrue(id.isDynamic());
69 final IdentifierExpr id = (IdentifierExpr) value;
70 assertEquals("test", id.getName());
71 assertEquals(new JavaClass(String.class), id.getResolvedType());
72 assertFalse(id.isDynamic());
85 IdentifierExpr id = mExprModel.identifier("user");
88 assertEquals(2, id
[all...]
/frameworks/base/core/tests/coretests/src/android/view/
H A DSetTagsTest.java39 mView = (Button) getActivity().findViewById(R.id.disabledButton);
64 mView.setTag(R.id.a, "2");
70 mView.setTag(R.id.a, o);
72 final Object stored = mView.getTag(R.id.a);
81 mView.setTag(android.R.id.list, "2");
85 assertTrue("Setting a tag with a framework id did not throw an exception", result);
96 assertTrue("Setting a tag with an id with no package did not throw an exception", result);
101 mView.setTagInternal(android.R.id.list, "2");
108 mView.setTagInternal(R.id.a, "2");
112 assertTrue("Setting a tag with an id wit
[all...]
/frameworks/base/core/tests/coretests/src/android/widget/scroll/
H A DRequestRectangleVisible.java44 final View childToMakeVisible = findViewById(R.id.childToMakeVisible);
46 final TextView topBlob = (TextView) findViewById(R.id.topBlob);
47 final TextView bottomBlob = (TextView) findViewById(R.id.bottomBlob);
58 findViewById(R.id.scrollToRectFromTop).setOnClickListener(new View.OnClickListener() {
66 findViewById(R.id.scrollToRectFromTop2).setOnClickListener(new View.OnClickListener() {
74 findViewById(R.id.scrollToRectFromBottom).setOnClickListener(new View.OnClickListener() {
82 findViewById(R.id.scrollToRectFromBottom2).setOnClickListener(new View.OnClickListener() {
/frameworks/base/packages/SystemUI/src/com/android/systemui/egg/
H A DMLandActivity.java33 mLand = (MLand) findViewById(R.id.world);
34 mLand.setScoreFieldHolder((ViewGroup) findViewById(R.id.scores));
35 final View welcome = findViewById(R.id.welcome);
45 final View minus = findViewById(R.id.player_minus_button);
46 final View plus = findViewById(R.id.player_plus_button);
87 findViewById(R.id.player_minus_button).setVisibility(View.INVISIBLE);
88 findViewById(R.id.player_plus_button).setVisibility(View.INVISIBLE);
/frameworks/base/tests/TransitionTests/src/com/android/transitiontests/
H A DDemo4.java41 View container = (View) findViewById(R.id.container);
49 fade.addTarget(R.id.resultsText).addTarget(R.id.resultsList);
53 addTransition(new ChangeBounds().addTarget(R.id.searchContainer)).
54 addTransition(new Recolor().addTarget(R.id.container));
58 addTransition(new ChangeBounds().addTarget(R.id.searchContainer)).
59 addTransition(new Recolor().addTarget(R.id.container));
H A DFadingTest.java37 sFade.addTarget(R.id.removingButton).addTarget(R.id.invisibleButton).
38 addTarget(R.id.goneButton);
46 View container = (View) findViewById(R.id.container);
50 mRemovingButton = (Button) findViewById(R.id.removingButton);
51 mInvisibleButton = (Button) findViewById(R.id.invisibleButton);
52 mGoneButton = (Button) findViewById(R.id.goneButton);
/frameworks/native/services/inputflinger/host/
H A DInputDriver.cpp61 input_device_identifier_t* id; member in struct:input_device_handle
79 std::size_t operator()(const input_collection_id& id) const {
80 return std::hash<int>()(static_cast<int>(id));
161 input_collection_id_t id, int32_t arity) {
162 report->collections[id] = {.arity = arity};
166 input_collection_id_t id, input_usage_t usage, int32_t min, int32_t max,
168 if (report->collections.find(id) != report->collections.end()) {
169 report->collections[id].intUsages.push_back({
175 input_collection_id_t id, input_usage_t* usage, size_t usageCount) {
176 if (report->collections.find(id) !
160 inputReportDefinitionAddCollection(input_report_definition_t* report, input_collection_id_t id, int32_t arity) argument
165 inputReportDefinitionDeclareUsageInt(input_report_definition_t* report, input_collection_id_t id, input_usage_t usage, int32_t min, int32_t max, float resolution) argument
174 inputReportDefinitionDeclareUsagesBool(input_report_definition_t* report, input_collection_id_t id, input_usage_t* usage, size_t usageCount) argument
183 registerDevice(input_device_identifier_t* id, input_device_definition_t* d) argument
199 inputReportSetUsageInt(input_report_t* r, input_collection_id_t id, input_usage_t usage, int32_t value, int32_t arity_index) argument
203 inputReportSetUsageBool(input_report_t* r, input_collection_id_t id, input_usage_t usage, bool value, int32_t arity_index) argument
211 inputGetDevicePropertyMap(input_device_identifier_t* id) argument
327 input_report_definition_add_collection(input_host_t* host, input_report_definition_t* report, input_collection_id_t id, int32_t arity) argument
333 input_report_definition_declare_usage_int(input_host_t* host, input_report_definition_t* report, input_collection_id_t id, input_usage_t usage, int32_t min, int32_t max, float resolution) argument
340 input_report_definition_declare_usages_bool(input_host_t* host, input_report_definition_t* report, input_collection_id_t id, input_usage_t* usage, size_t usage_count) argument
347 register_device(input_host_t* host, input_device_identifier_t* id, input_device_definition_t* d) argument
363 input_report_set_usage_int(input_host_t* host, input_report_t* r, input_collection_id_t id, input_usage_t usage, int32_t value, int32_t arity_index) argument
369 input_report_set_usage_bool(input_host_t* host, input_report_t* r, input_collection_id_t id, input_usage_t usage, bool value, int32_t arity_index) argument
380 input_get_device_property_map(input_host_t* host, input_device_identifier_t* id) argument
[all...]
H A DInputDriver.h54 input_collection_id_t id, int32_t arity) = 0;
56 input_collection_id_t id, input_usage_t usage, int32_t min, int32_t max,
59 input_collection_id_t id, input_usage_t* usage, size_t usageCount) = 0;
61 virtual input_device_handle_t* registerDevice(input_device_identifier_t* id,
66 virtual void inputReportSetUsageInt(input_report_t* r, input_collection_id_t id,
68 virtual void inputReportSetUsageBool(input_report_t* r, input_collection_id_t id,
72 virtual input_property_map_t* inputGetDevicePropertyMap(input_device_identifier_t* id) = 0;
101 input_collection_id_t id, int32_t arity) override;
103 input_collection_id_t id, input_usage_t usage, int32_t min, int32_t max,
106 input_collection_id_t id, input_usage_
[all...]
/frameworks/base/tools/layoutlib/bridge/src/android/content/res/
H A DResources_Delegate.java88 private static Pair<ResourceType, String> getResourceInfo(Resources resources, int id, argument
90 // first get the String related to this id in the framework
91 Pair<ResourceType, String> resourceInfo = Bridge.resolveResourceId(id);
106 resourceInfo = resources.mLayoutlibCallback.resolveResourceId(id);
116 private static Pair<String, ResourceValue> getResourceValue(Resources resources, int id, argument
119 getResourceInfo(resources, id, platformResFlag_out);
133 static Drawable getDrawable(Resources resources, int id) { argument
134 return getDrawable(resources, id, null);
138 static Drawable getDrawable(Resources resources, int id, Theme theme) { argument
139 Pair<String, ResourceValue> value = getResourceValue(resources, id, mPlatformResourceFla
153 getColor(Resources resources, int id) argument
158 getColor(Resources resources, int id, Theme theme) argument
188 getColorStateList(Resources resources, int id) argument
193 getColorStateList(Resources resources, int id, Theme theme) argument
214 getText(Resources resources, int id, CharSequence def) argument
233 getText(Resources resources, int id) argument
256 getTextArray(Resources resources, int id) argument
270 getStringArray(Resources resources, int id) argument
300 getIntArray(Resources resources, int id) argument
345 getArrayResourceValue(Resources resources, int id) argument
399 getLayout(Resources resources, int id) argument
444 getAnimation(Resources resources, int id) argument
490 obtainTypedArray(Resources resources, int id) argument
495 getDimension(Resources resources, int id) argument
529 getDimensionPixelOffset(Resources resources, int id) argument
558 getDimensionPixelSize(Resources resources, int id) argument
587 getInteger(Resources resources, int id) argument
614 getBoolean(Resources resources, int id) argument
691 getString(Resources resources, int id, Object... formatArgs) argument
707 getString(Resources resources, int id) argument
722 getValue(Resources resources, int id, TypedValue outValue, boolean resolveRefs) argument
758 getXml(Resources resources, int id) argument
794 loadXmlResourceParser(Resources resources, int id, String type) argument
800 loadXmlResourceParser(Resources resources, String file, int id, int assetCookie, String type) argument
824 openRawResource(Resources resources, int id) argument
859 openRawResource(Resources resources, int id, TypedValue value) argument
886 openRawResourceFd(Resources resources, int id) argument
899 throwException(Resources resources, int id) argument
903 throwException(int id, @Nullable Pair<ResourceType, String> resourceInfo) argument
[all...]
/frameworks/base/tools/aapt2/test/
H A DBuilders.h43 ResourceTableBuilder& setPackageId(const StringPiece16& packageName, uint8_t id) { argument
44 ResourceTablePackage* package = mTable->createPackage(packageName, id);
49 ResourceTableBuilder& addSimple(const StringPiece16& name, const ResourceId id = {}) {
50 return addValue(name, id, util::make_unique<Id>());
57 ResourceTableBuilder& addReference(const StringPiece16& name, const ResourceId id, argument
59 return addValue(name, id, util::make_unique<Reference>(parseNameOrDie(ref)));
66 ResourceTableBuilder& addString(const StringPiece16& name, const ResourceId id, argument
68 return addValue(name, id, util::make_unique<String>(mTable->stringPool.makeRef(str)));
71 ResourceTableBuilder& addString(const StringPiece16& name, const ResourceId id, argument
73 return addValue(name, id, confi
81 addFileReference(const StringPiece16& name, const ResourceId id, const StringPiece16& path) argument
98 addValue(const StringPiece16& name, const ResourceId id, std::unique_ptr<Value> value) argument
103 addValue(const StringPiece16& name, const ResourceId id, const ConfigDescription& config, std::unique_ptr<Value> value) argument
113 setSymbolState(const StringPiece16& name, ResourceId id, SymbolState state) argument
210 addItem(const StringPiece16& str, ResourceId id, std::unique_ptr<Item> value) argument
[all...]
/frameworks/base/core/java/com/android/internal/app/
H A DHeavyWeightSwitcherActivity.java75 setIconAndText(R.id.old_app_icon, R.id.old_app_action, R.id.old_app_description,
77 setIconAndText(R.id.new_app_icon, R.id.new_app_action, R.id.new_app_description,
80 View button = findViewById((R.id.switch_old));
82 button = findViewById((R.id.switch_new));
84 button = findViewById((R.id.cancel));
93 void setText(int id, CharSequenc argument
97 setDrawable(int id, Drawable dr) argument
[all...]
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/graph/
H A DUsageView.java38 mUsageGraph = (UsageGraph) findViewById(R.id.usage_graph);
40 (TextView) findViewById(R.id.label_bottom),
41 (TextView) findViewById(R.id.label_middle),
42 (TextView) findViewById(R.id.label_top),
45 (TextView) findViewById(R.id.label_start),
46 (TextView) findViewById(R.id.label_end),
67 LinearLayout layout = (LinearLayout) findViewById(R.id.graph_label_group);
68 LinearLayout labels = (LinearLayout) findViewById(R.id.label_group);
75 LinearLayout bottomLabels = (LinearLayout) findViewById(R.id.bottom_label_group);
111 setWeight(R.id
115 setWeight(int id, float weight) argument
[all...]
/frameworks/support/v17/leanback/src/android/support/v17/leanback/widget/
H A DViewsStateBundle.java32 * Maintains a bundle of states for a group of views. Each view must have a unique id to identify
37 * Vertical list maintains id->bundle mapping of all it's children (even the children is offscreen
64 public void remove(int id) { argument
66 mChildStates.remove(getSaveStatesKey(id));
147 * Load view from states, it's none operation if the there is no state associated with the id.
150 * @param id unique id for the view within this ViewsStateBundle
152 public final void loadView(View view, int id) { argument
154 String key = getSaveStatesKey(id);
168 * @param id uniqu
170 saveViewUnchecked(View view, int id) argument
187 saveOnScreenView(Bundle bundle, View view, int id) argument
206 saveOffscreenView(View view, int id) argument
220 getSaveStatesKey(int id) argument
[all...]
/frameworks/support/v7/appcompat/tests/src/android/support/v7/widget/
H A DAppCompatTextViewTest.java53 (AppCompatTextView) mContainer.findViewById(R.id.text_view_caps1);
55 (AppCompatTextView) mContainer.findViewById(R.id.text_view_caps2);
66 onView(withId(R.id.text_view_caps1)).perform(
71 onView(withId(R.id.text_view_caps2)).perform(
81 (AppCompatTextView) mContainer.findViewById(R.id.text_view_app_allcaps_false);
88 final TextView textView = (TextView) mContainer.findViewById(R.id.view_text_color_hex);
94 final TextView textView = (TextView) mContainer.findViewById(R.id.view_text_color_csl);
96 onView(withId(R.id.view_text_color_csl)).perform(setEnabled(true));
100 onView(withId(R.id.view_text_color_csl)).perform(setEnabled(false));
107 final TextView textView = (TextView) mContainer.findViewById(R.id
[all...]
/frameworks/base/core/java/android/view/
H A DVelocityTracker.java29 * and {@link #getYVelocity(int)} to retrieve the velocity for each pointer id.
45 private static native float nativeGetXVelocity(long ptr, int id); argument
46 private static native float nativeGetYVelocity(long ptr, int id); argument
47 private static native boolean nativeGetEstimator(long ptr, int id, Estimator outEstimator); argument
180 * @param id Which pointer's velocity to return.
183 public float getXVelocity(int id) { argument
184 return nativeGetXVelocity(mPtr, id);
191 * @param id Which pointer's velocity to return.
194 public float getYVelocity(int id) { argument
195 return nativeGetYVelocity(mPtr, id);
212 getEstimator(int id, Estimator outEstimator) argument
[all...]
/frameworks/av/services/camera/libcameraservice/device3/
H A DStatusTracker.h60 void removeComponent(int id);
66 void markComponentIdle(int id, const sp<Fence>& componentFence);
69 void markComponentActive(int id);
82 void markComponent(int id, ComponentState state,
91 int id; member in struct:android::camera3::StatusTracker::StateChange
/frameworks/base/core/tests/coretests/src/android/widget/
H A DDatePickerFocusTest.java48 mDatePicker = (DatePicker) mActivity.findViewById(R.id.datePicker);
62 assertViewHasFocus(com.android.internal.R.id.date_picker_header_year);
64 assertViewHasFocus(com.android.internal.R.id.prev);
66 assertViewHasFocus(com.android.internal.R.id.next);
68 assertViewHasFocus(com.android.internal.R.id.day_picker_view_pager);
70 assertViewHasFocus(R.id.belowPicker);
72 assertViewHasFocus(com.android.internal.R.id.day_picker_view_pager);
74 assertViewHasFocus(com.android.internal.R.id.next);
76 assertViewHasFocus(com.android.internal.R.id.prev);
78 assertViewHasFocus(com.android.internal.R.id
86 assertViewHasFocus(final int id) argument
[all...]
/frameworks/base/core/tests/coretests/src/android/widget/espresso/
H A DDragHandleUtils.java40 onHandleView(com.android.internal.R.id.selection_start_handle)
44 onHandleView(com.android.internal.R.id.selection_end_handle)
53 public static ViewInteraction onHandleView(int id) argument
55 return onView(allOf(withId(id), isAssignableFrom(Editor.HandleView.class)))
56 .inRoot(withDecorView(hasDescendant(withId(id))));
/frameworks/base/core/tests/coretests/src/android/widget/focus/
H A DFocusAfterRemoval.java38 final LinearLayout left = (LinearLayout) findViewById(R.id.leftLayout);
41 Button topLeftButton = (Button) findViewById(R.id.topLeftButton);
51 Button bottomLeftButton = (Button) findViewById(R.id.bottomLeftButton);
60 final Button topRightButton = (Button) findViewById(R.id.topRightButton);
69 final Button bottomRightButton = (Button) findViewById(R.id.bottomRightButton);
/frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/
H A DViewFlipperActivity.java39 ViewFlipper flipper = (ViewFlipper) widget.findViewById(R.id.flipper);
43 ((ImageView) view.findViewById(R.id.widget_image)).setImageResource(R.drawable.sunset1);
44 ((TextView) view.findViewById(R.id.widget_text)).setText("This is a long line of text, "
49 ((ImageView) view.findViewById(R.id.widget_image)).setImageResource(R.drawable.sunset3);
50 ((TextView) view.findViewById(R.id.widget_text)).setText("Another very long line of text, "
/frameworks/support/percent/tests/java/android/support/percent/
H A DPercentDynamicLayoutTest.java108 onView(withId(R.id.percent_layout)).check(doesNotExist());
109 onView(withId(R.id.percent_stub)).perform(
114 R.id.percent_layout);
123 final View child1 = percentFrameLayout.findViewById(R.id.child1);
124 final View child2 = percentFrameLayout.findViewById(R.id.child2);
138 onView(withId(R.id.percent_layout)).check(doesNotExist());
139 onView(withId(R.id.percent_stub)).perform(
144 R.id.percent_layout);
153 final View child1 = percentFrameLayout.findViewById(R.id.child1);
154 final View child2 = percentFrameLayout.findViewById(R.id
[all...]

Completed in 3937 milliseconds

1234567891011>>