Home
last modified time | relevance | path

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

1234567

/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.java455 COMMAND_MAP.put("flip", new FlipCommand());
456 COMMAND_MAP.put("touch", new TouchCommand());
457 COMMAND_MAP.put("trackball", new TrackballCommand());
458 COMMAND_MAP.put("key", new KeyCommand());
459 COMMAND_MAP.put("sleep", new SleepCommand());
460 COMMAND_MAP.put("wake", new WakeCommand());
461 COMMAND_MAP.put("tap", new TapCommand());
462 COMMAND_MAP.put("press", new PressCommand());
463 COMMAND_MAP.put("type", new TypeCommand());
464 COMMAND_MAP.put("listvar", new MonkeySourceNetworkVars.ListVarCommand());
[all …]
DMonkeySourceNetworkViews.java81 COMMAND_MAP.put("getlocation", new GetLocation());
82 COMMAND_MAP.put("gettext", new GetText());
83 COMMAND_MAP.put("getclass", new GetClass());
84 COMMAND_MAP.put("getchecked", new GetChecked());
85 COMMAND_MAP.put("getenabled", new GetEnabled());
86 COMMAND_MAP.put("getselected", new GetSelected());
87 COMMAND_MAP.put("setselected", new SetSelected());
88 COMMAND_MAP.put("getfocused", new GetFocused());
89 COMMAND_MAP.put("setfocused", new SetFocused());
90 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/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/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/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/samples/ApiDemos/src/com/example/android/mmslib/pdu/
DPduPart.java205 mPartHeader.put(P_CONTENT_ID, contentId); in setContentId()
214 mPartHeader.put(P_CONTENT_ID, buffer); in setContentId()
232 mPartHeader.put(P_CHARSET, charset); in setCharset()
260 mPartHeader.put(P_CONTENT_LOCATION, contentLocation); in setContentLocation()
289 mPartHeader.put(P_CONTENT_DISPOSITION, contentDisposition); in setContentDisposition()
312 mPartHeader.put(P_CONTENT_TYPE, contentType); in setContentType()
335 mPartHeader.put(P_CONTENT_TRANSFER_ENCODING, contentTransferEncoding); in setContentTransferEncoding()
358 mPartHeader.put(P_NAME, name); in setName()
381 mPartHeader.put(P_FILENAME, fileName); in setFilename()
DPduBody.java48 mPartMapByContentId.put(new String(contentId), part); in putPartToMaps()
55 mPartMapByContentLocation.put(clc, part); in putPartToMaps()
62 mPartMapByName.put(clc, part); in putPartToMaps()
69 mPartMapByFileName.put(clc, part); in putPartToMaps()
/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 …]
DCube.java75 mVertexBuffer.put(vertices); in Cube()
81 mColorBuffer.put(colors); in Cube()
85 mIndexBuffer.put(indices); in Cube()
/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/browseable/DirectBoot/src/com.example.android.directboot/alarms/
DAlarm.java62 jsonObject.put("id", id); in toJson()
63 jsonObject.put("month", month); in toJson()
64 jsonObject.put("date", date); in toJson()
65 jsonObject.put("hour", hour); in toJson()
66 jsonObject.put("minute", minute); in toJson()
/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/samples/browseable/NfcProvisioning/src/com.example.android.nfcprovisioning/
DNfcProvisioningFragment.java123 properties.put(e.getKey(), value); in createNdefMessage()
129 properties.put(DevicePolicyManager.EXTRA_PROVISIONING_LOCAL_TIME, in createNdefMessage()
150 mProvisioningValues.put( in onTextChanged()
154 mProvisioningValues.put(DevicePolicyManager.EXTRA_PROVISIONING_LOCALE, s); in onTextChanged()
157 mProvisioningValues.put(DevicePolicyManager.EXTRA_PROVISIONING_TIME_ZONE, s); in onTextChanged()
160 mProvisioningValues.put(DevicePolicyManager.EXTRA_PROVISIONING_WIFI_SSID, s); in onTextChanged()
163 mProvisioningValues.put( in onTextChanged()
167 mProvisioningValues.put(DevicePolicyManager.EXTRA_PROVISIONING_WIFI_PASSWORD, s); in onTextChanged()
/development/tools/logblame/
Dconnectivity_log_test14 adb shell settings put global airplane_mode_on 0 > /dev/null
26 adb shell settings put global airplane_mode_on 1 > /dev/null
32 adb shell settings put global airplane_mode_on 0 > /dev/null
/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()
/development/samples/Vault/tests/src/com/example/android/vault/
DEncryptedDocumentTest.java124 before.put("meow", "cake"); in testMetadataAndContents()
163 before.put("lol", "wut"); in testNormalMetadataOnly()
184 meta1.put("key1", "value1"); in testCopiedFile()
200 before.put("twiddle", "twiddle"); in testBitTwiddle()
220 init.put("color", "red"); in testErrorAbortsWrite()
240 second.put("color", "blue"); in testErrorAbortsWrite()

1234567