/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 | 227 final int id = (int)fieldId; in write() local 232 writeDoubleImpl(id, (double)val); in write() 236 writeRepeatedDoubleImpl(id, (double)val); in write() 240 writeFloatImpl(id, (float)val); in write() 244 writeRepeatedFloatImpl(id, (float)val); in write() 248 writeInt32Impl(id, (int)val); in write() 252 writeRepeatedInt32Impl(id, (int)val); in write() 256 writeInt64Impl(id, (long)val); in write() 260 writeRepeatedInt64Impl(id, (long)val); in write() 264 writeUInt32Impl(id, (int)val); in write() [all …]
|
/frameworks/base/tests/JankBench/app/src/main/java/com/android/benchmark/app/ |
D | RunLocalBenchmarksActivity.java | 66 R.id.benchmark_list_view_scroll, 67 R.id.benchmark_image_list_view_scroll, 68 R.id.benchmark_shadow_grid, 69 R.id.benchmark_text_high_hitrate, 70 R.id.benchmark_text_low_hitrate, 71 R.id.benchmark_edit_text_input, 72 R.id.benchmark_overdraw, 73 R.id.benchmark_bitmap_upload, 84 public void setRunId(int id) { in setRunId() argument 85 mRunId = id; in setRunId() [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/view/autofill/ |
D | AutofillIdTest.java | 38 final AutofillId id = new AutofillId(42); in testNonVirtual() local 39 assertNonVirtual(id, 42, NO_SESSION); in testNonVirtual() 41 final AutofillId clone = cloneThroughParcel(id); in testNonVirtual() 47 final AutofillId id = new AutofillId(42, 108); in testVirtual_int() local 48 assertThat(id.getViewId()).isEqualTo(42); in testVirtual_int() 49 assertThat(id.isVirtualInt()).isTrue(); in testVirtual_int() 50 assertThat(id.isVirtualLong()).isFalse(); in testVirtual_int() 51 assertThat(id.isNonVirtual()).isFalse(); in testVirtual_int() 52 assertThat(id.getVirtualChildIntId()).isEqualTo(108); in testVirtual_int() 53 assertThat(id.getVirtualChildLongId()).isEqualTo(View.NO_ID); in testVirtual_int() [all …]
|
/frameworks/base/core/tests/coretests/src/android/widget/ |
D | TextViewActivityMouseTest.java | 86 onView(withId(R.id.textview)).perform(mouseClick()); in testSelectTextByDrag() 87 onView(withId(R.id.textview)).perform(replaceText(helloWorld)); in testSelectTextByDrag() 91 onView(withId(R.id.textview)).perform( in testSelectTextByDrag() 94 onView(withId(R.id.textview)).check(hasSelection("llo wor")); in testSelectTextByDrag() 96 onHandleView(com.android.internal.R.id.selection_start_handle) in testSelectTextByDrag() 98 onHandleView(com.android.internal.R.id.selection_end_handle) in testSelectTextByDrag() 101 onView(withId(R.id.textview)).perform(mouseClickOnTextAtIndex(helloWorld.indexOf("w"))); in testSelectTextByDrag() 102 onView(withId(R.id.textview)).check(hasSelection("")); in testSelectTextByDrag() 110 onView(withId(R.id.textview)).perform(mouseClick()); in testSelectTextByDrag_reverse() 111 onView(withId(R.id.textview)).perform(replaceText(helloWorld)); in testSelectTextByDrag_reverse() [all …]
|
D | TextViewActivityTest.java | 125 onView(withId(R.id.textview)).perform(replaceText(helloWorld)); in testTypedTextIsOnScreen() 127 onView(withId(R.id.textview)).check(matches(withText(helloWorld))); in testTypedTextIsOnScreen() 132 onView(withId(R.id.textview)).perform(replaceText(helloWorld)); in testPositionCursorAtTextAtIndex() 133 onView(withId(R.id.textview)).perform(clickOnTextAtIndex(helloWorld.indexOf("world"))); in testPositionCursorAtTextAtIndex() 136 onView(withId(R.id.textview)).perform(pressKey(KeyEvent.KEYCODE_FORWARD_DEL)); in testPositionCursorAtTextAtIndex() 137 onView(withId(R.id.textview)).check(matches(withText("Hello orld!"))); in testPositionCursorAtTextAtIndex() 145 onView(withId(R.id.textview)).perform(replaceText(text)); in testPositionCursorAtTextAtIndex_arabic() 147 onView(withId(R.id.textview)).perform(clickOnTextAtIndex(0)); in testPositionCursorAtTextAtIndex_arabic() 148 onView(withId(R.id.textview)).check(hasInsertionPointerAtIndex(0)); in testPositionCursorAtTextAtIndex_arabic() 149 onView(withId(R.id.textview)).perform(clickOnTextAtIndex(1)); in testPositionCursorAtTextAtIndex_arabic() [all …]
|
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/ |
D | MockResources.java | 38 public boolean getBoolean(int id) { in getBoolean() argument 39 if (mBooleanValues.containsKey(id)) { in getBoolean() 40 return mBooleanValues.get(id); in getBoolean() 47 public int getInteger(int id) { in getInteger() argument 48 if (mIntegerValues.containsKey(id)) { in getInteger() 49 return mIntegerValues.get(id); in getInteger() 56 public String getString(int id) { in getString() argument 57 if (mStringValues.containsKey(id)) { in getString() 58 return mStringValues.get(id); in getString() 65 public CharSequence getText(int id) { in getText() argument [all …]
|
/frameworks/base/core/java/android/view/inspector/ |
D | PropertyReader.java | 50 void readBoolean(int id, boolean value); in readBoolean() argument 59 void readByte(int id, byte value); in readByte() argument 68 void readChar(int id, char value); in readChar() argument 77 void readDouble(int id, double value); in readDouble() argument 86 void readFloat(int id, float value); in readFloat() argument 95 void readInt(int id, int value); in readInt() argument 104 void readLong(int id, long value); in readLong() argument 113 void readShort(int id, short value); in readShort() argument 124 void readObject(int id, @Nullable Object value); in readObject() argument 133 void readColor(int id, @ColorInt int value); in readColor() argument [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/base/services/tests/servicestests/src/com/android/server/compat/ |
D | CompatConfigBuilder.java | 42 CompatConfigBuilder addTargetSdkChangeWithId(int sdk, long id) { in addTargetSdkChangeWithId() argument 43 mChanges.add(new CompatChange(id, "", sdk, false, false, "")); in addTargetSdkChangeWithId() 47 CompatConfigBuilder addTargetSdkDisabledChangeWithId(int sdk, long id) { in addTargetSdkDisabledChangeWithId() argument 48 mChanges.add(new CompatChange(id, "", sdk, true, false, "")); in addTargetSdkDisabledChangeWithId() 52 CompatConfigBuilder addTargetSdkChangeWithIdAndName(int sdk, long id, String name) { in addTargetSdkChangeWithIdAndName() argument 53 mChanges.add(new CompatChange(id, name, sdk, false, false, "")); in addTargetSdkChangeWithIdAndName() 57 CompatConfigBuilder addTargetSdkChangeWithIdAndDescription(int sdk, long id, in addTargetSdkChangeWithIdAndDescription() argument 59 mChanges.add(new CompatChange(id, "", sdk, false, false, description)); in addTargetSdkChangeWithIdAndDescription() 63 CompatConfigBuilder addEnabledChangeWithId(long id) { in addEnabledChangeWithId() argument 64 mChanges.add(new CompatChange(id, "", -1, false, false, "")); in addEnabledChangeWithId() [all …]
|
/frameworks/base/libs/protoutil/src/ |
D | ProtoOutputStream.cpp | 60 const uint32_t id = (uint32_t)fieldId; in internalWrite() local 62 case FIELD_TYPE_DOUBLE: writeDoubleImpl(id, (double)val); break; in internalWrite() 63 case FIELD_TYPE_FLOAT: writeFloatImpl(id, (float)val); break; in internalWrite() 64 case FIELD_TYPE_INT64: writeInt64Impl(id, (int64_t)val); break; in internalWrite() 65 case FIELD_TYPE_UINT64: writeUint64Impl(id, (uint64_t)val); break; in internalWrite() 66 case FIELD_TYPE_INT32: writeInt32Impl(id, (int32_t)val); break; in internalWrite() 67 case FIELD_TYPE_FIXED64: writeFixed64Impl(id, (uint64_t)val); break; in internalWrite() 68 case FIELD_TYPE_FIXED32: writeFixed32Impl(id, (uint32_t)val); break; in internalWrite() 69 case FIELD_TYPE_UINT32: writeUint32Impl(id, (uint32_t)val); break; in internalWrite() 70 case FIELD_TYPE_SFIXED32: writeSFixed32Impl(id, (int32_t)val); break; in internalWrite() [all …]
|
/frameworks/native/services/surfaceflinger/tests/unittests/ |
D | CachingTest.cpp | 38 client_cache_t id; in TEST_F() local 39 uint32_t slot = mHwcSlotGenerator.getHwcCacheSlot(id); in TEST_F() 45 client_cache_t id; in TEST_F() local 46 id.token = binder; in TEST_F() 47 id.id = 0; in TEST_F() 48 uint32_t slot = mHwcSlotGenerator.getHwcCacheSlot(id); in TEST_F() 53 idB.id = 1; in TEST_F() 60 slot = mHwcSlotGenerator.getHwcCacheSlot(id); in TEST_F() 70 client_cache_t id; in TEST_F() local 71 id.token = binder; in TEST_F() [all …]
|
/frameworks/base/test-mock/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/ims/src/java/com/android/ims/ |
D | ImsUt.java | 174 int id = miUt.queryCallBarringForServiceClass(cbType, serviceClass); in queryCallBarring() local 176 if (id < 0) { in queryCallBarring() 182 mPendingCmds.put(Integer.valueOf(id), result); in queryCallBarring() 203 int id = miUt.queryCallForward(condition, number); in queryCallForward() local 205 if (id < 0) { in queryCallForward() 211 mPendingCmds.put(Integer.valueOf(id), result); in queryCallForward() 231 int id = miUt.queryCallWaiting(); in queryCallWaiting() local 233 if (id < 0) { in queryCallWaiting() 239 mPendingCmds.put(Integer.valueOf(id), result); in queryCallWaiting() 258 int id = miUt.queryCLIR(); in queryCLIR() local [all …]
|
/frameworks/base/core/java/android/content/res/ |
D | Resources.java | 361 @NonNull public CharSequence getText(@StringRes int id) throws NotFoundException { in getText() argument 362 CharSequence res = mResourcesImpl.getAssets().getResourceText(id); in getText() 367 + Integer.toHexString(id)); in getText() 382 @NonNull public Typeface getFont(@FontRes int id) throws NotFoundException { in getFont() argument 386 impl.getValue(id, value, true); in getFont() 387 Typeface typeface = impl.loadFont(this, value, id); in getFont() 395 + Integer.toHexString(id)); in getFont() 399 Typeface getFont(@NonNull TypedValue value, @FontRes int id) throws NotFoundException { in getFont() argument 400 return mResourcesImpl.loadFont(this, value, id); in getFont() 406 public void preloadFonts(@ArrayRes int id) { in preloadFonts() argument [all …]
|
/frameworks/native/cmds/surfacereplayer/replayer/ |
D | Replayer.cpp | 296 auto layerId = increment.buffer_update().id(); in dispatchEvent() 303 mBufferQueueSchedulers[increment.buffer_update().id()].get()) in dispatchEvent() 306 auto bqs = mBufferQueueSchedulers[increment.buffer_update().id()]; in dispatchEvent() 364 if (mLayers[change.id()] == nullptr) { in doSurfaceTransaction() 365 mLayerCond.wait(lock, [&] { return (mLayers[change.id()] != nullptr); }); in doSurfaceTransaction() 370 setPosition(transaction, change.id(), change.position()); in doSurfaceTransaction() 373 setSize(transaction, change.id(), change.size()); in doSurfaceTransaction() 376 setAlpha(transaction, change.id(), change.alpha()); in doSurfaceTransaction() 379 setLayer(transaction, change.id(), change.layer()); in doSurfaceTransaction() 382 setCrop(transaction, change.id(), change.crop()); in doSurfaceTransaction() [all …]
|
/frameworks/base/tools/aapt2/ |
D | ResourceTable.cpp | 48 return lhs->type < rhs.first || (lhs->type == rhs.first && rhs.second && lhs->id < rhs.second); in less_than_type_and_id() 60 return name_cmp < 0 || (name_cmp == 0 && rhs.second && lhs->id < rhs.second); in less_than_struct_with_name_and_id() 73 ResourceTablePackage* ResourceTable::FindPackageById(uint8_t id) const { in FindPackageById() 75 if (package->id && package->id.value() == id) { in FindPackageById() 82 ResourceTablePackage* ResourceTable::CreatePackage(const StringPiece& name, Maybe<uint8_t> id) { in CreatePackage() argument 85 if (id && !package->id) { in CreatePackage() 86 package->id = id; in CreatePackage() 90 if (id && package->id && package->id.value() != id.value()) { in CreatePackage() 97 const Maybe<uint8_t> id) { in CreatePackageAllowingDuplicateNames() argument 99 auto iter = std::lower_bound(packages.begin(), last, std::make_pair(name, id), in CreatePackageAllowingDuplicateNames() [all …]
|
/frameworks/layoutlib/bridge/src/android/content/res/ |
D | Resources_Delegate.java | 131 private static ResourceReference getResourceInfo(Resources resources, int id) { in getResourceInfo() argument 133 ResourceReference resourceInfo = Bridge.resolveResourceId(id); in getResourceInfo() 145 resourceInfo = getLayoutlibCallback(resources).resolveResourceId(id); in getResourceInfo() 151 private static Pair<String, ResourceValue> getResourceValue(Resources resources, int id) { in getResourceValue() argument 152 ResourceReference resourceInfo = getResourceInfo(resources, id); in getResourceValue() 170 static Drawable getDrawable(Resources resources, int id) { in getDrawable() argument 171 return getDrawable(resources, id, null); in getDrawable() 175 static Drawable getDrawable(Resources resources, int id, Theme theme) { in getDrawable() argument 176 Pair<String, ResourceValue> value = getResourceValue(resources, id); in getDrawable() 197 throwException(resources, id); in getDrawable() [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/telephony/java/android/telephony/ims/ |
D | ImsUtListener.java | 73 public void onUtConfigurationUpdated(int id) { in onUtConfigurationUpdated() argument 75 mServiceInterface.utConfigurationUpdated(null, id); in onUtConfigurationUpdated() 81 public void onUtConfigurationUpdateFailed(int id, ImsReasonInfo error) { in onUtConfigurationUpdateFailed() argument 83 mServiceInterface.utConfigurationUpdateFailed(null, id, error); in onUtConfigurationUpdateFailed() 105 public void onUtConfigurationQueried(int id, Bundle configuration) { in onUtConfigurationQueried() argument 107 mServiceInterface.utConfigurationQueried(null, id, configuration); in onUtConfigurationQueried() 123 public void onLineIdentificationSupplementaryServiceResponse(int id, in onLineIdentificationSupplementaryServiceResponse() argument 126 mServiceInterface.lineIdentificationSupplementaryServiceResponse(id, configuration); in onLineIdentificationSupplementaryServiceResponse() 137 public void onUtConfigurationQueryFailed(int id, ImsReasonInfo error) { in onUtConfigurationQueryFailed() argument 139 mServiceInterface.utConfigurationQueryFailed(null, id, error); in onUtConfigurationQueryFailed() [all …]
|
/frameworks/base/tools/aapt2/process/ |
D | SymbolTable.cpp | 112 if (shared_symbol->id) { in FindByName() 114 id_cache_.put(shared_symbol->id.value(), shared_symbol); in FindByName() 122 const SymbolTable::Symbol* SymbolTable::FindById(const ResourceId& id) { in FindById() argument 123 if (const std::shared_ptr<Symbol>& s = id_cache_.get(id)) { in FindById() 128 std::unique_ptr<Symbol> symbol = delegate_->FindById(id, sources_); in FindById() 136 id_cache_.put(id, shared_symbol); in FindById() 152 if (ref.id) { in FindByReference() 153 symbol = FindById(ref.id.value()); in FindByReference() 174 ResourceId id, const std::vector<std::unique_ptr<ISymbolSource>>& sources) { in FindById() argument 176 std::unique_ptr<SymbolTable::Symbol> symbol = source->FindById(id); in FindById() [all …]
|
/frameworks/base/rs/java/android/renderscript/ |
D | RenderScript.java | 202 ContextType(int id) { in ContextType() argument 203 mID = id; in ContextType() 280 native void rsnContextSendMessage(long con, int id, int[] data); in rsnContextSendMessage() argument 281 synchronized void nContextSendMessage(int id, int[] data) { in nContextSendMessage() argument 283 rsnContextSendMessage(mContext, id, data); in nContextSendMessage() 402 native void rsnObjDestroy(long con, long id); in rsnObjDestroy() argument 403 void nObjDestroy(long id) { in nObjDestroy() argument 408 rsnObjDestroy(mContext, id); in nObjDestroy() 422 native void rsnElementGetNativeData(long con, long id, int[] elementData); in rsnElementGetNativeData() argument 423 synchronized void nElementGetNativeData(long id, int[] elementData) { in nElementGetNativeData() argument [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/packages/SystemUI/src/com/android/keyguard/ |
D | KeyguardPINView.java | 78 return R.id.pinEntry; in getPasswordTextViewId() 85 mContainer = findViewById(R.id.container); in onFinishInflate() 86 mRow0 = findViewById(R.id.row0); in onFinishInflate() 87 mRow1 = findViewById(R.id.row1); in onFinishInflate() 88 mRow2 = findViewById(R.id.row2); in onFinishInflate() 89 mRow3 = findViewById(R.id.row3); in onFinishInflate() 90 mDivider = findViewById(R.id.divider); in onFinishInflate() 96 findViewById(R.id.key1), findViewById(R.id.key2), in onFinishInflate() 97 findViewById(R.id.key3) in onFinishInflate() 100 findViewById(R.id.key4), findViewById(R.id.key5), in onFinishInflate() [all …]
|