Skip to content

MultiCamera App Changes for Coverity Fix#46

Open
pillai45 wants to merge 1 commit into
projectceladon:masterfrom
pillai45:ww12_cam
Open

MultiCamera App Changes for Coverity Fix#46
pillai45 wants to merge 1 commit into
projectceladon:masterfrom
pillai45:ww12_cam

Conversation

@pillai45

Copy link
Copy Markdown

The changes are made in the multicamera APP code to address the Coverity Issues

One part of the issue is solved here

Tracked-On: OAM-106764

The changes are made in the multicamera APP code to address the Coverity Issues

One part of the issue is solved here

Tracked-On: OAM-106764
Signed-off-by: pillaive <venkatesh.pillai@intel.com>
System.out.println(TAG +" camera close exception");
}

if (null != imageReader) {

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this wont create leak ?

cameraDevice.close();
cameraDevice = null;
}
if (null != imageReader) {

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same here, it wont create leak ?


/** Converts the given double to a localized String version. */
private String toLocalNumber(double n) {
/*private String toLocalNumber(double n) {

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

remove this commented code, if not used


checkPermissions();


Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

remove newly added unwanted line

mCamera_BackView.getHeight());
} else {
mCamera_BackView.setSurfaceTextureListener(mCamera.textureListener);
if(mCamera != null)

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You can use Objects.isNull

public class SettingsActivity extends AppCompatActivity {
private String TAG = "settings";


Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

remove

mRoundedThumbnailView = findViewById(R.id.rounded_thumbnail_view);

checkPermissions();

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

remove

fileDetails[0] = dateFormat.format(date);
fileDetails[1] = fileDetails[0] + ".jpg";
fileDetails[2] = "image/jpeg";

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

remove

@sysopenci sysopenci added the Stale Stale label for inactive open prs label Sep 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Stale Stale label for inactive open prs

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants