Home
last modified time | relevance | path

Searched refs:id (Results 1 – 25 of 263) sorted by relevance

1234567891011

/cts/tests/tests/view/src/android/view/cts/
DMenuInflaterTest.java85 assertTrue(menu.findItem(R.id.visible_item).isVisible()); in testInflateFromXml()
86 assertEquals('a', menu.findItem(R.id.visible_item).getAlphabeticShortcut()); in testInflateFromXml()
88 assertFalse(menu.findItem(R.id.hidden_item).isVisible()); in testInflateFromXml()
89 assertEquals('b', menu.findItem(R.id.hidden_item).getAlphabeticShortcut()); in testInflateFromXml()
91 assertEquals(R.id.hidden_group, menu.findItem(R.id.hidden_by_group).getGroupId()); in testInflateFromXml()
92 assertFalse(menu.findItem(R.id.hidden_by_group).isVisible()); in testInflateFromXml()
93 assertEquals('c', menu.findItem(R.id.hidden_by_group).getAlphabeticShortcut()); in testInflateFromXml()
99 assertEquals("Start", menu.findItem(R.id.start).getTitle()); in testInflateFromXml()
100 assertIconUsingDrawableRes((BitmapDrawable) menu.findItem(R.id.start).getIcon(), in testInflateFromXml()
103 assertEquals("Pass", menu.findItem(R.id.pass).getTitle()); in testInflateFromXml()
[all …]
DView_FocusHandlingTest.java38 View v1 = activity.findViewById(R.id.view1); in testFocusHandling()
39 View v2 = activity.findViewById(R.id.view2); in testFocusHandling()
40 View v3 = activity.findViewById(R.id.view3); in testFocusHandling()
41 View v4 = activity.findViewById(R.id.view4); in testFocusHandling()
64 v1.setNextFocusRightId(R.id.view2); in testFocusHandling()
65 v1.setNextFocusDownId(R.id.view3); in testFocusHandling()
67 v2.setNextFocusLeftId(R.id.view1); in testFocusHandling()
68 v2.setNextFocusDownId(R.id.view4); in testFocusHandling()
70 v3.setNextFocusRightId(R.id.view4); in testFocusHandling()
71 v3.setNextFocusUpId(R.id.view1); in testFocusHandling()
[all …]
DViewTreeObserverTest.java76 final LinearLayout layout = (LinearLayout) mActivity.findViewById(R.id.linearlayout); in testAddOnGlobalFocusChangeListener()
77 final View view1 = mActivity.findViewById(R.id.view1); in testAddOnGlobalFocusChangeListener()
78 final View view2 = mActivity.findViewById(R.id.view2); in testAddOnGlobalFocusChangeListener()
110 (LinearLayout) mActivity.findViewById(R.id.linearlayout); in testAddOnGlobalLayoutListener()
121 final LinearLayout layout = (LinearLayout) mActivity.findViewById(R.id.linearlayout); in testAddOnPreDrawListener()
132 final Button b = (Button) mActivity.findViewById(R.id.button1); in testAddOnTouchModeChangeListener()
160 final View view1 = mActivity.findViewById(R.id.view1); in testAddOnComputeInternalInsetsListener()
168 final View view1 = mActivity.findViewById(R.id.view1); in testRemoveOnComputeInternalInsetsListener()
176 final LinearLayout layout = (LinearLayout) mActivity.findViewById(R.id.linearlayout); in testDispatchOnGlobalLayout()
187 final LinearLayout layout = (LinearLayout) mActivity.findViewById(R.id.linearlayout); in testDispatchOnPreDraw()
[all …]
/cts/tests/tests/widget/src/android/widget/cts/
DRemoteViewsTest.java111 View view = mResult.findViewById(R.id.remoteView_chronometer); in testSetViewVisibility()
114 mRemoteViews.setViewVisibility(R.id.remoteView_chronometer, View.INVISIBLE); in testSetViewVisibility()
118 mRemoteViews.setViewVisibility(R.id.remoteView_chronometer, View.GONE); in testSetViewVisibility()
122 mRemoteViews.setViewVisibility(R.id.remoteView_chronometer, View.VISIBLE); in testSetViewVisibility()
128 TextView textView = (TextView) mResult.findViewById(R.id.remoteView_text); in testSetTextViewText()
132 mRemoteViews.setTextViewText(R.id.remoteView_text, expected); in testSetTextViewText()
136 mRemoteViews.setTextViewText(R.id.remoteView_text, null); in testSetTextViewText()
140 mRemoteViews.setTextViewText(R.id.remoteView_absolute, ""); in testSetTextViewText()
150 ImageView image = (ImageView) mResult.findViewById(R.id.remoteView_image); in testSetImageViewResource()
153 mRemoteViews.setImageViewResource(R.id.remoteView_image, R.drawable.testimage); in testSetImageViewResource()
[all …]
DRelativeLayout_LayoutParamsTest.java60 R.id.relative_sublayout_attrs); in testConstructor()
64 View view1 = activity.findViewById(R.id.relative_view1); in testConstructor()
73 View view2 = activity.findViewById(R.id.relative_view2); in testConstructor()
78 assertEquals(R.id.relative_view1, rules[RelativeLayout.BELOW]); in testConstructor()
79 assertEquals(R.id.relative_view1, rules[RelativeLayout.ALIGN_LEFT]); in testConstructor()
84 View view3 = activity.findViewById(R.id.relative_view3); in testConstructor()
90 assertEquals(R.id.relative_view1, rules[RelativeLayout.ALIGN_TOP]); in testConstructor()
91 assertEquals(R.id.relative_view2, rules[RelativeLayout.ALIGN_BOTTOM]); in testConstructor()
92 assertEquals(R.id.relative_view1, rules[RelativeLayout.RIGHT_OF]); in testConstructor()
96 View view4 = activity.findViewById(R.id.relative_view4); in testConstructor()
[all …]
DLayoutDirectionTest.java126 R.id.layout_linearlayout_ltr, LAYOUT_DIRECTION_LTR, LAYOUT_DIRECTION_LTR, in testDirectionFromXml()
127 R.id.layout_linearlayout_ltr_child_1, LAYOUT_DIRECTION_LTR, LAYOUT_DIRECTION_LTR, in testDirectionFromXml()
128 R.id.layout_linearlayout_ltr_child_2, LAYOUT_DIRECTION_RTL, LAYOUT_DIRECTION_RTL, in testDirectionFromXml()
130 … R.id.layout_linearlayout_ltr_child_3, LAYOUT_DIRECTION_INHERIT, LAYOUT_DIRECTION_LTR, in testDirectionFromXml()
132 … R.id.layout_linearlayout_ltr_child_4, LAYOUT_DIRECTION_LOCALE, LAYOUT_DIRECTION_LTR); in testDirectionFromXml()
135 R.id.layout_linearlayout_rtl, LAYOUT_DIRECTION_RTL, LAYOUT_DIRECTION_RTL, in testDirectionFromXml()
136 R.id.layout_linearlayout_rtl_child_1, LAYOUT_DIRECTION_LTR, LAYOUT_DIRECTION_LTR, in testDirectionFromXml()
137 R.id.layout_linearlayout_rtl_child_2, LAYOUT_DIRECTION_RTL, LAYOUT_DIRECTION_RTL, in testDirectionFromXml()
139 … R.id.layout_linearlayout_rtl_child_3, LAYOUT_DIRECTION_INHERIT, LAYOUT_DIRECTION_RTL, in testDirectionFromXml()
141 … R.id.layout_linearlayout_rtl_child_4, LAYOUT_DIRECTION_LOCALE, LAYOUT_DIRECTION_LTR); in testDirectionFromXml()
[all …]
DRemoteViewsActivityTest.java54 ViewGroup parent = (ViewGroup) mActivity.findViewById(R.id.remoteView_host); in testGood()
60 assertTrue("LinearLayout not inflated", result.findViewById(R.id.linear) != null); in testGood()
61 assertTrue("TextView not inflated", result.findViewById(R.id.text) != null); in testGood()
62 assertTrue("ImageView not inflated", result.findViewById(R.id.image) != null); in testGood()
63 assertTrue("FrameLayout not inflated", result.findViewById(R.id.frame) != null); in testGood()
64 assertTrue("RelateiveLayout not inflated", result.findViewById(R.id.relative) != null); in testGood()
65 assertTrue("AbsoluteLayout not inflated", result.findViewById(R.id.absolute) != null); in testGood()
66 assertTrue("ProgressBar not inflated", result.findViewById(R.id.progress) != null); in testGood()
67 assertTrue("ImageButton not inflated", result.findViewById(R.id.image_button) != null); in testGood()
68 assertTrue("Button not inflated", result.findViewById(R.id.button) != null); in testGood()
[all …]
DViewFlipperTest.java78 (ViewFlipper) mActivity.findViewById(R.id.viewflipper_test); in testViewFlipper()
80 TextView iv1 = (TextView) mActivity.findViewById(R.id.viewflipper_textview1); in testViewFlipper()
81 TextView iv2 = (TextView) mActivity.findViewById(R.id.viewflipper_textview2); in testViewFlipper()
100 (ViewFlipper) mActivity.findViewById(R.id.viewflipper_test); in testViewFlipper()
102 TextView iv1 = (TextView) mActivity.findViewById(R.id.viewflipper_textview1); in testViewFlipper()
103 TextView iv2 = (TextView) mActivity.findViewById(R.id.viewflipper_textview2); in testViewFlipper()
116 (ViewFlipper) mActivity.findViewById(R.id.viewflipper_test); in testViewFlipper()
118 TextView iv1 = (TextView) mActivity.findViewById(R.id.viewflipper_textview1); in testViewFlipper()
119 TextView iv2 = (TextView) mActivity.findViewById(R.id.viewflipper_textview2); in testViewFlipper()
DSimpleExpandableListAdapterTest.java49 R.id.text1
53 R.id.text1
170 assertEquals("child00", ((TextView) result.findViewById(R.id.text1)).getText().toString()); in testGetChildView()
174 assertEquals("child30", ((TextView) result.findViewById(R.id.text1)).getText().toString()); in testGetChildView()
185 assertEquals("child00", ((TextView) result.findViewById(R.id.text1)).getText().toString()); in testGetChildView()
189 assertEquals("child30", ((TextView) result.findViewById(R.id.text1)).getText().toString()); in testGetChildView()
193 convertView.setId(R.id.text1); in testGetChildView()
200 convertView.setId(R.id.text1); in testGetChildView()
234 assertNotNull(result.findViewById(R.id.text1)); in testNewChildView()
238 assertNotNull(result.findViewById(R.id.text1)); in testNewChildView()
[all …]
DAdapterView_AdapterContextMenuInfoTest.java30 long id = 0xffL; in testConstructor() local
31 menuInfo = new AdapterView.AdapterContextMenuInfo(testView, position, id); in testConstructor()
34 assertEquals(id, menuInfo.id); in testConstructor()
DViewAnimatorTest.java89 final View v1 = mActivity.findViewById(R.id.ok); in testShowNext()
90 final View v2 = mActivity.findViewById(R.id.cancel); in testShowNext()
91 final View v3 = mActivity.findViewById(R.id.label); in testShowNext()
92 final View v4 = mActivity.findViewById(R.id.entry); in testShowNext()
134 final View v1 = mActivity.findViewById(R.id.ok); in testAccessDisplayedChild()
135 final View v2 = mActivity.findViewById(R.id.cancel); in testAccessDisplayedChild()
168 final View v1 = mActivity.findViewById(R.id.ok); in testAccessDisplayedChildBoundary()
169 final View v2 = mActivity.findViewById(R.id.cancel); in testAccessDisplayedChildBoundary()
196 final View v1 = mActivity.findViewById(R.id.ok); in testGetBaseline()
197 final View v2 = mActivity.findViewById(R.id.cancel); in testGetBaseline()
[all …]
/cts/tests/tests/app/src/android/app/cts/
DActivityManagerRecentTaskInfoTest.java42 int id = 1; in testWriteToParcel() local
45 mRecentTaskInfo.id = id; in testWriteToParcel()
54 assertEquals(id, values.id); in testWriteToParcel()
61 mRecentTaskInfo.id = -1; in testWriteToParcel()
69 assertEquals(-1, values.id); in testWriteToParcel()
76 int id = 1; in testReadFromParcel() local
79 mRecentTaskInfo.id = id; in testReadFromParcel()
88 assertEquals(id, values.id); in testReadFromParcel()
95 mRecentTaskInfo.id = -1; in testReadFromParcel()
102 assertEquals(-1, values.id); in testReadFromParcel()
DNotificationManagerTest.java48 final int id = 1; in testNotify() local
49 sendNotification(id, R.drawable.black); in testNotify()
53 final int id = 9; in testCancel() local
54 sendNotification(id, R.drawable.black); in testCancel()
55 mNotificationManager.cancel(id); in testCancel()
65 private void sendNotification(final int id, final int icon) { in sendNotification() argument
76 notification.setLatestEventInfo(mContext, "notify#" + id, "This is #" + id in sendNotification()
78 mNotificationManager.notify(id, notification); in sendNotification()
/cts/suite/cts/deviceTests/browserbench/assets/octane/
Drichards.js126 Scheduler.prototype.addIdleTask = function (id, priority, queue, count) { argument
127 this.addRunningTask(id, priority, queue, new IdleTask(this, 1, count));
136 Scheduler.prototype.addWorkerTask = function (id, priority, queue) { argument
137 this.addTask(id, priority, queue, new WorkerTask(this, ID_HANDLER_A, 0));
146 Scheduler.prototype.addHandlerTask = function (id, priority, queue) { argument
147 this.addTask(id, priority, queue, new HandlerTask(this));
156 Scheduler.prototype.addDeviceTask = function (id, priority, queue) { argument
157 this.addTask(id, priority, queue, new DeviceTask(this))
167 Scheduler.prototype.addRunningTask = function (id, priority, queue, task) { argument
168 this.addTask(id, priority, queue, task);
[all …]
/cts/tests/src/android/app/cts/
DLocalActivityManagerTestHelper.java89 final String id = "id_remove_activity"; in testRemoveAllActivity() local
92 mLocalActivityManager.startActivity(id, intent); in testRemoveAllActivity()
94 Activity activity = mLocalActivityManager.getActivity(id); in testRemoveAllActivity()
107 activity = mLocalActivityManager.getActivity(id); in testRemoveAllActivity()
159 final String id = "id_dispatch_pause"; in testSaveInstanceState() local
162 mLocalActivityManager.startActivity(id, intent); in testSaveInstanceState()
178 final String id = "id_dispatch_pause"; in testDispatchPauseFalse() local
181 mLocalActivityManager.startActivity(id, intent); in testDispatchPauseFalse()
192 final String id = "id_dispatch_pause"; in testDispatchPauseTrue() local
195 mLocalActivityManager.startActivity(id, intent); in testDispatchPauseTrue()
[all …]
/cts/tests/tests/hardware/src/android/hardware/cts/
DCameraTest.java355 for (int id = 0; id < nCameras; id++) { in testTakePicture()
356 Log.v(TAG, "Camera id=" + id); in testTakePicture()
357 initializeMessageLooper(id); in testTakePicture()
400 for (int id = 0; id < nCameras; id++) { in testPreviewCallback()
401 Log.v(TAG, "Camera id=" + id); in testPreviewCallback()
402 testPreviewCallbackByCamera(id); in testPreviewCallback()
444 for (int id = 0; id < nCameras; id++) { in testSetOneShotPreviewCallback()
445 Log.v(TAG, "Camera id=" + id); in testSetOneShotPreviewCallback()
446 testSetOneShotPreviewCallbackByCamera(id); in testSetOneShotPreviewCallback()
467 for (int id = 0; id < nCameras; id++) { in testSetPreviewDisplay()
[all …]
/cts/suite/audio_quality/lib/src/task/
DTaskDownload.cpp41 android::String8 id; in run() local
42 if (!findStringAttribute(STR_ID, id)) { in run()
47 android::sp<Buffer> buffer = getTestCase()->findBuffer(id); in run()
49 LOGE("TaskDownload::run cannot find buffer %s", id.string()); in run()
53 if (!getTestCase()->getRemoteAudio()->downloadData(id, buffer, downloadId)) { in run()
56 LOGI("Downloaded buffer %s to DUT with id %d", id.string(), downloadId); in run()
/cts/tests/uiautomator/test-apps/CtsUiAutomatorApp/src/com/android/cts/uiautomator/
DMainActivity.java40 if (findViewById(R.id.test_detail_container) != null) { in onCreate()
42 ((TestListFragment) getSupportFragmentManager().findFragmentById(R.id.item_list)) in onCreate()
48 public void onItemSelected(String id) { in onItemSelected() argument
50 Fragment fragment = TestItems.getFragment(id); in onItemSelected()
52 .replace(R.id.test_detail_container, fragment).commit(); in onItemSelected()
55 detailIntent.putExtra("item_id", id); in onItemSelected()
/cts/tests/tests/media/src/android/media/cts/
DCameraProfileTest.java48 for (int id = 0; id < nCamera; id++) { in testGetWithId()
49 int low = CameraProfile.getJpegEncodingQualityParameter(id, CameraProfile.QUALITY_LOW); in testGetWithId()
50 … int mid = CameraProfile.getJpegEncodingQualityParameter(id, CameraProfile.QUALITY_MEDIUM); in testGetWithId()
51 … int high = CameraProfile.getJpegEncodingQualityParameter(id, CameraProfile.QUALITY_HIGH); in testGetWithId()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/
DPassFailButtons.java106 public Dialog onCreateDialog(int id, Bundle args) { in onCreateDialog() argument
107 return createDialog(this, id, args); in onCreateDialog()
139 public Dialog onCreateDialog(int id, Bundle args) { in onCreateDialog() argument
140 return createDialog(this, id, args); in onCreateDialog()
173 public Dialog onCreateDialog(int id, Bundle args) { in onCreateDialog() argument
174 return createDialog(this, id, args); in onCreateDialog()
198 activity.findViewById(R.id.pass_button).setOnClickListener(clickListener); in setPassFailClickListeners()
199 activity.findViewById(R.id.fail_button).setOnClickListener(clickListener); in setPassFailClickListeners()
205 View infoButton = activity.findViewById(R.id.info_button); in setInfo()
244 private static Dialog createDialog(final android.app.Activity activity, int id, Bundle args) { in createDialog() argument
[all …]
/cts/apps/CtsVerifier/src/com/android/cts/verifier/widget/
DWidgetCtsProvider.java148 int id = appWidgetIds[i]; in onUpdate() local
149 if (!sStateMap.containsKey(id)) { in onUpdate()
150 sStateMap.put(id, STATE_BEGIN); in onUpdate()
246 rv.setTextViewText(R.id.instruction, text.instruction); in updateWidget()
250 rv.setTextViewText(R.id.title, text.title); in updateWidget()
260 rv.setViewVisibility(R.id.list, View.VISIBLE); in updateWidget()
261 rv.setRemoteAdapter(appWidgetId, R.id.list, intent); in updateWidget()
263 rv.setViewVisibility(R.id.list, View.GONE); in updateWidget()
267 rv.setViewVisibility(R.id.fail, View.GONE); in updateWidget()
268 rv.setTextViewText(R.id.pass, "Start Test"); in updateWidget()
[all …]
/cts/tests/tests/renderscript/src/android/renderscript/cts/
DSendToClientBlockingTest.java57 int id = random.nextInt(10); in testSendToClientBlocking1Params() local
61 mScript.set_ID(id); in testSendToClientBlocking1Params()
71 resultId == id); in testSendToClientBlocking1Params()
76 int id = random.nextInt(10); in testSendToClientBlocking3Params() local
81 mScript.set_ID(id); in testSendToClientBlocking3Params()
92 "The data is:" + data, resultId == id && resultData == data); in testSendToClientBlocking3Params()
/cts/suite/audio_quality/lib/src/audio/
DRemoteAudio.cpp106 AudioProtocol::CommandId id; in handlePacket() local
107 if (!AudioProtocol::handleReplyHeader(mSocket, data, id)) { in handlePacket()
111 if (id == AudioProtocol::ECmdDownload) { in handlePacket()
113 } else if (id == AudioProtocol::ECmdStartPlayback) { in handlePacket()
115 } else if (id == AudioProtocol::ECmdStartRecording) { in handlePacket()
117 } else if (id == AudioProtocol::ECmdGetDeviceInfo) { in handlePacket()
124 bool result = mCmds[id - AudioProtocol::ECmdStart]->handleReply(data, param); in handlePacket()
179 AudioProtocol::CommandId id) in doStop() argument
190 android::sp<android::MessageHandler> command(new CommandHandler(*this, (int)id)); in doStop()
196 bool RemoteAudio::downloadData(const android::String8 name, android::sp<Buffer>& buffer, int& id) in downloadData() argument
[all …]
/cts/tests/src/android/view/cts/
DFocusFinderStubActivity.java44 layout = (ViewGroup) findViewById(R.id.layout); in onCreate()
45 topLeftButton = (Button) findViewById(R.id.top_left_button); in onCreate()
46 topRightButton = (Button) findViewById(R.id.top_right_button); in onCreate()
47 bottomLeftButton = (Button) findViewById(R.id.bottom_left_button); in onCreate()
48 bottomRightButton = (Button) findViewById(R.id.bottom_right_button); in onCreate()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/nfc/
DNdefPushSenderActivity.java51 TextView text = (TextView) findViewById(R.id.text); in onCreate()
61 byte[] id = new byte[] {1, 3, 3, 7}; in getTestMessage()
64 new NdefRecord(NdefRecord.TNF_MIME_MEDIA, mimeBytes, id, payload) in getTestMessage()
89 public Dialog onCreateDialog(int id, Bundle args) { in onCreateDialog() argument
90 switch (id) { in onCreateDialog()
96 return super.onCreateDialog(id, args); in onCreateDialog()

1234567891011