DO NOT MERGE: Camera: Adjust pointers to ANW buffers to avoid infoleak

Subtract address of a random static object from pointers being routed
through app process.

Bug: 28466701
Change-Id: Idcbfe81e9507433769672f3dc6d67db5eeed4e04

status_t StreamingProcessor::dump(int fd, const Vector<String16>& /*args*/) {
 String8 result;

    result.append("  Current requests:\n");
 if (mPreviewRequest.entryCount() != 0) {
        result.append("    Preview request:\n");
        write(fd, result.string(), result.size());
        mPreviewRequest.dump(fd, 2, 6);
        result.clear();
 } else {
        result.append("    Preview request: undefined\n");
 }

 if (mRecordingRequest.entryCount() != 0) {
        result = "    Recording request:\n";
        write(fd, result.string(), result.size());
        mRecordingRequest.dump(fd, 2, 6);
        result.clear();
 } else {
        result = "    Recording request: undefined\n";
 }

 const char* streamTypeString[] = {
 "none", "preview", "record"
 };
    result.append(String8::format("   Active request: %s (paused: %s)\n",
                                  streamTypeString[mActiveRequest],
                                  mPaused ? "yes" : "no"));

    write(fd, result.string(), result.size());

 return OK;
}

status_t StreamingProcessor::dump(int fd, const Vector<String16>& /*args*/) {
 String8 result;

    result.append("  Current requests:\n");
 if (mPreviewRequest.entryCount() != 0) {
        result.append("    Preview request:\n");
        write(fd, result.string(), result.size());
        mPreviewRequest.dump(fd, 2, 6);
        result.clear();
 } else {
        result.append("    Preview request: undefined\n");
 }

 if (mRecordingRequest.entryCount() != 0) {
        result = "    Recording request:\n";
        write(fd, result.string(), result.size());
        mRecordingRequest.dump(fd, 2, 6);
        result.clear();
 } else {
        result = "    Recording request: undefined\n";
 }

 const char* streamTypeString[] = {
 "none", "preview", "record"
 };
    result.append(String8::format("   Active request: %s (paused: %s)\n",
                                  streamTypeString[mActiveRequest],
                                  mPaused ? "yes" : "no"));

    write(fd, result.string(), result.size());

 return OK;
}
