Searched refs:parameters (Results 1 - 5 of 5) sorted by relevance

/development/samples/ToyVpn/server/linux/
H A DToyVpnServer.cpp35 // the parameters when necessary.
125 static void build_parameters(char *parameters, int size, int argc, char **argv) argument
148 parameters[offset] = delimiter;
149 memcpy(&parameters[offset + 1], parameter, length);
154 memset(&parameters[offset], ' ', size - offset);
157 parameters[0] = 0;
180 // Parse the arguments and set the parameters.
181 char parameters[1024]; local
182 build_parameters(parameters, sizeof(parameters), arg
[all...]
/development/samples/ApiDemos/src/com/example/android/apis/graphics/
H A DCameraPreview.java138 // parameters.
198 Camera.Parameters parameters = camera.getParameters();
199 parameters.setPreviewSize(mPreviewSize.width, mPreviewSize.height);
202 camera.setParameters(parameters);
301 // Now that the size is known, set up the camera parameters and begin
303 Camera.Parameters parameters = mCamera.getParameters();
304 parameters.setPreviewSize(mPreviewSize.width, mPreviewSize.height);
307 mCamera.setParameters(parameters);
/development/samples/HoneycombGallery/src/com/example/android/hcgallery/
H A DCameraFragment.java141 // parameters.
228 Camera.Parameters parameters = mCamera.getParameters();
229 parameters.setPreviewSize(mPreviewSize.width, mPreviewSize.height);
231 mCamera.setParameters(parameters);
322 // Now that the size is known, set up the camera parameters and begin
324 Camera.Parameters parameters = mCamera.getParameters();
325 parameters.setPreviewSize(mPreviewSize.width, mPreviewSize.height);
328 mCamera.setParameters(parameters);
/development/samples/ToyVpn/src/com/example/android/toyvpn/
H A DToyVpnService.java260 // for the server to send the parameters.
275 // Wait for the parameters within a limited time.
289 private void configure(String parameters) throws Exception { argument
290 // If the old interface has exactly the same parameters, use it!
291 if (mInterface != null && parameters.equals(mParameters)) {
296 // Configure a builder while parsing the parameters.
298 for (String parameter : parameters.split(" ")) {
323 // Close the old interface since the parameters have been changed.
330 // Create a new interface using the builder and save the parameters.
334 mParameters = parameters;
[all...]
/development/samples/XmlAdapters/src/com/example/android/xmladapters/
H A DAdapters.java395 * @param parameters Optional parameters to pass to the CursorAdapter, used
408 Object... parameters) {
411 parameters);
432 * @param parameters Optional parameters to pass to the CursorAdapter, used
446 Object... parameters) {
449 parameters);
470 * @param parameters Optional parameters t
407 loadCursorAdapter(Context context, int id, String uri, Object... parameters) argument
445 loadCursorAdapter(Context context, int id, Cursor cursor, Object... parameters) argument
477 loadAdapter(Context context, int id, Object... parameters) argument
498 loadAdapter(Context context, int id, String assertName, Object... parameters) argument
532 createAdapterFromXml(Context c, XmlPullParser parser, AttributeSet attrs, int id, Object[] parameters, String assertName) argument
571 createCursorAdapter(Context c, XmlPullParser parser, AttributeSet attrs, int id, Object[] parameters) argument
617 parse(Object[] parameters) argument
[all...]

Completed in 218 milliseconds