Exemplo n.º 1
0
Int64 SystemProperties::GetInt64(
    /* [in] */ const String& key,
    /* [in] */ Int64 def)
{
    if (key.IsNull() || key.GetLength() > PROP_NAME_MAX) {
//        throw new IllegalArgumentException("key.length > " + PROP_NAME_MAX);
        return E_ILLEGAL_ARGUMENT_EXCEPTION;
    }
    return NativeGetInt64(key, def);
}
Exemplo n.º 2
0
ECode CursorWindow::GetInt64(
    /* [in] */ Int32 row,
    /* [in] */ Int32 col,
    /* [out] */ Int64* value)
{
    AcquireReference();
    //try {
    ECode ec = NativeGetInt64(row - mStartPos, col, value);
    //} finally {
    ReleaseReference();
    //}
    return ec;
}
Exemplo n.º 3
0
ECode CursorWindow::GetInt32(
    /* [in] */ Int32 row,
    /* [in] */ Int32 col,
    /* [out] */ Int32* value)
{
    AcquireReference();
    //try {
    Int64 i64Value;
    ECode ec = NativeGetInt64(row - mStartPos, col, &i64Value);
    *value = (Int32)i64Value;
    //} finally {
    ReleaseReference();
    //}
    return ec;
}