/frameworks/base/tests/StatusBar/src/com/android/statusbartest/ |
D | NotificationBuilderTest.java | 67 for (int id: new int[] { in onCreate() 68 R.id.clear_1, in onCreate() 69 R.id.clear_2, in onCreate() 70 R.id.clear_3, in onCreate() 71 R.id.clear_4, in onCreate() 72 R.id.clear_5, in onCreate() 73 R.id.clear_6, in onCreate() 74 R.id.clear_7, in onCreate() 75 R.id.clear_8, in onCreate() 76 R.id.clear_9, in onCreate() [all …]
|
/frameworks/base/core/java/android/util/proto/ |
D | ProtoOutputStream.java | 273 final int id = (int)fieldId; in write() local 278 writeDoubleImpl(id, (double)val); in write() 282 writeRepeatedDoubleImpl(id, (double)val); in write() 286 writeFloatImpl(id, (float)val); in write() 290 writeRepeatedFloatImpl(id, (float)val); in write() 294 writeInt32Impl(id, (int)val); in write() 298 writeRepeatedInt32Impl(id, (int)val); in write() 302 writeInt64Impl(id, (long)val); in write() 306 writeRepeatedInt64Impl(id, (long)val); in write() 310 writeUInt32Impl(id, (int)val); in write() [all …]
|
/frameworks/support/v7/appcompat/src/android/support/v7/widget/ |
D | ResourcesWrapper.java | 52 public CharSequence getText(int id) throws NotFoundException { in getText() argument 53 return mResources.getText(id); in getText() 57 public CharSequence getQuantityText(int id, int quantity) throws NotFoundException { in getQuantityText() argument 58 return mResources.getQuantityText(id, quantity); in getQuantityText() 62 public String getString(int id) throws NotFoundException { in getString() argument 63 return mResources.getString(id); in getString() 67 public String getString(int id, Object... formatArgs) throws NotFoundException { in getString() argument 68 return mResources.getString(id, formatArgs); in getString() 72 public String getQuantityString(int id, int quantity, Object... formatArgs) in getQuantityString() argument 74 return mResources.getQuantityString(id, quantity, formatArgs); in getQuantityString() [all …]
|
/frameworks/base/tools/aapt2/compile/ |
D | IdAssigner.cpp | 34 static bool AssignId(IDiagnostics* diag, const ResourceId& id, in AssignId() argument 37 if (pkg->id.value() == id.package_id()) { in AssignId() 38 if (!type->id || type->id.value() == id.type_id()) { in AssignId() 39 type->id = id.type_id(); in AssignId() 41 if (!entry->id || entry->id.value() == id.entry_id()) { in AssignId() 42 entry->id = id.entry_id(); in AssignId() 48 const ResourceId existing_id(pkg->id.value(), type->id ? type->id.value() : 0, in AssignId() 49 entry->id ? entry->id.value() : 0); in AssignId() 50 diag->Error(DiagMessage() << "can't assign ID " << id << " to resource " in AssignId() 59 CHECK(bool(package->id)) << "packages must have manually assigned IDs"; in Consume() [all …]
|
/frameworks/base/core/tests/coretests/src/android/widget/ |
D | TextViewActivityMouseTest.java | 70 onView(withId(R.id.textview)).perform(click()); in testSelectTextByDrag() 71 onView(withId(R.id.textview)).perform(typeTextIntoFocusedView(helloWorld)); in testSelectTextByDrag() 75 onView(withId(R.id.textview)).perform( in testSelectTextByDrag() 78 onView(withId(R.id.textview)).check(hasSelection("llo wor")); in testSelectTextByDrag() 80 onHandleView(com.android.internal.R.id.selection_start_handle) in testSelectTextByDrag() 82 onHandleView(com.android.internal.R.id.selection_end_handle) in testSelectTextByDrag() 85 onView(withId(R.id.textview)).perform(mouseClickOnTextAtIndex(helloWorld.indexOf("w"))); in testSelectTextByDrag() 86 onView(withId(R.id.textview)).check(hasSelection("")); in testSelectTextByDrag() 94 onView(withId(R.id.textview)).perform(click()); in testSelectTextByDrag_reverse() 95 onView(withId(R.id.textview)).perform(typeTextIntoFocusedView(helloWorld)); in testSelectTextByDrag_reverse() [all …]
|
D | TextViewActivityTest.java | 93 onView(withId(R.id.textview)).perform(replaceText(helloWorld)); in testTypedTextIsOnScreen() 95 onView(withId(R.id.textview)).check(matches(withText(helloWorld))); in testTypedTextIsOnScreen() 100 onView(withId(R.id.textview)).perform(replaceText(helloWorld)); in testPositionCursorAtTextAtIndex() 101 onView(withId(R.id.textview)).perform(clickOnTextAtIndex(helloWorld.indexOf("world"))); in testPositionCursorAtTextAtIndex() 104 onView(withId(R.id.textview)).perform(pressKey(KeyEvent.KEYCODE_FORWARD_DEL)); in testPositionCursorAtTextAtIndex() 105 onView(withId(R.id.textview)).check(matches(withText("Hello orld!"))); in testPositionCursorAtTextAtIndex() 112 onView(withId(R.id.textview)).perform(replaceText(text)); in testPositionCursorAtTextAtIndex_arabic() 114 onView(withId(R.id.textview)).perform(clickOnTextAtIndex(0)); in testPositionCursorAtTextAtIndex_arabic() 115 onView(withId(R.id.textview)).check(hasInsertionPointerAtIndex(0)); in testPositionCursorAtTextAtIndex_arabic() 116 onView(withId(R.id.textview)).perform(clickOnTextAtIndex(1)); in testPositionCursorAtTextAtIndex_arabic() [all …]
|
/frameworks/base/tests/BiDiTests/src/com/android/bidi/ |
D | BiDiTestActivity.java | 45 public void onItemClick(AdapterView<?> parent, View v, int position, long id) { 46 onListItemClick((ListView)parent, v, position, id); 50 private void onListItemClick(ListView lv, View v, int position, long id) { in onListItemClick() argument 63 ft.replace(R.id.testframe, fragment); in onListItemClick() 78 mList = findViewById(R.id.testlist); in onCreate() 84 new int[]{android.R.id.text1}); in onCreate() 102 addItem(result, "Basic", BiDiTestBasic.class, R.id.basic); in getTests() 104 addItem(result, "Canvas2", BiDiTestCanvas2.class, R.id.canvas2); in getTests() 106 addItem(result, "TextView LTR", BiDiTestTextViewLtr.class, R.id.textview_ltr); in getTests() 107 addItem(result, "TextView RTL", BiDiTestTextViewRtl.class, R.id.textview_rtl); in getTests() [all …]
|
/frameworks/support/design/tests/src/android/support/design/widget/ |
D | BottomNavigationViewTest.java | 68 private static final int[] MENU_CONTENT_ITEM_IDS = { R.id.destination_home, 69 R.id.destination_profile, R.id.destination_people }; 81 mBottomNavigation = (BottomNavigationView) activity.findViewById(R.id.bottom_navigation); in setUp() 85 mMenuStringContent.put(R.id.destination_home, res.getString(R.string.navigate_home)); in setUp() 86 mMenuStringContent.put(R.id.destination_profile, res.getString(R.string.navigate_profile)); in setUp() 87 mMenuStringContent.put(R.id.destination_people, res.getString(R.string.navigate_people)); in setUp() 128 onView(allOf(withText(mMenuStringContent.get(R.id.destination_profile)), in testNavigationSelectionListener() 129 isDescendantOfA(withId(R.id.bottom_navigation)), isDisplayed())).perform(click()); in testNavigationSelectionListener() 132 mBottomNavigation.getMenu().findItem(R.id.destination_profile)); in testNavigationSelectionListener() 134 assertTrue(mBottomNavigation.getMenu().findItem(R.id.destination_profile).isChecked()); in testNavigationSelectionListener() [all …]
|
D | NavigationViewTest.java | 96 private static final int[] MENU_CONTENT_ITEM_IDS = { R.id.destination_home, 97 R.id.destination_profile, R.id.destination_people, R.id.destination_settings }; 111 mDrawerLayout = (DrawerLayout) activity.findViewById(R.id.drawer_layout); in setUp() 112 mNavigationView = (NavigationTestView) mDrawerLayout.findViewById(R.id.start_drawer); in setUp() 115 onView(withId(R.id.drawer_layout)).perform(closeDrawer(GravityCompat.START)); in setUp() 119 mMenuStringContent.put(R.id.destination_home, res.getString(R.string.navigate_home)); in setUp() 120 mMenuStringContent.put(R.id.destination_profile, res.getString(R.string.navigate_profile)); in setUp() 121 mMenuStringContent.put(R.id.destination_people, res.getString(R.string.navigate_people)); in setUp() 122 mMenuStringContent.put(R.id.destination_settings, in setUp() 129 onView(withId(R.id.drawer_layout)).perform(openDrawer(GravityCompat.START)); in testBasics() [all …]
|
/frameworks/native/cmds/surfacereplayer/replayer/ |
D | Replayer.cpp | 300 auto layerId = increment.buffer_update().id(); in dispatchEvent() 307 mBufferQueueSchedulers[increment.buffer_update().id()].get()) in dispatchEvent() 310 auto bqs = mBufferQueueSchedulers[increment.buffer_update().id()]; in dispatchEvent() 366 if (mLayers[change.id()] == nullptr) { in doSurfaceTransaction() 367 mLayerCond.wait(lock, [&] { return (mLayers[change.id()] != nullptr); }); in doSurfaceTransaction() 372 status = setPosition(change.id(), change.position()); in doSurfaceTransaction() 375 status = setSize(change.id(), change.size()); in doSurfaceTransaction() 378 status = setAlpha(change.id(), change.alpha()); in doSurfaceTransaction() 381 status = setLayer(change.id(), change.layer()); in doSurfaceTransaction() 384 status = setCrop(change.id(), change.crop()); in doSurfaceTransaction() [all …]
|
/frameworks/opt/net/ims/src/java/com/android/ims/ |
D | ImsUt.java | 128 int id = miUt.queryCallBarring(cbType); in queryCallBarring() local 130 if (id < 0) { in queryCallBarring() 136 mPendingCmds.put(Integer.valueOf(id), result); in queryCallBarring() 157 int id = miUt.queryCallForward(condition, number); in queryCallForward() local 159 if (id < 0) { in queryCallForward() 165 mPendingCmds.put(Integer.valueOf(id), result); in queryCallForward() 185 int id = miUt.queryCallWaiting(); in queryCallWaiting() local 187 if (id < 0) { in queryCallWaiting() 193 mPendingCmds.put(Integer.valueOf(id), result); in queryCallWaiting() 212 int id = miUt.queryCLIR(); in queryCLIR() local [all …]
|
/frameworks/base/test-runner/src/android/test/mock/ |
D | MockResources.java | 56 public CharSequence getText(int id) throws NotFoundException { in getText() argument 61 public CharSequence getQuantityText(int id, int quantity) throws NotFoundException { in getQuantityText() argument 66 public String getString(int id) throws NotFoundException { in getString() argument 71 public String getString(int id, Object... formatArgs) throws NotFoundException { in getString() argument 76 public String getQuantityString(int id, int quantity, Object... formatArgs) in getQuantityString() argument 82 public String getQuantityString(int id, int quantity) throws NotFoundException { in getQuantityString() argument 87 public CharSequence getText(int id, CharSequence def) { in getText() argument 92 public CharSequence[] getTextArray(int id) throws NotFoundException { in getTextArray() argument 97 public String[] getStringArray(int id) throws NotFoundException { in getStringArray() argument 102 public int[] getIntArray(int id) throws NotFoundException { in getIntArray() argument [all …]
|
/frameworks/base/core/java/android/content/res/ |
D | Resources.java | 333 @NonNull public CharSequence getText(@StringRes int id) throws NotFoundException { in getText() argument 334 CharSequence res = mResourcesImpl.getAssets().getResourceText(id); in getText() 339 + Integer.toHexString(id)); in getText() 354 @NonNull public Typeface getFont(@FontRes int id) throws NotFoundException { in getFont() argument 358 impl.getValue(id, value, true); in getFont() 359 Typeface typeface = impl.loadFont(this, value, id); in getFont() 367 + Integer.toHexString(id)); in getFont() 371 Typeface getFont(@NonNull TypedValue value, @FontRes int id) throws NotFoundException { in getFont() argument 372 return mResourcesImpl.loadFont(this, value, id); in getFont() 378 public void preloadFonts(@ArrayRes int id) { in preloadFonts() argument [all …]
|
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/ |
D | MockResources.java | 34 public boolean getBoolean(int id) { in getBoolean() argument 35 if (mBooleanValues.containsKey(id)) { in getBoolean() 36 return mBooleanValues.get(id); in getBoolean() 43 public int getInteger(int id) { in getInteger() argument 44 if (mIntegerValues.containsKey(id)) { in getInteger() 45 return mIntegerValues.get(id); in getInteger() 52 public String getString(int id) { in getString() argument 53 if (mStringValues.containsKey(id)) { in getString() 54 return mStringValues.get(id); in getString() 60 public void setBoolean(int id, boolean value) { in setBoolean() argument [all …]
|
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/aware/ |
D | WifiAwareNativeCallback.java | 51 public void notifyCapabilitiesResponse(short id, WifiNanStatus status, in notifyCapabilitiesResponse() argument 54 Log.v(TAG, "notifyCapabilitiesResponse: id=" + id + ", status=" + statusString(status) in notifyCapabilitiesResponse() 79 mWifiAwareStateManager.onCapabilitiesUpdateResponse(id, frameworkCapabilities); in notifyCapabilitiesResponse() 87 public void notifyEnableResponse(short id, WifiNanStatus status) { in notifyEnableResponse() argument 88 if (VDBG) Log.v(TAG, "notifyEnableResponse: id=" + id + ", status=" + statusString(status)); in notifyEnableResponse() 91 mWifiAwareStateManager.onConfigSuccessResponse(id); in notifyEnableResponse() 93 mWifiAwareStateManager.onConfigFailedResponse(id, status.status); in notifyEnableResponse() 98 public void notifyConfigResponse(short id, WifiNanStatus status) { in notifyConfigResponse() argument 99 if (VDBG) Log.v(TAG, "notifyConfigResponse: id=" + id + ", status=" + statusString(status)); in notifyConfigResponse() 102 mWifiAwareStateManager.onConfigSuccessResponse(id); in notifyConfigResponse() [all …]
|
/frameworks/support/compat/java/android/support/v4/content/res/ |
D | ResourcesCompat.java | 75 public static Drawable getDrawable(@NonNull Resources res, @DrawableRes int id, in getDrawable() argument 78 return res.getDrawable(id, theme); in getDrawable() 80 return res.getDrawable(id); in getDrawable() 108 public static Drawable getDrawableForDensity(@NonNull Resources res, @DrawableRes int id, in getDrawableForDensity() argument 111 return res.getDrawableForDensity(id, density, theme); in getDrawableForDensity() 113 return res.getDrawableForDensity(id, density); in getDrawableForDensity() 115 return res.getDrawable(id); in getDrawableForDensity() 138 public static int getColor(@NonNull Resources res, @ColorRes int id, @Nullable Theme theme) in getColor() argument 141 return res.getColor(id, theme); in getColor() 143 return res.getColor(id); in getColor() [all …]
|
/frameworks/support/wear/tests/src/android/support/wear/widget/ |
D | BoxInsetLayoutTest.java | 81 View box = mActivityRule.getActivity().findViewById(R.id.box); in testCase1() 82 mIdViewMap.put(R.id.box, box); in testCase1() 87 View box = customRunnable.mIdViewMap.get(R.id.box); in testCase1() 98 onView(withId(R.id.child1)) in testCase1() 107 onView(withId(R.id.content1)) in testCase1() 131 View box = mActivityRule.getActivity().findViewById(R.id.box); in testCase2() 132 View child1 = mActivityRule.getActivity().findViewById(R.id.child1); in testCase2() 133 View child2 = mActivityRule.getActivity().findViewById(R.id.child2); in testCase2() 134 View child3 = mActivityRule.getActivity().findViewById(R.id.child3); in testCase2() 135 View child4 = mActivityRule.getActivity().findViewById(R.id.child4); in testCase2() [all …]
|
/frameworks/base/media/tests/SoundPoolTest/src/com/android/ |
D | SoundPoolTest.java | 96 int id = mSoundPool.load(getApplicationContext(), resId, priority); in loadSound() local 97 if (id == 0) { in loadSound() 100 return id; in loadSound() 134 int id = mSoundPool.play(mSounds[index], DEFAULT_VOLUME, DEFAULT_VOLUME, in TestSounds() local 136 if (DEBUG) Log.d(LOG_TAG, "Start note " + id); in TestSounds() 137 if (id == 0) { in TestSounds() 142 mSoundPool.stop(id); in TestSounds() 143 if (DEBUG) Log.d(LOG_TAG, "Stop note " + id); in TestSounds() 156 int id = mSoundPool.play(mSounds[0], DEFAULT_VOLUME, DEFAULT_VOLUME, in TestScales() local 158 if (DEBUG) Log.d(LOG_TAG, "Start note " + id); in TestScales() [all …]
|
/frameworks/base/tools/layoutlib/bridge/src/android/content/res/ |
D | Resources_Delegate.java | 98 private static Pair<ResourceType, String> getResourceInfo(Resources resources, int id, in getResourceInfo() argument 101 Pair<ResourceType, String> resourceInfo = Bridge.resolveResourceId(id); in getResourceInfo() 116 resourceInfo = resources.mLayoutlibCallback.resolveResourceId(id); in getResourceInfo() 126 private static Pair<String, ResourceValue> getResourceValue(Resources resources, int id, in getResourceValue() argument 129 getResourceInfo(resources, id, platformResFlag_out); in getResourceValue() 150 static Drawable getDrawable(Resources resources, int id) { in getDrawable() argument 151 return getDrawable(resources, id, null); in getDrawable() 155 static Drawable getDrawable(Resources resources, int id, Theme theme) { in getDrawable() argument 156 Pair<String, ResourceValue> value = getResourceValue(resources, id, mPlatformResourceFlag); in getDrawable() 177 throwException(resources, id); in getDrawable() [all …]
|
/frameworks/support/wear/tests/src/android/support/wear/widget/drawer/ |
D | WearableDrawerLayoutEspressoTest.java | 88 (WearableDrawerView) activity.findViewById(R.id.action_drawer); in openingNavigationDrawerDoesNotCloseActionDrawer() 90 (WearableDrawerView) activity.findViewById(R.id.navigation_drawer); in openingNavigationDrawerDoesNotCloseActionDrawer() 96 onView(withId(R.id.navigation_drawer)) in openingNavigationDrawerDoesNotCloseActionDrawer() 99 allOf(withId(R.id.navigation_drawer), isOpened(true)), in openingNavigationDrawerDoesNotCloseActionDrawer() 110 onView(withId(R.id.action_drawer)).check(matches(isPeeking())); in swipingDownNavigationDrawerDoesNotCloseActionDrawer() 111 onView(withId(R.id.navigation_drawer)).check(matches(isPeeking())); in swipingDownNavigationDrawerDoesNotCloseActionDrawer() 114 onView(withId(R.id.drawer_layout)).perform(swipeDown()); in swipingDownNavigationDrawerDoesNotCloseActionDrawer() 115 onView(withId(R.id.navigation_drawer)) in swipingDownNavigationDrawerDoesNotCloseActionDrawer() 118 allOf(withId(R.id.navigation_drawer), isOpened(true)), in swipingDownNavigationDrawerDoesNotCloseActionDrawer() 122 onView(withId(R.id.action_drawer)).check(matches(isPeeking())); in swipingDownNavigationDrawerDoesNotCloseActionDrawer() [all …]
|
/frameworks/support/v7/appcompat/src/android/support/v7/app/ |
D | NotificationCompatImplBase.java | 92 view.removeAllViews(R.id.media_actions); in generateContentViewMedia() 103 view.addView(R.id.media_actions, button); in generateContentViewMedia() 107 view.setViewVisibility(R.id.end_padder, View.GONE); in generateContentViewMedia() 108 view.setViewVisibility(R.id.cancel_action, View.VISIBLE); in generateContentViewMedia() 109 view.setOnClickPendingIntent(R.id.cancel_action, cancelButtonIntent); in generateContentViewMedia() 110 view.setInt(R.id.cancel_action, "setAlpha", in generateContentViewMedia() 113 view.setViewVisibility(R.id.end_padder, View.VISIBLE); in generateContentViewMedia() 114 view.setViewVisibility(R.id.cancel_action, View.GONE); in generateContentViewMedia() 147 big.removeAllViews(R.id.media_actions); in generateMediaBigView() 151 big.addView(R.id.media_actions, button); in generateMediaBigView() [all …]
|
/frameworks/base/tests/TransitionTests/src/com/android/transitiontests/ |
D | CrossfadeMultiple.java | 52 ViewGroup container = findViewById(R.id.container); in onCreate() 55 mButton = findViewById(R.id.button); in onCreate() 56 mImageView = findViewById(R.id.imageview); in onCreate() 57 mTextView = findViewById(R.id.textview); in onCreate() 60 mCrossfade.addTarget(R.id.button).addTarget(R.id.textview).addTarget(R.id.imageview); in onCreate() 96 int id = view.getId(); in sendMessage() local 98 switch (id) { in sendMessage() 99 case R.id.button1: in sendMessage() 105 case R.id.button2: in sendMessage() 111 case R.id.button3: in sendMessage() [all …]
|
/frameworks/base/rs/java/android/renderscript/ |
D | RenderScript.java | 198 ContextType(int id) { in ContextType() argument 199 mID = id; in ContextType() 276 native void rsnContextSendMessage(long con, int id, int[] data); in rsnContextSendMessage() argument 277 synchronized void nContextSendMessage(int id, int[] data) { in nContextSendMessage() argument 279 rsnContextSendMessage(mContext, id, data); in nContextSendMessage() 398 native void rsnObjDestroy(long con, long id); in rsnObjDestroy() argument 399 void nObjDestroy(long id) { in nObjDestroy() argument 404 rsnObjDestroy(mContext, id); in nObjDestroy() 418 native void rsnElementGetNativeData(long con, long id, int[] elementData); in rsnElementGetNativeData() argument 419 synchronized void nElementGetNativeData(long id, int[] elementData) { in nElementGetNativeData() argument [all …]
|
/frameworks/native/services/inputflinger/host/ |
D | InputDriver.cpp | 61 input_device_identifier_t* id; member 79 std::size_t operator()(const input_collection_id& id) const { in operator ()() 80 return std::hash<int>()(static_cast<int>(id)); in operator ()() 161 input_collection_id_t id, int32_t arity) { in inputReportDefinitionAddCollection() argument 162 report->collections[id] = {.arity = arity}; in inputReportDefinitionAddCollection() 166 input_collection_id_t id, input_usage_t usage, int32_t min, int32_t max, in inputReportDefinitionDeclareUsageInt() argument 168 if (report->collections.find(id) != report->collections.end()) { in inputReportDefinitionDeclareUsageInt() 169 report->collections[id].intUsages.push_back({ in inputReportDefinitionDeclareUsageInt() 175 input_collection_id_t id, input_usage_t* usage, size_t usageCount) { in inputReportDefinitionDeclareUsagesBool() argument 176 if (report->collections.find(id) != report->collections.end()) { in inputReportDefinitionDeclareUsagesBool() [all …]
|
/frameworks/base/services/autofill/java/com/android/server/autofill/ |
D | Session.java | 114 public final int id; field in Session 234 ids[i] = mViewStates.valueAt(i).id; in getIdsOfAllViewStates() 259 Slog.v(TAG, "fillStructureWithAllowedValues(): no node for " + viewState.id); in fillContextWithAllowedValues() 275 overlay.focused = mCurrentViewId.equals(viewState.id); in fillContextWithAllowedValues() 349 id = sessionId; in Session() 383 + id + " destroyed"); in switchActivity() 401 + id + " destroyed"); in onFillRequestSuccess() 406 if (sVerbose) Slog.v(TAG, "canceling session " + id + " when server returned null"); in onFillRequestSuccess() 417 mService.setLastResponse(serviceUid, id, response); in onFillRequestSuccess() 445 + id + " destroyed"); in onFillRequestFailure() [all …]
|