Home
last modified time | relevance | path

Searched refs:String (Results 1 – 25 of 26) sorted by relevance

12

/pdk/apps/HelloPDK/src/com/example/android/helloPDK/
DMainActivity.java46 String path = intent.getStringExtra("com.example.android.helloPDK.Path"); in onCreate()
53 android.R.layout.simple_list_item_1, new String[] { "title" }, in onCreate()
58 protected List<Map<String, Object>> getData(String prefix) { in getData()
59 List<Map<String, Object>> myData = new ArrayList<Map<String, Object>>(); in getData()
70 String[] prefixPath; in getData()
71 String prefixWithSlash = prefix; in getData()
82 Map<String, Boolean> entries = new HashMap<String, Boolean>(); in getData()
87 String label = labelSeq != null ? labelSeq.toString() : info.activityInfo.name; in getData()
91 String[] labelPath = label.split("/"); in getData()
93 String nextLabel = prefixPath == in getData()
[all …]
/pdk/apps/TestingCamera2/src/com/android/testingcamera2/
DTLog.java26 private static final String TAG = "TestingCamera2";
39 synchronized static public void i(String text, Object... args) { in i()
41 text = String.format(Locale.US, text, args); in i()
56 synchronized static public void e(String text, Object... args) { in e()
58 text = String.format(Locale.US, text, args); in e()
77 synchronized static public void e(String text, Throwable e, Object... args) { in e()
78 text = String.format("%s\n%s", text, Log.getStackTraceString(e)); in e()
80 text = String.format(Locale.US, text, args); in e()
89 public void addToLog(String text, boolean error); in addToLog()
DCameraInfoDialogFragment.java40 private String mCameraId;
52 public void setCameraId(String cameraId) { in setCameraId()
60 String title = String.format("Info: Camera %s", mCameraId); in onCreateDialog()
68 TLog.e(String.format("Can't get characteristics for camera %s: %s", mCameraId, e)); in onCreateDialog()
72 String infoText = formatCameraCharacteristics(info); in onCreateDialog()
93 private String formatCameraCharacteristics(CameraCharacteristics info) { in formatCameraCharacteristics()
94 String infoText; in formatCameraCharacteristics()
99 infoBuilder.append(String.format(Locale.US, "%s: ", key.getName())); in formatCameraCharacteristics()
108 infoBuilder.append(String.format(Locale.US, in formatCameraCharacteristics()
116 infoBuilder.append(String.format(Locale.US, "%s\n\n", val.toString())); in formatCameraCharacteristics()
DCameraOps2.java42 private String mDelayedOpenId = null;
52 String[] cameraIds = mCameraManager.getCameraIdList(); in CameraOps2()
54 for (String cameraId : cameraIds) { in CameraOps2()
74 public String[] getCamerasAndListen(CameraManager.AvailabilityCallback listener) in getCamerasAndListen()
87 public void onCameraAvailable(String cameraId) { in onCameraAvailable()
92 public void onCameraUnavailable(String cameraId) { in onCameraUnavailable()
105 public boolean openCamera(String cameraId, CameraDevice.StateCallback listener) { in openCamera()
119 mActivity.requestPermissions(new String[] {Manifest.permission.CAMERA}, in openCamera()
127 private boolean doOpenCamera(String cameraId, CameraDevice.StateCallback listener) { in doOpenCamera()
139 public void onRequestPermissionsResult (int requestCode, String[] permissions, in onRequestPermissionsResult()
[all …]
DTargetControlPane.java42 private static final String PANE_NAME = "target_pane";
45 private static final String PANE_ID = "id";
48 private static final String OUTPUT_TYPE = "type";
66 static String getXmlName(OutputViewType type) { in getXmlName()
135 public Surface getTargetSurfaceForCameraPane(String paneName) { in getTargetSurfaceForCameraPane()
169 String paneTitle = in setUpUI()
170 String.format(Locale.US, "%s %d", in setUpUI()
191 String[] outputSpinnerItems = new String[outputTypes.length]; in setUpUI()
196 mOutputSpinner.setAdapter(new ArrayAdapter<String>(getContext(), R.layout.spinner_item, in setUpUI()
252 OutputViewType.valueOf((String) mOutputSpinner.getSelectedItem());
[all …]
DControlPane.java37 private String mPaneName = "unnamed";
129 public String getPaneName() { in getPaneName()
144 protected void setName(String name) { in setName()
156 String attributeName, int defaultValue) throws XmlPullParserException { in getAttributeInt()
157 String value = configParser.getAttributeValue(null, attributeName); in getAttributeInt()
174 protected static String getAttributeString( in getAttributeString()
176 String attributeName, String defaultValue) throws XmlPullParserException { in getAttributeString()
177 String value = configParser.getAttributeValue(null, attributeName); in getAttributeString()
DRequestControlPane.java44 private static final String PANE_NAME = "request_pane";
47 private static final String PANE_ID = "id";
144 String paneName = in setUpUI()
145 String.format(Locale.US, "%s %d", in setUpUI()
169 String[] templateNames = new String[TemplateType.values().length]; in setUpUI()
173 mTemplateSpinner.setAdapter(new ArrayAdapter<String>(getContext(), R.layout.spinner_item, in setUpUI()
250 TemplateType template = TemplateType.valueOf((String) mTemplateSpinner.getSelectedItem()); in createRequest()
270 String currentSelection = (String) mCameraSpinner.getSelectedItem(); in updateCameraPaneList()
272 String[] cameraSpinnerItems = new String[mCameraPanes.size()]; in updateCameraPaneList()
279 mCameraSpinner.setAdapter(new ArrayAdapter<String>(getContext(), R.layout.spinner_item, in updateCameraPaneList()
[all …]
DPaneLayout.java43 private static final String DEFAULT_XML_PANE_NAME = "pane_layout";
49 private final String mPaneXmlName;
82 public PaneLayout(Context context, AttributeSet attrs, String paneXmlName) { in PaneLayout()
94 public String getXmlName() { in getXmlName()
181 private static final String PANE_XML_NAME = "target_panes";
198 private static final String PANE_XML_NAME = "camera_panes";
215 private static final String PANE_XML_NAME = "request_panes";
233 private static final String PANE_XML_NAME = "burst_panes";
250 private static final String PANE_XML_NAME = "util_panes";
DCameraControlPane.java67 private static final String PANE_NAME = "camera_pane";
70 private static final String PANE_ID = "id";
72 private static final String CAMERA_ID = "camera_id";
141 private String[] mCameraIds;
142 private String mCurrentCameraId;
193 String cameraId = getAttributeString(configParser, CAMERA_ID, null); in CameraControlPane()
236 public void showCameraInfo(String cameraId); in showCameraInfo()
364 String paneName = in setUpUI()
365 String.format(Locale.US, "%s %c", in setUpUI()
411 String[] cameraSpinnerItems = new String[mCameraIds.length]; in updateCameraList()
[all …]
DCheckableListAdapter.java48 public String name;
51 public CheckableItem(String name, boolean isChecked) { in CheckableItem()
103 public void updateItems(String[] elems) { in updateItems()
105 for (String e : elems) { in updateItems()
DImageReaderSubPane.java219 String[] outputFormatItems = new String[mFormats.size()]; in updateFormats()
299 String[] outputSizeItems = new String[mSizes.length]; in updateSizes()
550 String name = saveImage(img);
576 private String saveImage(Image img) throws IOException { in saveImage()
613 String.format("Unexpected Image format: %d, expected ImageFormat.RAW_SENSOR", in writeDngImage()
637 String.format("Unexpected Image format: %d, expected ImageFormat.JPEG", in writeJpegImage()
650 String.format("Unexpected Image format: %d, expected ImageFormat.YUV_420_888", in writeYuvImage()
696 String.format("Unexpected Image format: %d, expected ImageFormat.DEPTH16", in writeDepth16Image()
713 String.format("Unexpected Image format: %d, expected ImageFormat.DEPTH16", in writeDepthPointImage()
720 String pt = String.format("%f, %f, %f\n", in writeDepthPointImage()
[all …]
DSurfaceViewSubPane.java94 String[] outputSizeItems = new String[mSizes.length]; in setTargetCameraPane()
99 mSizeSpinner.setAdapter(new ArrayAdapter<String>(getContext(), R.layout.spinner_item, in setTargetCameraPane()
DTextureViewSubPane.java88 String[] outputSizeItems = new String[mSizes.length]; in setTargetCameraPane()
93 mSizeSpinner.setAdapter(new ArrayAdapter<String>(getContext(), R.layout.spinner_item, in setTargetCameraPane()
DTestingCamera21.java188 public void onRequestPermissionsResult(int requestCode, String[] permissions, in onRequestPermissionsResult()
269 public void showCameraInfo(String cameraId) { in showCameraInfo()
270 final String infoTag = "camera_info_dialog"; in showCameraInfo()
DBurstControlPane.java31 private static final String PANE_NAME = "burst_pane";
DUtilControlPane.java30 private static final String PANE_NAME = "util_pane";
DFixedAspectSurfaceView.java38 private static final String TAG = "FixedAspectSurfaceView";
DLogPane.java85 public void addToLog(final String text, boolean error) { in addToLog()
/pdk/apps/TestingCamera/src/com/android/testingcamera/
DSnapshotDialogFragment.java123 public void onRequestPermissionsResult(int requestCode, String[] permissions, in onRequestPermissionsResult()
134 private String getAttrib(ExifInterface exif, String tag) { in getAttrib()
135 String attribute = exif.getAttribute(tag); in getAttrib()
147 parent.requestPermissions(new String[] {Manifest.permission.WRITE_EXTERNAL_STORAGE}, in saveFile()
178 String aperture = getAttrib(exif, ExifInterface.TAG_APERTURE); in updateExif()
180 String dateTime = getAttrib(exif, ExifInterface.TAG_DATETIME); in updateExif()
181 String exposureTime = getAttrib(exif, ExifInterface.TAG_EXPOSURE_TIME); in updateExif()
186 String gpsDatestamp = getAttrib(exif, ExifInterface.TAG_GPS_DATESTAMP); in updateExif()
192 String gpsProcessingMethod = getAttrib(exif, ExifInterface.TAG_GPS_PROCESSING_METHOD); in updateExif()
193 String gpsTimestamp = getAttrib(exif, ExifInterface.TAG_GPS_TIMESTAMP); in updateExif()
[all …]
DTestingCamera.java125 private SparseArray<String> mFormatNames;
137 private List<String> mAfModes;
139 private List<String> mFlashModes;
149 private List<String> mColorEffects;
179 private static final String TAG = "TestingCamera";
308 mFormatNames = new SparseArray<String>(7); in onCreate()
318 String[] cameraNames = new String[numCameras + 1]; in onCreate()
325 new ArrayAdapter<String>(this, in onCreate()
399 public void onRequestPermissionsResult (int requestCode, String[] permissions, in onRequestPermissionsResult()
501 log(String.format( in setCameraDisplayOrientation()
[all …]
DInfoDialogFragment.java18 String mTitleString = "";
19 String mInfoString = "";
62 String[] flatP = p.flatten().split(";"); in updateInfo()
63 for (String param : flatP) { in updateInfo()
/pdk/apps/TestingCamera2/src/com/android/testingcamera2/v1/
DCameraRecordingStream.java46 private static final String TAG = "CameraRecordingStream";
71 private String mOutputFile;
324 MediaScannerConnection.scanFile(ctx, new String [] { mOutputFile }, null, null); in releaseMuxer()
344 private String getOutputMime() { in getOutputMime()
357 private String getOutputExtension() { in getOutputExtension()
370 private String getOutputMediaFileName() { in getOutputMediaFileName()
371 String state = Environment.getExternalStorageState(); in getOutputMediaFileName()
390 String timeStamp = new SimpleDateFormat("yyyyMMdd_HHmmss").format(new Date()); in getOutputMediaFileName()
391 String mediaFileName = mediaStorageDir.getPath() + File.separator + in getOutputMediaFileName()
430 String outputFileName = getOutputMediaFileName(); in configureMediaCodecEncoder()
[all …]
DApiFailureException.java27 public ApiFailureException(String message, Throwable cause) { in ApiFailureException()
31 public ApiFailureException(String message) { in ApiFailureException()
DTestingCamera2.java72 private static final String TAG = "TestingCamera2";
75 private String[] mAvailableCameraIds;
76 private String mCameraId;
208 ArrayAdapter<String> cameraIdDataAdapter = new ArrayAdapter<>(TestingCamera2.this, in onCreate()
235 if (VERBOSE) Log.v(TAG, String.format("onResume")); in onResume()
242 requestPermissions(new String[] { in onResume()
253 public void onRequestPermissionsResult(int requestCode, String[] permissions, in onRequestPermissionsResult()
284 if (VERBOSE) Log.v(TAG, String.format("onPause")); in onPause()
305 Log.v(TAG, String.format("onConfiguredChanged: orientation %x", in onConfigurationChanged()
314 Log.v(TAG, String.format("handleConfiguration: orientation %x", in maybeUpdateConfiguration()
[all …]
DCameraOps.java59 void onCameraOpened(String cameraId, CameraCharacteristics characteristics); in onCameraOpened()
62 private static final String TAG = "CameraOps";
73 private String mCameraId;
113 private String mPhysicalCameraId1;
114 private String mPhysicalCameraId2;
118 throw new IllegalStateException(String.format("Device not OK: %d", mStatus )); in checkOk()
145 public String[] getDevices() throws ApiFailureException{ in getDevices()
202 Set<String> physicalIds = c.getPhysicalCameraIds(); in minimalOpenCamera()
207 String[] physicalIdsArray = physicalIds.toArray(new String[2]); in minimalOpenCamera()
253 public void minimalPreviewConfig(String cameraId, SurfaceHolder previewHolder, in minimalPreviewConfig()
[all …]

12