Home
last modified time | relevance | path

Searched refs:put (Results 1 – 25 of 138) sorted by relevance

123456

/development/samples/ApiDemos/src/com/example/android/apis/graphics/kube/
DGLVertex.java56 public void put(IntBuffer vertexBuffer, IntBuffer colorBuffer) { in put() method in GLVertex
57 vertexBuffer.put(toFixed(x)); in put()
58 vertexBuffer.put(toFixed(y)); in put()
59 vertexBuffer.put(toFixed(z)); in put()
61 colorBuffer.put(0); in put()
62 colorBuffer.put(0); in put()
63 colorBuffer.put(0); in put()
64 colorBuffer.put(0); in put()
66 colorBuffer.put(color.red); in put()
67 colorBuffer.put(color.green); in put()
[all …]
DGLFace.java85 buffer.put(v0.index); in putIndices()
86 buffer.put(v1.index); in putIndices()
87 buffer.put(vn.index); in putIndices()
/development/cmds/monkey/src/com/android/commands/monkey/
DMonkeySourceNetworkVars.java64 VAR_MAP.put("build.board", new StaticVarGetter(Build.BOARD));
65 VAR_MAP.put("build.brand", new StaticVarGetter(Build.BRAND));
66 VAR_MAP.put("build.device", new StaticVarGetter(Build.DEVICE));
67 VAR_MAP.put("build.display", new StaticVarGetter(Build.DISPLAY));
68 VAR_MAP.put("build.fingerprint", new StaticVarGetter(Build.FINGERPRINT));
69 VAR_MAP.put("build.host", new StaticVarGetter(Build.HOST));
70 VAR_MAP.put("build.id", new StaticVarGetter(Build.ID));
71 VAR_MAP.put("build.model", new StaticVarGetter(Build.MODEL));
72 VAR_MAP.put("build.product", new StaticVarGetter(Build.PRODUCT));
73 VAR_MAP.put("build.tags", new StaticVarGetter(Build.TAGS));
[all …]
DMonkeySourceNetwork.java453 COMMAND_MAP.put("flip", new FlipCommand());
454 COMMAND_MAP.put("touch", new TouchCommand());
455 COMMAND_MAP.put("trackball", new TrackballCommand());
456 COMMAND_MAP.put("key", new KeyCommand());
457 COMMAND_MAP.put("sleep", new SleepCommand());
458 COMMAND_MAP.put("wake", new WakeCommand());
459 COMMAND_MAP.put("tap", new TapCommand());
460 COMMAND_MAP.put("press", new PressCommand());
461 COMMAND_MAP.put("type", new TypeCommand());
462 COMMAND_MAP.put("listvar", new MonkeySourceNetworkVars.ListVarCommand());
[all …]
DMonkeySourceNetworkViews.java80 COMMAND_MAP.put("getlocation", new GetLocation());
81 COMMAND_MAP.put("gettext", new GetText());
82 COMMAND_MAP.put("getclass", new GetClass());
83 COMMAND_MAP.put("getchecked", new GetChecked());
84 COMMAND_MAP.put("getenabled", new GetEnabled());
85 COMMAND_MAP.put("getselected", new GetSelected());
86 COMMAND_MAP.put("setselected", new SetSelected());
87 COMMAND_MAP.put("getfocused", new GetFocused());
88 COMMAND_MAP.put("setfocused", new SetFocused());
89 COMMAND_MAP.put("getparent", new GetParent());
[all …]
/development/samples/SampleSyncAdapter/src/com/example/android/samplesync/platform/
DContactOperations.java105 mValues.put(RawContacts.SOURCE_ID, userId); in ContactOperations()
106 mValues.put(RawContacts.ACCOUNT_TYPE, Constants.ACCOUNT_TYPE); in ContactOperations()
107 mValues.put(RawContacts.ACCOUNT_NAME, accountName); in ContactOperations()
136 mValues.put(StructuredName.DISPLAY_NAME, fullName); in addName()
137 mValues.put(StructuredName.MIMETYPE, StructuredName.CONTENT_ITEM_TYPE); in addName()
140 mValues.put(StructuredName.GIVEN_NAME, firstName); in addName()
141 mValues.put(StructuredName.MIMETYPE, StructuredName.CONTENT_ITEM_TYPE); in addName()
144 mValues.put(StructuredName.FAMILY_NAME, lastName); in addName()
145 mValues.put(StructuredName.MIMETYPE, StructuredName.CONTENT_ITEM_TYPE); in addName()
163 mValues.put(Email.DATA, email); in addEmail()
[all …]
/development/tools/apkcheck/src/com/android/apkcheck/
DTypeUtils.java32 sQuickConvert.put("boolean", "Z");
33 sQuickConvert.put("byte", "B");
34 sQuickConvert.put("char", "C");
35 sQuickConvert.put("short", "S");
36 sQuickConvert.put("int", "I");
37 sQuickConvert.put("float", "F");
38 sQuickConvert.put("long", "J");
39 sQuickConvert.put("double", "D");
40 sQuickConvert.put("void", "V");
41 sQuickConvert.put("java.lang.Object", "Ljava/lang/Object;");
[all …]
/development/samples/ApiDemos/src/com/example/android/apis/graphics/spritetext/
DGrid.java82 mIndexBuffer.put(i++, a); in Grid()
83 mIndexBuffer.put(i++, b); in Grid()
84 mIndexBuffer.put(i++, c); in Grid()
86 mIndexBuffer.put(i++, b); in Grid()
87 mIndexBuffer.put(i++, c); in Grid()
88 mIndexBuffer.put(i++, d); in Grid()
106 mVertexBuffer.put(posIndex, x); in set()
107 mVertexBuffer.put(posIndex + 1, y); in set()
108 mVertexBuffer.put(posIndex + 2, z); in set()
111 mTexCoordBuffer.put(texIndex, u); in set()
[all …]
/development/samples/ApiDemos/src/com/example/android/apis/accessibility/
DClockBackService.java143 sVibrationPatterns.put(AccessibilityEvent.TYPE_VIEW_CLICKED, new long[] { in sVibrationPatterns.put()
146 sVibrationPatterns.put(AccessibilityEvent.TYPE_VIEW_LONG_CLICKED, new long[] { in sVibrationPatterns.put()
149 sVibrationPatterns.put(AccessibilityEvent.TYPE_VIEW_SELECTED, new long[] { in sVibrationPatterns.put()
152 sVibrationPatterns.put(AccessibilityEvent.TYPE_VIEW_FOCUSED, new long[] { in sVibrationPatterns.put()
155 sVibrationPatterns.put(AccessibilityEvent.TYPE_WINDOW_STATE_CHANGED, new long[] { in sVibrationPatterns.put()
158 sVibrationPatterns.put(AccessibilityEvent.TYPE_VIEW_HOVER_ENTER, new long[] { in sVibrationPatterns.put()
161 sVibrationPatterns.put(INDEX_SCREEN_ON, new long[] { in sVibrationPatterns.put()
164 sVibrationPatterns.put(INDEX_SCREEN_OFF, new long[] { in sVibrationPatterns.put()
172 sSoundsResourceIds.put(AccessibilityEvent.TYPE_VIEW_CLICKED, in sSoundsResourceIds.put()
174 sSoundsResourceIds.put(AccessibilityEvent.TYPE_VIEW_LONG_CLICKED, in sSoundsResourceIds.put()
[all …]
/development/samples/browseable/BluetoothLeGatt/src/com.example.android.bluetoothlegatt/
DSampleGattAttributes.java31 attributes.put("0000180d-0000-1000-8000-00805f9b34fb", "Heart Rate Service");
32 attributes.put("0000180a-0000-1000-8000-00805f9b34fb", "Device Information Service");
34 attributes.put(HEART_RATE_MEASUREMENT, "Heart Rate Measurement"); in attributes.put()
35 attributes.put("00002a29-0000-1000-8000-00805f9b34fb", "Manufacturer Name String");
/development/samples/SampleSyncAdapter/tests/src/com/example/android/samplesync/client/
DUserTest.java42 jsonObj.put("u", "mjoshi"); in testValueOf()
43 jsonObj.put("f", "Megha"); in testValueOf()
44 jsonObj.put("l", "Joshi"); in testValueOf()
45 jsonObj.put("i", 1); in testValueOf()
/development/apps/Development/src/com/android/development/
DMediaScannerActivity.java178 map.put(MediaStore.MediaColumns.DATA, in addAlbum()
180 map.put(MediaStore.MediaColumns.TITLE, in addAlbum()
182 map.put(MediaStore.MediaColumns.MIME_TYPE, "audio/mp3"); in addAlbum()
184 map.put(Audio.Media.ARTIST, artist); in addAlbum()
185 map.put("album_artist", albumArtist); in addAlbum()
186 map.put(Audio.Media.ALBUM, albumName); in addAlbum()
187 map.put(Audio.Media.TRACK, i + 1); in addAlbum()
188 map.put(Audio.Media.DURATION, 4*60*1000); in addAlbum()
189 map.put(Audio.Media.IS_MUSIC, 1); in addAlbum()
190 map.put(Audio.Media.YEAR, baseYear + mRandom.nextInt(10)); in addAlbum()
/development/samples/ApiDemos/src/com/example/android/apis/graphics/
DMatrixPaletteRenderer.java137 mIndexBuffer.put(i++, a); in Grid()
138 mIndexBuffer.put(i++, c); in Grid()
139 mIndexBuffer.put(i++, b); in Grid()
141 mIndexBuffer.put(i++, b); in Grid()
142 mIndexBuffer.put(i++, c); in Grid()
143 mIndexBuffer.put(i++, d); in Grid()
168 mVertexBuffer.put(x); in set()
169 mVertexBuffer.put(y); in set()
170 mVertexBuffer.put(z); in set()
171 mVertexBuffer.put(u); in set()
[all …]
DCubeMapActivity.java305 mIndexBuffer.put(i++, a); in Grid()
306 mIndexBuffer.put(i++, c); in Grid()
307 mIndexBuffer.put(i++, b); in Grid()
309 mIndexBuffer.put(i++, b); in Grid()
310 mIndexBuffer.put(i++, c); in Grid()
311 mIndexBuffer.put(i++, d); in Grid()
328 mVertexBuffer.put(x); in set()
329 mVertexBuffer.put(y); in set()
330 mVertexBuffer.put(z); in set()
331 mVertexBuffer.put(nx); in set()
[all …]
/development/samples/SampleSyncAdapter/src/com/example/android/samplesync/client/
DRawContact.java145 json.put("f", mFirstName); in toJSONObject()
148 json.put("l", mLastName); in toJSONObject()
151 json.put("m", mCellPhone); in toJSONObject()
154 json.put("o", mOfficePhone); in toJSONObject()
157 json.put("h", mHomePhone); in toJSONObject()
160 json.put("e", mEmail); in toJSONObject()
163 json.put("i", mServerContactId); in toJSONObject()
166 json.put("c", mRawContactId); in toJSONObject()
169 json.put("d", mDeleted); in toJSONObject()
/development/samples/SearchableDictionary/src/com/example/android/searchabledict/
DDictionaryDatabase.java71 map.put(KEY_WORD, KEY_WORD); in buildColumnMap()
72 map.put(KEY_DEFINITION, KEY_DEFINITION); in buildColumnMap()
73 map.put(BaseColumns._ID, "rowid AS " + in buildColumnMap()
75 map.put(SearchManager.SUGGEST_COLUMN_INTENT_DATA_ID, "rowid AS " + in buildColumnMap()
77 map.put(SearchManager.SUGGEST_COLUMN_SHORTCUT_ID, "rowid AS " + in buildColumnMap()
230 initialValues.put(KEY_WORD, word); in addWord()
231 initialValues.put(KEY_DEFINITION, definition); in addWord()
/development/samples/ApiDemos/src/com/example/android/apis/view/
DExpandableList3.java48 curGroupMap.put(NAME, "Group " + i); in onCreate()
49 curGroupMap.put(IS_EVEN, (i % 2 == 0) ? "This group is even" : "This group is odd"); in onCreate()
55 curChildMap.put(NAME, "Child " + j); in onCreate()
56 curChildMap.put(IS_EVEN, (j % 2 == 0) ? "This child is even" : "This child is odd"); in onCreate()
/development/tutorials/NotepadCodeLab/Notepadv3/src/com/android/demo/notepad3/
DNotesDbAdapter.java122 initialValues.put(KEY_TITLE, title); in createNote()
123 initialValues.put(KEY_BODY, body); in createNote()
183 args.put(KEY_TITLE, title); in updateNote()
184 args.put(KEY_BODY, body); in updateNote()
/development/tutorials/NotepadCodeLab/Notepadv1Solution/src/com/android/demo/notepad1/
DNotesDbAdapter.java122 initialValues.put(KEY_TITLE, title); in createNote()
123 initialValues.put(KEY_BODY, body); in createNote()
183 args.put(KEY_TITLE, title); in updateNote()
184 args.put(KEY_BODY, body); in updateNote()
/development/tutorials/NotepadCodeLab/Notepadv1/src/com/android/demo/notepad1/
DNotesDbAdapter.java122 initialValues.put(KEY_TITLE, title); in createNote()
123 initialValues.put(KEY_BODY, body); in createNote()
183 args.put(KEY_TITLE, title); in updateNote()
184 args.put(KEY_BODY, body); in updateNote()
/development/tutorials/NotepadCodeLab/Notepadv2/src/com/android/demo/notepad2/
DNotesDbAdapter.java122 initialValues.put(KEY_TITLE, title); in createNote()
123 initialValues.put(KEY_BODY, body); in createNote()
183 args.put(KEY_TITLE, title); in updateNote()
184 args.put(KEY_BODY, body); in updateNote()
/development/tutorials/NotepadCodeLab/Notepadv3Solution/src/com/android/demo/notepad3/
DNotesDbAdapter.java122 initialValues.put(KEY_TITLE, title); in createNote()
123 initialValues.put(KEY_BODY, body); in createNote()
183 args.put(KEY_TITLE, title); in updateNote()
184 args.put(KEY_BODY, body); in updateNote()
/development/tutorials/NotepadCodeLab/Notepadv2Solution/src/com/android/demo/notepad2/
DNotesDbAdapter.java122 initialValues.put(KEY_TITLE, title); in createNote()
123 initialValues.put(KEY_BODY, body); in createNote()
183 args.put(KEY_TITLE, title); in updateNote()
184 args.put(KEY_BODY, body); in updateNote()
/development/samples/NotePad/src/com/example/android/notepad/
DNotePadProvider.java142 sNotesProjectionMap.put(NotePad.Notes._ID, NotePad.Notes._ID); in sNotesProjectionMap.put()
145 sNotesProjectionMap.put(NotePad.Notes.COLUMN_NAME_TITLE, NotePad.Notes.COLUMN_NAME_TITLE); in sNotesProjectionMap.put()
148 sNotesProjectionMap.put(NotePad.Notes.COLUMN_NAME_NOTE, NotePad.Notes.COLUMN_NAME_NOTE); in sNotesProjectionMap.put()
151 sNotesProjectionMap.put(NotePad.Notes.COLUMN_NAME_CREATE_DATE, in sNotesProjectionMap.put()
155 sNotesProjectionMap.put( in sNotesProjectionMap.put()
167 sLiveFolderProjectionMap.put(LiveFolders._ID, NotePad.Notes._ID + " AS " + LiveFolders._ID); in sLiveFolderProjectionMap.put()
170 sLiveFolderProjectionMap.put(LiveFolders.NAME, NotePad.Notes.COLUMN_NAME_TITLE + " AS " + in sLiveFolderProjectionMap.put()
523 values.put(NotePad.Notes.COLUMN_NAME_CREATE_DATE, now); in insert()
529 values.put(NotePad.Notes.COLUMN_NAME_MODIFICATION_DATE, now); in insert()
535 values.put(NotePad.Notes.COLUMN_NAME_TITLE, r.getString(android.R.string.untitled)); in insert()
[all …]
/development/samples/VoicemailProviderDemo/src/com/example/android/voicemail/common/core/
DVoicemailProviderHelpers.java104 contentValues.put(Voicemails.IS_READ, 0); in insert()
150 values.put(Voicemails.MIME_TYPE, mimeType); in setVoicemailContent()
151 values.put(Voicemails.HAS_CONTENT, true); in setVoicemailContent()
302 contentValues.put(Voicemails.DATE, String.valueOf(voicemail.getTimestampMillis())); in getContentValues()
305 contentValues.put(Voicemails.NUMBER, voicemail.getNumber()); in getContentValues()
308 contentValues.put(Voicemails.DURATION, String.valueOf(voicemail.getDuration())); in getContentValues()
311 contentValues.put(Voicemails.SOURCE_PACKAGE, voicemail.getSourcePackage()); in getContentValues()
314 contentValues.put(Voicemails.SOURCE_DATA, voicemail.getSourceData()); in getContentValues()
317 contentValues.put(Voicemails.IS_READ, voicemail.isRead() ? 1 : 0); in getContentValues()

123456