Home
last modified time | relevance | path

Searched refs:null (Results 1 – 22 of 22) sorted by relevance

/pdk/apps/TestingCamera2/src/com/android/testingcamera2/
DCameraOps2.java42 private String mDelayedOpenId = null;
43 private CameraDevice.StateCallback mDelayedOpenListener = null;
48 if (mCameraManager == null) { in CameraOps2()
61 mCameraManager.registerAvailabilityCallback(this, /*handler*/null); in CameraOps2()
77 mCameraManager.registerAvailabilityCallback(listener, /*handler*/null); in getCamerasAndListen()
130 mCameraManager.openCamera(cameraId, proxyListener, null); in doOpenCamera()
144 if (mDelayedOpenId != null && mDelayedOpenListener != null) { in onRequestPermissionsResult()
147 mDelayedOpenId = null; in onRequestPermissionsResult()
148 mDelayedOpenListener = null; in onRequestPermissionsResult()
151 if (mDelayedOpenId != null && mDelayedOpenListener != null) { in onRequestPermissionsResult()
[all …]
DCameraControlPane.java158 super(context, attrs, null, null); in CameraControlPane()
172 if (mCameraIds != null) { in CameraControlPane()
179 super(tc, null, listener, tc.getPaneTracker()); in CameraControlPane()
193 String cameraId = getAttributeString(configParser, CAMERA_ID, null); in CameraControlPane()
202 if (mCameraIds != null && cameraId != null) { in CameraControlPane()
212 if (!gotCamera && mCameraIds != null) { in CameraControlPane()
240 if (mCurrentCameraId != null) { in getCharacteristics()
243 return null; in getCharacteristics()
247 CaptureRequest.Builder request = null; in getRequestBuilder()
248 if (mCurrentCamera != null) { in getRequestBuilder()
[all …]
DTargetControlPane.java91 super(context, attrs, null, null); in TargetControlPane()
107 super(tc, null, listener, tc.getPaneTracker()); in TargetControlPane()
136 if (paneName == null || mCurrentOutput == null) return null; in getTargetSurfaceForCameraPane()
142 return isMyTarget ? mCurrentOutput.getOutputSurface() : null; in getTargetSurfaceForCameraPane()
150 if (mCurrentOutput != null) { in notifyPaneEvent()
162 if (mCurrentOutput != null) { in onOrientationChange()
248 if (mCurrentOutput != null) {
254 if (mCurrentOutput != null) {
264 if (mCurrentOutput != null) {
266 mCurrentOutput = null;
[all …]
DControlPane.java109 if (mPaneTracker != null) { in onAttachedToWindow()
118 if (mStatusListener != null) { in remove()
121 if (mPaneTracker != null ) { in remove()
157 String value = configParser.getAttributeValue(null, attributeName); in getAttributeInt()
158 if (value == null ) return defaultValue; in getAttributeInt()
177 String value = configParser.getAttributeValue(null, attributeName); in getAttributeString()
178 return (value == null) ? defaultValue : value; in getAttributeString()
DImageReaderSubPane.java105 private OutputFormat mConfiguredFormat = null;
106 private Size mConfiguredSize = null;
109 private ImageReader mReader = null;
167 if (target != null) { in setTargetCameraPane()
170 mSizeSpinner.setAdapter(null); in setTargetCameraPane()
181 if (mCurrentCamera == null) { in updateFormats()
182 mFormatSpinner.setAdapter(null); in updateFormats()
188 OutputFormat oldFormat = null; in updateFormats()
236 if (maxLevel != null) { in updateFormats()
245 if (cfa != null) { in updateFormats()
[all …]
DTextureViewSubPane.java68 if (target != null) { in setTargetCameraPane()
69 Size oldSize = null; in setTargetCameraPane()
97 mSizeSpinner.setAdapter(null); in setTargetCameraPane()
111 if (mSurfaceTexture != null) { in updateSizes()
128 return (mSurfaceTexture != null) ? new Surface(mSurfaceTexture) : null; in getOutputSurface()
DRequestControlPane.java87 super(context, attrs, null, null); in RequestControlPane()
102 super(tc, null, listener, tc.getPaneTracker()); in RequestControlPane()
221 if (request != null) {
237 if (request != null) {
246 return null; in createRequest()
258 if (targetSurface == null) { in createRequest()
260 return null; in createRequest()
292 if (newPanes != null) { in updateOutputList()
DTLog.java44 if (mLogger != null) { in i()
61 if (mLogger != null) { in e()
83 if (mLogger != null) { in e()
DCameraInfoDialogFragment.java44 mCameraId = null; in CameraInfoDialogFragment()
62 CameraCharacteristics info = null; in onCreateDialog()
63 if (mCameraId != null) { in onCreateDialog()
95 if (info != null) { in formatCameraCharacteristics()
DSurfaceViewSubPane.java74 if (target != null) { in setTargetCameraPane()
75 Size oldSize = null; in setTargetCameraPane()
110 mSizeSpinner.setAdapter(null); in setTargetCameraPane()
DPaneLayout.java77 mPaneTracker = null; in PaneLayout()
155 T newPane = createControlPane(tc, null); in addPane()
161 if (mPaneTracker != null) { in addPane()
169 if (mPaneTracker != null) { in onRemoveRequested()
DUtilControlPane.java42 super(tc, null, listener, tc.getPaneTracker()); in UtilControlPane()
DBurstControlPane.java43 super(tc, null, listener, tc.getPaneTracker()); in BurstControlPane()
DCheckableListAdapter.java60 if (row == null) { in getView()
/pdk/apps/TestingCamera2/src/com/android/testingcamera2/v1/
DCameraOps.java124 if (mCameraManager == null) { in CameraOps()
162 if (mCameraCharacteristics == null) { in getCameraCharacteristics()
171 mCameraCharacteristics = null; in closeDevice()
173 if (mCamera == null) return; in closeDevice()
181 mCamera = null; in closeDevice()
182 mSession = null; in closeDevice()
187 if (mCamera == null || !mCameraId.equals(mCamera.getId())) { in minimalOpenCamera()
224 if (mListener != null && mListenerHandler != null) { in minimalOpenCamera()
262 Size[] previewSizes = null; in minimalPreviewConfig()
264 if (properties != null) { in minimalPreviewConfig()
[all …]
DCameraRecordingStream.java305 if (mEncoder != null) { in releaseEncoder()
308 if (mRecordingSurface != null) { in releaseEncoder()
311 mEncoder = null; in releaseEncoder()
320 if (mMuxer != null) { in releaseMuxer()
323 mMuxer = null; in releaseMuxer()
324 MediaScannerConnection.scanFile(ctx, new String [] { mOutputFile }, null, null); in releaseMuxer()
333 if (mMediaRecorder != null) { in releaseMediaRecorder()
335 mMediaRecorder = null; in releaseMediaRecorder()
338 if (mRecordingSurface != null) { in releaseMediaRecorder()
340 mRecordingSurface = null; in releaseMediaRecorder()
[all …]
DCameraAutoFocusControls.java27 private Integer mPendingTrigger = null;
58 mPendingTrigger = null; in consumePendingTrigger()
DTestingCamera2.java95 private SurfaceHolder mCurrentPreviewHolder = null;
96 private SurfaceHolder mCurrentPreviewHolder2 = null;
119 private CameraControls mCameraControl = null;
201 if (mAvailableCameraIds == null || mAvailableCameraIds.length == 0) { in onCreate()
290 mCurrentPreviewHolder = null; in onPause()
291 mCurrentPreviewHolder2 = null; in onPause()
379 if ((mCurrentPreviewHolder != null && holder == mCurrentPreviewHolder) || in surfaceChanged()
380 (mCurrentPreviewHolder2 != null && holder == mCurrentPreviewHolder2)) { in surfaceChanged()
409 if (mCurrentPreviewHolder != null && mCurrentPreviewHolder2 != null) {
483 if (request == null || result ==null) {
[all …]
/pdk/apps/HelloPDK/src/com/example/android/helloPDK/
DMainActivity.java48 if (path == null) { in onCreate()
61 Intent mainIntent = new Intent(Intent.ACTION_MAIN, null); in getData()
67 if (null == list) in getData()
74 prefixPath = null; in getData()
87 String label = labelSeq != null ? labelSeq.toString() : info.activityInfo.name; in getData()
94 null ? labelPath[0] : labelPath[prefixPath.length]; in getData()
96 if ((prefixPath != null ? prefixPath.length : 0) == labelPath.length - 1) { in getData()
101 if (entries.get(nextLabel) == null) { in getData()
/pdk/apps/TestingCamera/src/com/android/testingcamera/
DTestingCamera.java120 SnapshotDialogFragment mSnapshotDialog = null;
159 private CallbackProcessor mCallbackProcessor = null;
350 if (mActivity != null) { in onOrientationChanged()
390 if (mCamera != null) { in onPause()
420 if (mSnapshotDialog != null) { in onRequestPermissionsResult()
453 if (mPreviewHolder != null || mState == CAMERA_UNINITIALIZED) { in surfaceChanged()
459 if (mCamera != null) { in surfaceChanged()
477 mPreviewHolder = null; in surfaceDestroyed()
1041 if (mParams != null) { in setUpCamera()
1043 if (sceneModes != null) { in setUpCamera()
[all …]
DCallbackProcessor.java117 mAllocationOut.setSurface(null); in stop()
126 if (mCallbackSurface == null) { in displayCallback()
129 if (mCallbackSurface == null) return; in displayCallback()
DSnapshotDialogFragment.java39 private Uri mSavedUri = null;
63 if (mJpegImage != null) { in onCreateView()
136 return (attribute == null) ? "???" : attribute; in getAttrib()
153 if (targetFile == null) { in saveFile()
265 if (mSavedUri != null) { in viewFile()