/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 | 272 final int id = (int)fieldId; in write() local 277 writeDoubleImpl(id, (double)val); in write() 281 writeRepeatedDoubleImpl(id, (double)val); in write() 285 writeFloatImpl(id, (float)val); in write() 289 writeRepeatedFloatImpl(id, (float)val); in write() 293 writeInt32Impl(id, (int)val); in write() 297 writeRepeatedInt32Impl(id, (int)val); in write() 301 writeInt64Impl(id, (long)val); in write() 305 writeRepeatedInt64Impl(id, (long)val); in write() 309 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 | 83 onView(withId(R.id.textview)).perform(mouseClick()); in testSelectTextByDrag() 84 onView(withId(R.id.textview)).perform(replaceText(helloWorld)); in testSelectTextByDrag() 88 onView(withId(R.id.textview)).perform( in testSelectTextByDrag() 91 onView(withId(R.id.textview)).check(hasSelection("llo wor")); in testSelectTextByDrag() 93 onHandleView(com.android.internal.R.id.selection_start_handle) in testSelectTextByDrag() 95 onHandleView(com.android.internal.R.id.selection_end_handle) in testSelectTextByDrag() 98 onView(withId(R.id.textview)).perform(mouseClickOnTextAtIndex(helloWorld.indexOf("w"))); in testSelectTextByDrag() 99 onView(withId(R.id.textview)).check(hasSelection("")); in testSelectTextByDrag() 107 onView(withId(R.id.textview)).perform(mouseClick()); in testSelectTextByDrag_reverse() 108 onView(withId(R.id.textview)).perform(replaceText(helloWorld)); in testSelectTextByDrag_reverse() [all …]
|
D | TextViewActivityTest.java | 109 onView(withId(R.id.textview)).perform(replaceText(helloWorld)); in testTypedTextIsOnScreen() 111 onView(withId(R.id.textview)).check(matches(withText(helloWorld))); in testTypedTextIsOnScreen() 116 onView(withId(R.id.textview)).perform(replaceText(helloWorld)); in testPositionCursorAtTextAtIndex() 117 onView(withId(R.id.textview)).perform(clickOnTextAtIndex(helloWorld.indexOf("world"))); in testPositionCursorAtTextAtIndex() 120 onView(withId(R.id.textview)).perform(pressKey(KeyEvent.KEYCODE_FORWARD_DEL)); in testPositionCursorAtTextAtIndex() 121 onView(withId(R.id.textview)).check(matches(withText("Hello orld!"))); in testPositionCursorAtTextAtIndex() 129 onView(withId(R.id.textview)).perform(replaceText(text)); in testPositionCursorAtTextAtIndex_arabic() 131 onView(withId(R.id.textview)).perform(clickOnTextAtIndex(0)); in testPositionCursorAtTextAtIndex_arabic() 132 onView(withId(R.id.textview)).check(hasInsertionPointerAtIndex(0)); in testPositionCursorAtTextAtIndex_arabic() 133 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 | 69 private static final int[] MENU_CONTENT_ITEM_IDS = { R.id.destination_home, 70 R.id.destination_profile, R.id.destination_people }; 82 mBottomNavigation = (BottomNavigationView) activity.findViewById(R.id.bottom_navigation); in setUp() 86 mMenuStringContent.put(R.id.destination_home, res.getString(R.string.navigate_home)); in setUp() 87 mMenuStringContent.put(R.id.destination_profile, res.getString(R.string.navigate_profile)); in setUp() 88 mMenuStringContent.put(R.id.destination_people, res.getString(R.string.navigate_people)); in setUp() 129 onView(allOf(withText(mMenuStringContent.get(R.id.destination_profile)), in testNavigationSelectionListener() 130 isDescendantOfA(withId(R.id.bottom_navigation)), isDisplayed())).perform(click()); in testNavigationSelectionListener() 133 mBottomNavigation.getMenu().findItem(R.id.destination_profile)); in testNavigationSelectionListener() 135 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 | 129 int id = miUt.queryCallBarring(cbType); in queryCallBarring() local 131 if (id < 0) { in queryCallBarring() 137 mPendingCmds.put(Integer.valueOf(id), result); in queryCallBarring() 158 int id = miUt.queryCallForward(condition, number); in queryCallForward() local 160 if (id < 0) { in queryCallForward() 166 mPendingCmds.put(Integer.valueOf(id), result); in queryCallForward() 186 int id = miUt.queryCallWaiting(); in queryCallWaiting() local 188 if (id < 0) { in queryCallWaiting() 194 mPendingCmds.put(Integer.valueOf(id), result); in queryCallWaiting() 213 int id = miUt.queryCLIR(); in queryCLIR() local [all …]
|
/frameworks/base/core/java/android/content/res/ |
D | Resources.java | 334 @NonNull public CharSequence getText(@StringRes int id) throws NotFoundException { in getText() argument 335 CharSequence res = mResourcesImpl.getAssets().getResourceText(id); in getText() 340 + Integer.toHexString(id)); in getText() 355 @NonNull public Typeface getFont(@FontRes int id) throws NotFoundException { in getFont() argument 359 impl.getValue(id, value, true); in getFont() 360 Typeface typeface = impl.loadFont(this, value, id); in getFont() 368 + Integer.toHexString(id)); in getFont() 372 Typeface getFont(@NonNull TypedValue value, @FontRes int id) throws NotFoundException { in getFont() argument 373 return mResourcesImpl.loadFont(this, value, id); in getFont() 379 public void preloadFonts(@ArrayRes int id) { in preloadFonts() argument [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/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/support/compat/java/android/support/v4/content/res/ |
D | ResourcesCompat.java | 73 public static Drawable getDrawable(@NonNull Resources res, @DrawableRes int id, in getDrawable() argument 76 return res.getDrawable(id, theme); in getDrawable() 78 return res.getDrawable(id); in getDrawable() 106 public static Drawable getDrawableForDensity(@NonNull Resources res, @DrawableRes int id, in getDrawableForDensity() argument 109 return res.getDrawableForDensity(id, density, theme); in getDrawableForDensity() 111 return res.getDrawableForDensity(id, density); in getDrawableForDensity() 113 return res.getDrawable(id); in getDrawableForDensity() 136 public static int getColor(@NonNull Resources res, @ColorRes int id, @Nullable Theme theme) in getColor() argument 139 return res.getColor(id, theme); in getColor() 141 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/layoutlib/bridge/src/android/content/res/ |
D | Resources_Delegate.java | 130 private static Pair<ResourceType, String> getResourceInfo(Resources resources, int id, in getResourceInfo() argument 133 Pair<ResourceType, String> resourceInfo = Bridge.resolveResourceId(id); in getResourceInfo() 149 resourceInfo = getLayoutlibCallback(resources).resolveResourceId(id); in getResourceInfo() 158 private static Pair<String, ResourceValue> getResourceValue(Resources resources, int id, in getResourceValue() argument 161 getResourceInfo(resources, id, platformResFlag_out); in getResourceValue() 182 static Drawable getDrawable(Resources resources, int id) { in getDrawable() argument 183 return getDrawable(resources, id, null); in getDrawable() 187 static Drawable getDrawable(Resources resources, int id, Theme theme) { in getDrawable() argument 188 Pair<String, ResourceValue> value = getResourceValue(resources, id, mPlatformResourceFlag); in getDrawable() 209 throwException(resources, id); in getDrawable() [all …]
|
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/aware/ |
D | WifiAwareNativeCallback.java | 142 public void notifyCapabilitiesResponse(short id, WifiNanStatus status, in notifyCapabilitiesResponse() argument 145 Log.v(TAG, "notifyCapabilitiesResponse: id=" + id + ", status=" + statusString(status) in notifyCapabilitiesResponse() 170 mWifiAwareStateManager.onCapabilitiesUpdateResponse(id, frameworkCapabilities); in notifyCapabilitiesResponse() 178 public void notifyEnableResponse(short id, WifiNanStatus status) { in notifyEnableResponse() argument 179 if (VDBG) Log.v(TAG, "notifyEnableResponse: id=" + id + ", status=" + statusString(status)); in notifyEnableResponse() 182 Log.wtf(TAG, "notifyEnableResponse: id=" + id + ", already enabled!?"); in notifyEnableResponse() 187 mWifiAwareStateManager.onConfigSuccessResponse(id); in notifyEnableResponse() 189 mWifiAwareStateManager.onConfigFailedResponse(id, status.status); in notifyEnableResponse() 194 public void notifyConfigResponse(short id, WifiNanStatus status) { in notifyConfigResponse() argument 195 if (VDBG) Log.v(TAG, "notifyConfigResponse: id=" + id + ", status=" + statusString(status)); in notifyConfigResponse() [all …]
|
/frameworks/base/services/autofill/java/com/android/server/autofill/ |
D | Session.java | 121 public final int id; field in Session 276 ids[i] = mViewStates.valueAt(i).id; in getIdsOfAllViewStatesLocked() 287 private String getValueAsString(@NonNull AutofillId id) { in getValueAsString() argument 290 final ViewState state = mViewStates.get(id); in getValueAsString() 292 if (sDebug) Slog.d(TAG, "getValue(): no view state for " + id); in getValueAsString() 297 if (sDebug) Slog.d(TAG, "getValue(): no current value for " + id); in getValueAsString() 298 value = getValueFromContextsLocked(id); in getValueAsString() 306 final CharSequence[] options = getAutofillOptionsFromContextsLocked(id); in getValueAsString() 312 Slog.w(TAG, "getValueAsString(): no autofill options for id " + id); in getValueAsString() 339 Slog.v(TAG, "fillStructureWithAllowedValues(): no node for " + viewState.id); in fillContextWithAllowedValuesLocked() [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/base/tools/aapt2/test/ |
D | Builders.cpp | 33 uint8_t id) { in SetPackageId() argument 34 ResourceTablePackage* package = table_->CreatePackage(package_name, id); in SetPackageId() 40 const ResourceId& id) { in AddSimple() argument 41 return AddValue(name, id, util::make_unique<Id>()); in AddSimple() 46 const ResourceId& id) { in AddSimple() argument 47 return AddValue(name, config, id, util::make_unique<Id>()); in AddSimple() 56 const ResourceId& id, in AddReference() argument 58 return AddValue(name, id, util::make_unique<Reference>(ParseNameOrDie(ref))); in AddReference() 66 ResourceTableBuilder& ResourceTableBuilder::AddString(const StringPiece& name, const ResourceId& id, in AddString() argument 68 return AddValue(name, id, util::make_unique<String>(table_->string_pool.MakeRef(str))); in AddString() [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/packages/SystemUI/src/com/android/keyguard/ |
D | KeyguardPINView.java | 75 return R.id.pinEntry; in getPasswordTextViewId() 82 mContainer = findViewById(R.id.container); in onFinishInflate() 83 mRow0 = findViewById(R.id.row0); in onFinishInflate() 84 mRow1 = findViewById(R.id.row1); in onFinishInflate() 85 mRow2 = findViewById(R.id.row2); in onFinishInflate() 86 mRow3 = findViewById(R.id.row3); in onFinishInflate() 87 mDivider = findViewById(R.id.divider); in onFinishInflate() 93 findViewById(R.id.key1), findViewById(R.id.key2), in onFinishInflate() 94 findViewById(R.id.key3) in onFinishInflate() 97 findViewById(R.id.key4), findViewById(R.id.key5), in onFinishInflate() [all …]
|