Lines Matching refs:objectInfo
138 void fill_jobject_from_object_info(JNIEnv* env, jobject object, MtpObjectInfo* objectInfo) {
139 if (objectInfo->mHandle)
140 env->SetIntField(object, field_objectInfo_handle, objectInfo->mHandle);
141 if (objectInfo->mStorageID)
142 env->SetIntField(object, field_objectInfo_storageId, objectInfo->mStorageID);
143 if (objectInfo->mFormat)
144 env->SetIntField(object, field_objectInfo_format, objectInfo->mFormat);
145 if (objectInfo->mProtectionStatus)
146 env->SetIntField(object, field_objectInfo_protectionStatus, objectInfo->mProtectionStatus);
147 if (objectInfo->mCompressedSize)
148 env->SetIntField(object, field_objectInfo_compressedSize, objectInfo->mCompressedSize);
149 if (objectInfo->mThumbFormat)
150 env->SetIntField(object, field_objectInfo_thumbFormat, objectInfo->mThumbFormat);
151 if (objectInfo->mThumbCompressedSize) {
153 objectInfo->mThumbCompressedSize);
155 if (objectInfo->mThumbPixWidth)
156 env->SetIntField(object, field_objectInfo_thumbPixWidth, objectInfo->mThumbPixWidth);
157 if (objectInfo->mThumbPixHeight)
158 env->SetIntField(object, field_objectInfo_thumbPixHeight, objectInfo->mThumbPixHeight);
159 if (objectInfo->mImagePixWidth)
160 env->SetIntField(object, field_objectInfo_imagePixWidth, objectInfo->mImagePixWidth);
161 if (objectInfo->mImagePixHeight)
162 env->SetIntField(object, field_objectInfo_imagePixHeight, objectInfo->mImagePixHeight);
163 if (objectInfo->mImagePixDepth)
164 env->SetIntField(object, field_objectInfo_imagePixDepth, objectInfo->mImagePixDepth);
165 if (objectInfo->mParent)
166 env->SetIntField(object, field_objectInfo_parent, objectInfo->mParent);
167 if (objectInfo->mAssociationType)
168 env->SetIntField(object, field_objectInfo_associationType, objectInfo->mAssociationType);
169 if (objectInfo->mAssociationDesc)
170 env->SetIntField(object, field_objectInfo_associationDesc, objectInfo->mAssociationDesc);
171 if (objectInfo->mSequenceNumber)
172 env->SetIntField(object, field_objectInfo_sequenceNumber, objectInfo->mSequenceNumber);
173 if (objectInfo->mName)
174 env->SetObjectField(object, field_objectInfo_name, env->NewStringUTF(objectInfo->mName));
175 if (objectInfo->mDateCreated)
176 env->SetLongField(object, field_objectInfo_dateCreated, objectInfo->mDateCreated * 1000LL);
177 if (objectInfo->mDateModified) {
179 objectInfo->mDateModified * 1000LL);
181 if (objectInfo->mKeywords) {
183 env->NewStringUTF(objectInfo->mKeywords));
362 MtpObjectInfo* objectInfo = device->getObjectInfo(objectID);
363 if (!objectInfo)
368 delete objectInfo;
372 fill_jobject_from_object_info(env, info, objectInfo);
373 delete objectInfo;