ECode CPendingIntent::GetHashCode(
    /* [out] */ Int32* hash)
{
    VALIDATE_NOT_NULL(hash);
    *hash = 0;

    IObject* obj = IObject::Probe(mTarget.Get());
    if (obj != NULL) {
        return obj->GetHashCode(hash);
    }
    return NOERROR;
}
示例#2
0
String CMiniThumbFile::RandomAccessFilePath(
    /* [in] */ Int32 version)
{
    String tempText;
    AutoPtr<IFile> file = Environment::GetExternalStorageDirectory();
    file->ToString(&tempText);
    String directoryName = tempText + "/DCIM/.thumbnails";

    Int32 tempValue = 0;
    IObject* obj = IObject::Probe(mUri.Get());
    if (obj != NULL) {
        obj->GetHashCode(&tempValue);
    }
    String result = directoryName + "/thumbdata" + StringUtils::ToString(version) + "-" + StringUtils::ToString(tempValue);
    return result;
}