Home
last modified time | relevance | path

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

12345678910>>...41

/frameworks/base/tests/StatusBar/src/com/android/statusbartest/
DNotificationBuilderTest.java60 for (int id: new int[] { in onCreate()
61 R.id.clear_1, in onCreate()
62 R.id.clear_2, in onCreate()
63 R.id.clear_3, in onCreate()
64 R.id.clear_4, in onCreate()
65 R.id.clear_5, in onCreate()
66 R.id.clear_6, in onCreate()
67 R.id.clear_7, in onCreate()
68 R.id.clear_8, in onCreate()
69 R.id.clear_9, in onCreate()
[all …]
/frameworks/ex/carousel/java/com/android/ex/carousel/
DCarouselViewHelper.java99 int id = msg.arg1; in handleMessage() local
100 if (id >= mCarouselView.getCardCount()) { in handleMessage()
101 Log.e(TAG, "Index out of range for get, card:" + id); in handleMessage()
105 Log.e(TAG, "Unknown message: " + id); in handleMessage()
110 final Bitmap bitmap = getTexture(id); in handleMessage()
112 mSyncHandler.obtainMessage(SET_TEXTURE_N, id, 0, bitmap).sendToTarget(); in handleMessage()
115 TextureParameters params = getTextureParameters(id); in handleMessage()
117 mSyncHandler.obtainMessage(SET_MATRIX_N, id, 0, in handleMessage()
122 final Bitmap bitmap = getDetailTexture(id); in handleMessage()
124 mSyncHandler.obtainMessage(SET_DETAIL_TEXTURE_N, id, 0, bitmap).sendToTarget(); in handleMessage()
[all …]
/frameworks/base/libs/utils/
DRefBase.cpp106 LOGD("\t%c ID %p (ref %d):", inc, refs->id, refs->ref); in ~weakref_impl()
124 LOGD("\t%c ID %p (ref %d):", inc, refs->id, refs->ref); in ~weakref_impl()
139 void addStrongRef(const void* id) { in addStrongRef() argument
142 addRef(&mStrongRefs, id, mStrong); in addStrongRef()
145 void removeStrongRef(const void* id) { in removeStrongRef() argument
149 removeRef(&mStrongRefs, id); in removeStrongRef()
151 addRef(&mStrongRefs, id, -mStrong); in removeStrongRef()
162 void addWeakRef(const void* id) { in addWeakRef() argument
163 addRef(&mWeakRefs, id, mWeak); in addWeakRef()
166 void removeWeakRef(const void* id) { in removeWeakRef() argument
[all …]
/frameworks/base/tests/BiDiTests/src/com/android/bidi/
DBiDiTestActivity.java45 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 = (ListView) 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, "Canvas", BiDiTestCanvas.class, R.id.canvas); in getTests()
105 addItem(result, "Canvas2", BiDiTestCanvas2.class, R.id.canvas2); in getTests()
107 addItem(result, "Linear LTR", BiDiTestLinearLayoutLtr.class, R.id.linear_layout_ltr); in getTests()
[all …]
/frameworks/base/test-runner/src/android/test/mock/
DMockResources.java51 public CharSequence getText(int id) throws NotFoundException { in getText() argument
56 public CharSequence getQuantityText(int id, int quantity) throws NotFoundException { in getQuantityText() argument
61 public String getString(int id) throws NotFoundException { in getString() argument
66 public String getString(int id, Object... formatArgs) throws NotFoundException { in getString() argument
71 public String getQuantityString(int id, int quantity, Object... formatArgs) in getQuantityString() argument
77 public String getQuantityString(int id, int quantity) throws NotFoundException { in getQuantityString() argument
82 public CharSequence getText(int id, CharSequence def) { in getText() argument
87 public CharSequence[] getTextArray(int id) throws NotFoundException { in getTextArray() argument
92 public String[] getStringArray(int id) throws NotFoundException { in getStringArray() argument
97 public int[] getIntArray(int id) throws NotFoundException { in getIntArray() argument
[all …]
/frameworks/base/graphics/java/android/renderscript/
DRenderScript.java188 native void rsnObjDestroy(int con, int id); in rsnObjDestroy() argument
189 synchronized void nObjDestroy(int id) { in nObjDestroy() argument
194 rsnObjDestroy(mContext, id); in nObjDestroy()
208 native void rsnElementGetNativeData(int con, int id, int[] elementData); in rsnElementGetNativeData() argument
209 synchronized void nElementGetNativeData(int id, int[] elementData) { in nElementGetNativeData() argument
211 rsnElementGetNativeData(mContext, id, elementData); in nElementGetNativeData()
213 native void rsnElementGetSubElements(int con, int id, int[] IDs, String[] names); in rsnElementGetSubElements() argument
214 synchronized void nElementGetSubElements(int id, int[] IDs, String[] names) { in nElementGetSubElements() argument
216 rsnElementGetSubElements(mContext, id, IDs, names); in nElementGetSubElements()
224 native void rsnTypeGetNativeData(int con, int id, int[] typeData); in rsnTypeGetNativeData() argument
[all …]
/frameworks/base/tools/layoutlib/bridge/src/android/content/res/
DBridgeResources.java129 private Pair<String, ResourceValue> getResourceValue(int id, boolean[] platformResFlag_out) { in getResourceValue() argument
131 Pair<ResourceType, String> resourceInfo = Bridge.resolveResourceId(id); in getResourceValue()
143 resourceInfo = mProjectCallback.resolveResourceId(id); in getResourceValue()
158 public Drawable getDrawable(int id) throws NotFoundException { in getDrawable() argument
159 Pair<String, ResourceValue> value = getResourceValue(id, mPlatformResourceFlag); in getDrawable()
166 throwException(id); in getDrawable()
173 public int getColor(int id) throws NotFoundException { in getColor() argument
174 Pair<String, ResourceValue> value = getResourceValue(id, mPlatformResourceFlag); in getColor()
187 throwException(id); in getColor()
194 public ColorStateList getColorStateList(int id) throws NotFoundException { in getColorStateList() argument
[all …]
/frameworks/base/core/java/android/content/res/
DResources.java242 public CharSequence getText(int id) throws NotFoundException { in getText() argument
243 CharSequence res = mAssets.getResourceText(id); in getText()
248 + Integer.toHexString(id)); in getText()
269 public CharSequence getQuantityText(int id, int quantity) throws NotFoundException { in getQuantityText() argument
271 CharSequence res = mAssets.getResourceBagText(id, in getQuantityText()
276 res = mAssets.getResourceBagText(id, ID_OTHER); in getQuantityText()
280 throw new NotFoundException("Plural resource ID #0x" + Integer.toHexString(id) in getQuantityText()
330 public String getString(int id) throws NotFoundException { in getString() argument
331 CharSequence res = getText(id); in getString()
336 + Integer.toHexString(id)); in getString()
[all …]
DXmlBlock.java142 int id = nativeGetText(mParseState); in getText() local
143 return id >= 0 ? mStrings.get(id).toString() : null; in getText()
170 int id = nativeGetNamespace(mParseState); in getNamespace() local
171 return id >= 0 ? mStrings.get(id).toString() : ""; in getNamespace()
174 int id = nativeGetName(mParseState); in getName() local
175 return id >= 0 ? mStrings.get(id).toString() : null; in getName()
178 int id = nativeGetAttributeNamespace(mParseState, index); in getAttributeNamespace() local
179 if (DEBUG) System.out.println("getAttributeNamespace of " + index + " = " + id); in getAttributeNamespace()
180 if (id >= 0) return mStrings.get(id).toString(); in getAttributeNamespace()
181 else if (id == -1) return ""; in getAttributeNamespace()
[all …]
/frameworks/base/media/tests/SoundPoolTest/src/com/android/
DSoundPoolTest.java96 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/libs/gui/
DSurfaceComposerClient.cpp102 const sp<SurfaceComposerClient>& client, SurfaceID id);
106 status_t setPosition(const sp<SurfaceComposerClient>& client, SurfaceID id,
108 status_t setSize(const sp<SurfaceComposerClient>& client, SurfaceID id,
110 status_t setLayer(const sp<SurfaceComposerClient>& client, SurfaceID id,
112 status_t setFlags(const sp<SurfaceComposerClient>& client, SurfaceID id,
115 const sp<SurfaceComposerClient>& client, SurfaceID id,
117 status_t setAlpha(const sp<SurfaceComposerClient>& client, SurfaceID id,
119 status_t setMatrix(const sp<SurfaceComposerClient>& client, SurfaceID id,
122 const sp<SurfaceComposerClient>& client, SurfaceID id,
154 const sp<SurfaceComposerClient>& client, SurfaceID id) { in getLayerStateLocked() argument
[all …]
/frameworks/base/media/libstagefright/codecs/common/include/
DvoIndex.h33 #define _MAKE_SOURCE_ID(id, name) \ argument
34 VO_INDEX_SRC_##name = _VO_INDEX_SOURCE | id,
36 #define _MAKE_CODEC_ID(id, name) \ argument
37 VO_INDEX_DEC_##name = _VO_INDEX_DEC | id, \
38 VO_INDEX_ENC_##name = _VO_INDEX_ENC | id,
40 #define _MAKE_EFFECT_ID(id, name) \ argument
41 VO_INDEX_EFT_##name = _VO_INDEX_EFFECT | id,
43 #define _MAKE_SINK_ID(id, name) \ argument
44 VO_INDEX_SNK_##name = _VO_INDEX_SINK | id,
46 #define _MAKE_FILTER_ID(id, name) \ argument
[all …]
/frameworks/base/services/java/com/android/server/
DAppWidgetService.java254 private void dumpAppWidgetId(AppWidgetId id, int index, PrintWriter pw) { in dumpAppWidgetId() argument
256 pw.println(id.appWidgetId); in dumpAppWidgetId()
258 pw.print(id.host.hostId); pw.print(' '); in dumpAppWidgetId()
259 pw.print(id.host.packageName); pw.print('/'); in dumpAppWidgetId()
260 pw.println(id.host.uid); in dumpAppWidgetId()
261 if (id.provider != null) { in dumpAppWidgetId()
263 pw.println(id.provider.info.provider.flattenToShortString()); in dumpAppWidgetId()
265 if (id.host != null) { in dumpAppWidgetId()
266 pw.print(" host.callbacks="); pw.println(id.host.callbacks); in dumpAppWidgetId()
268 if (id.views != null) { in dumpAppWidgetId()
[all …]
/frameworks/base/core/java/android/app/
DNotificationManager.java101 public void notify(int id, Notification notification) in notify() argument
103 notify(null, id, notification); in notify()
117 public void notify(String tag, int id, Notification notification) in notify() argument
122 if (localLOGV) Log.v(TAG, pkg + ": notify(" + id + ", " + notification + ")"); in notify()
124 service.enqueueNotificationWithTag(pkg, tag, id, notification, idOut); in notify()
125 if (id != idOut[0]) { in notify()
126 Log.w(TAG, "notify: id corrupted: sent " + id + ", got back " + idOut[0]); in notify()
137 public void cancel(int id) in cancel() argument
139 cancel(null, id); in cancel()
147 public void cancel(String tag, int id) in cancel() argument
[all …]
DLocalActivityManager.java49 id = _id; in LocalActivityRecord()
53 final String id; // Unique name of this record. field in LocalActivityManager.LocalActivityRecord
122 instanceObj = lastNonConfigurationInstances.get(r.id); in moveToState()
131 if (localLOGV) Log.v(TAG, r.id + ": starting " + r.intent); in moveToState()
136 mParent, r.id, r.intent, r.activityInfo, r, r.instanceState, instance); in moveToState()
145 if (localLOGV) Log.v(TAG, r.id + ": resuming"); in moveToState()
162 if (localLOGV) Log.v(TAG, r.id + ": restarting"); in moveToState()
167 if (localLOGV) Log.v(TAG, r.id + ": restarting and resuming"); in moveToState()
177 if (localLOGV) Log.v(TAG, r.id + ": resuming"); in moveToState()
183 if (localLOGV) Log.v(TAG, r.id + ": stopping"); in moveToState()
[all …]
/frameworks/base/telephony/java/com/android/internal/telephony/cdma/
DCdmaInformationRecords.java40 int id = p.readInt(); in CdmaInformationRecords() local
41 switch (id) { in CdmaInformationRecords()
44 record = new CdmaDisplayInfoRec(id, p.readString()); in CdmaInformationRecords()
50 record = new CdmaNumberInfoRec(id, p.readString(), p.readInt(), p.readInt(), in CdmaInformationRecords()
80 + CdmaInformationRecords.idToString(id) + " "); in CdmaInformationRecords()
85 public static String idToString(int id) { in idToString() argument
86 switch(id) { in idToString()
132 public int id; field in CdmaInformationRecords.CdmaDisplayInfoRec
135 public CdmaDisplayInfoRec(int id, String alpha) { in CdmaDisplayInfoRec() argument
136 this.id = id; in CdmaDisplayInfoRec()
[all …]
/frameworks/base/core/java/android/content/pm/
DUserInfo.java44 public int id; field in UserInfo
48 public UserInfo(int id, String name, int flags) { in UserInfo() argument
49 this.id = id; in UserInfo()
71 id = orig.id; in UserInfo()
77 return "UserInfo{" + id + ":" + name + ":" + Integer.toHexString(flags) + "}"; in toString()
85 dest.writeInt(id); in writeToParcel()
101 id = source.readInt(); in UserInfo()
/frameworks/base/media/libstagefright/id3/
DID3.cpp77 char id[3]; in parseV2() member
90 if (memcmp(header.id, "ID3", 3)) { in parseV2()
345 ID3::Iterator::Iterator(const ID3 &parent, const char *id) in Iterator() argument
351 if (id) { in Iterator()
352 mID = strdup(id); in Iterator()
379 void ID3::Iterator::getID(String8 *id) const { in getID()
380 id->setTo(""); in getID()
387 id->setTo((const char *)&mParent.mData[mOffset], 3); in getID()
389 id->setTo((const char *)&mParent.mData[mOffset], 4); in getID()
395 id->setTo("TT2"); in getID()
[all …]
/frameworks/base/tools/localize/
DValues.cpp13 id(i), in StringResource()
26 id(), in StringResource()
39 id(that.id), in StringResource()
54 if (id != that.id) { in Compare()
55 return id < that.id ? -1 : 1; in Compare()
81 result += id; in TypedID()
102 StringResource::ParseTypedID(const string& raw, string* id, int* index) in ParseTypedID() argument
116 *id = parts[1]; in ParseTypedID()
124 *id = parts[2]; in ParseTypedID()
/frameworks/base/libs/hwui/
DProgram.cpp37 id = glCreateProgram(); in Program()
38 glAttachShader(id, vertexShader); in Program()
39 glAttachShader(id, fragmentShader); in Program()
40 glLinkProgram(id); in Program()
43 glGetProgramiv(id, GL_LINK_STATUS, &status); in Program()
47 glGetProgramiv(id, GL_INFO_LOG_LENGTH, &infoLen); in Program()
50 glGetProgramInfoLog(id, infoLen, 0, &log[0]); in Program()
55 glDeleteProgram(id); in Program()
74 glDeleteProgram(id); in ~Program()
79 int slot = glGetAttribLocation(id, name); in addAttrib()
[all …]
/frameworks/base/core/jni/
Dandroid_view_VelocityTracker.cpp49 void getVelocity(int32_t id, float* outVx, float* outVy);
50 bool getEstimator(int32_t id, uint32_t degree, nsecs_t horizon,
82 uint32_t id = idBits.clearFirstMarkedBit(); in computeCurrentVelocity() local
85 mVelocityTracker.getVelocity(id, &vx, &vy); in computeCurrentVelocity()
107 void VelocityTrackerState::getVelocity(int32_t id, float* outVx, float* outVy) { in getVelocity() argument
108 if (id == ACTIVE_POINTER_ID) { in getVelocity()
109 id = mVelocityTracker.getActivePointerId(); in getVelocity()
113 if (id >= 0 && id <= MAX_POINTER_ID && mCalculatedIdBits.hasBit(id)) { in getVelocity()
114 uint32_t index = mCalculatedIdBits.getIndexOfBit(id); in getVelocity()
131 bool VelocityTrackerState::getEstimator(int32_t id, uint32_t degree, nsecs_t horizon, in getEstimator() argument
[all …]
/frameworks/base/packages/WAPPushManager/tests/src/com/android/smspush/unitTests/
DClientTest.java52 Button addpbtn = (Button) findViewById(R.id.addpkg); in onCreate()
53 Button procbtn = (Button) findViewById(R.id.procmsg); in onCreate()
54 Button delbtn = (Button) findViewById(R.id.delpkg); in onCreate()
60 EditText app_id = (EditText) findViewById(R.id.app_id); in onCreate()
61 EditText cont = (EditText) findViewById(R.id.cont); in onCreate()
62 EditText pkg = (EditText) findViewById(R.id.pkg); in onCreate()
63 EditText cls = (EditText) findViewById(R.id.cls); in onCreate()
64 RadioButton act = (RadioButton) findViewById(R.id.act); in onCreate()
65 CheckBox sig = (CheckBox) findViewById(R.id.sig); in onCreate()
66 CheckBox ftr = (CheckBox) findViewById(R.id.ftr); in onCreate()
[all …]
/frameworks/base/media/libdrm/mobile1/src/objmng/
Ddrm_rights_manager.c50 static int32_t drm_writeToUidTxt(uint8_t* Uid, int32_t* id) in drm_writeToUidTxt() argument
63 if (*id < 1) in drm_writeToUidTxt()
97 if (idMax < *id) in drm_writeToUidTxt()
110 strcpy((char *)uidStr[*id - 1], (char *)Uid); in drm_writeToUidTxt()
111 uidStr[*id - 1][length] = '\n'; in drm_writeToUidTxt()
112 uidStr[*id - 1][length + 1] = '\0'; in drm_writeToUidTxt()
113 if (idMax < (*id)) in drm_writeToUidTxt()
151 int32_t drm_readFromUidTxt(uint8_t* Uid, int32_t* id, int32_t option) in drm_readFromUidTxt() argument
163 if (NULL == id || NULL == Uid) in drm_readFromUidTxt()
200 if (*id < 1 || *id > idMax) { in drm_readFromUidTxt()
[all …]
/frameworks/base/services/tests/servicestests/src/com/android/server/pm/
DUserManagerTest.java45 mUserManager.removeUser(user.id); in tearDown()
63 if (user.id == userInfo.id && user.name.equals("Guest 1") in testAddUser()
83 assertTrue(findUser(user1.id)); in testAdd2Users()
84 assertTrue(findUser(user2.id)); in testAdd2Users()
92 details.removeUser(userInfo.id); in testRemoveUser()
94 assertFalse(findUser(userInfo.id)); in testRemoveUser()
97 private boolean findUser(int id) { in findUser() argument
101 if (user.id == id) { in findUser()
/frameworks/base/core/java/com/android/internal/app/
DHeavyWeightSwitcherActivity.java76 setIconAndText(R.id.old_app_icon, R.id.old_app_action, R.id.old_app_description, in onCreate()
78 setIconAndText(R.id.new_app_icon, R.id.new_app_action, R.id.new_app_description, in onCreate()
81 View button = findViewById((R.id.switch_old)); in onCreate()
83 button = findViewById((R.id.switch_new)); in onCreate()
85 button = findViewById((R.id.cancel)); in onCreate()
94 void setText(int id, CharSequence text) { in setText() argument
95 ((TextView)findViewById(id)).setText(text); in setText()
98 void setDrawable(int id, Drawable dr) { in setDrawable() argument
100 ((ImageView)findViewById(id)).setImageDrawable(dr); in setDrawable()

12345678910>>...41