// Path: android/src/com/shaddock/crsync/CrsyncConstants.java
// public static final Logger logger = Logger.getLogger("crsync");


import static com.shaddock.crsync.CrsyncConstants.logger;
import java.util.Vector;
import android.content.ComponentName;
import android.content.ContentProvider;
import android.content.ContentValues;
import android.content.Context;
import android.content.Intent;
import android.content.SharedPreferences;
import android.content.UriMatcher;
import android.database.Cursor;
import android.database.MatrixCursor;
import android.net.Uri;
	public String getType(final Uri uri) {
		int match = sURIMatcher.match(uri);
        switch (match) {
        case CODE_CONTENT:
        case CODE_STATE:
        case CODE_APP:
            return TYPE_ITEM;
        case CODE_RESOURCE:
            return TYPE_DIR;
        default:
            logger.severe("Unknown URI: " + uri);
        	throw new IllegalArgumentException("getType Unknown URI: " + uri);
        }
	}

	@Override
	public Uri insert(Uri uri, ContentValues values) {
	    throw new IllegalArgumentException("insert Unimplement URI: " + uri);
	}

	@Override
    public int bulkInsert(Uri uri, ContentValues[] values) {
	    int match = sURIMatcher.match(uri);
        switch (match) {
        case CODE_RESOURCE:
            mRes.clear();
            for(ContentValues v : values) {
                CrsyncInfo.ResInfo r = new CrsyncInfo.ResInfo();
                r.mName = v.getAsString(CrsyncConstants.COLUMN_RES_NAME);
                r.mHash = v.getAsString(CrsyncConstants.COLUMN_RES_HASH);
// Path: android/src/com/shaddock/crsync/CrsyncConstants.java
// public static final Logger logger = Logger.getLogger("crsync");


// Path: android/src/com/shaddock/crsync/CrsyncProvider.java
import static com.shaddock.crsync.CrsyncConstants.logger;
import java.util.Vector;
import android.content.ComponentName;
import android.content.ContentProvider;
import android.content.ContentValues;
import android.content.Context;
import android.content.Intent;
import android.content.SharedPreferences;
import android.content.UriMatcher;
import android.database.Cursor;
import android.database.MatrixCursor;
import android.net.Uri;

	public String getType(final Uri uri) {
		int match = sURIMatcher.match(uri);
        switch (match) {
        case CODE_CONTENT:
        case CODE_STATE:
        case CODE_APP:
            return TYPE_ITEM;
        case CODE_RESOURCE:
            return TYPE_DIR;
        default:
            logger.severe("Unknown URI: " + uri);
        	throw new IllegalArgumentException("getType Unknown URI: " + uri);
        }
	}

	@Override
	public Uri insert(Uri uri, ContentValues values) {
	    throw new IllegalArgumentException("insert Unimplement URI: " + uri);
	}

	@Override
    public int bulkInsert(Uri uri, ContentValues[] values) {
	    int match = sURIMatcher.match(uri);
        switch (match) {
        case CODE_RESOURCE:
            mRes.clear();
            for(ContentValues v : values) {
                CrsyncInfo.ResInfo r = new CrsyncInfo.ResInfo();
                r.mName = v.getAsString(CrsyncConstants.COLUMN_RES_NAME);
                r.mHash = v.getAsString(CrsyncConstants.COLUMN_RES_HASH);
                r.mSize = v.getAsInteger(CrsyncConstants.COLUMN_RES_SIZE);