public AdnRecord createFromParcel(Parcel source) { int efid; int recordNumber; String alphaTag; String number; String[] emails; String[] additionalNumbers; efid = source.readInt(); recordNumber = source.readInt(); alphaTag = source.readString(); number = source.readString(); emails = source.readStringArray(); additionalNumbers = source.readStringArray(); return new AdnRecord(efid, recordNumber, alphaTag, number, emails, additionalNumbers); }
private Quiz(Parcel in) { this.id = in.readLong(); this.title = in.readString(); this.mobile_url = in.readString(); this.html_url = in.readString(); this.description = in.readString(); this.quiz_type = in.readString(); this.lock_info = in.readParcelable(LockInfo.class.getClassLoader()); this.assignment = in.readParcelable(Assignment.class.getClassLoader()); this.permissions = in.readParcelable(QuizPermission.class.getClassLoader()); this.allowed_attempts = in.readInt(); this.question_count = in.readInt(); this.points_possible = in.readDouble(); this.due_at = in.readString(); this.time_limit = in.readInt(); this.access_code = in.readString(); this.ip_filter = in.readString(); this.locked_for_user = in.readByte() != 0; this.lock_explanation = in.readString(); this.hide_results = in.readString(); this.unlock_at = in.readString(); this.one_time_results = in.readByte() != 0; this.lock_at = in.readString(); in.readStringArray(this.question_types); this.has_access_code = in.readByte() != 0; }
public SuggestionsInfo(Parcel source) { mSuggestionsAttributes = source.readInt(); mSuggestions = source.readStringArray(); mCookie = source.readInt(); mSequence = source.readInt(); mSuggestionsAvailable = source.readInt() == 1; }
public Coisas(Parcel source) { // TODO Auto-generated constructor stub String[] data = new String[2]; source.readStringArray(data); this.setId(Integer.valueOf(data[0])); this.setNome(data[1]); }
public Filter(Parcel in) { String[] array = new String[1]; in.readStringArray(array); filter = array[0]; segments = filter.split(":"); }
@Test public void testReadWriteStringArray() throws Exception { final String[] strings = {"foo", "bar"}; parcel.writeStringArray(strings); final String[] strings2 = new String[strings.length]; parcel.readStringArray(strings2); assertTrue(Arrays.equals(strings, strings2)); }
@Override public ImagesItem createFromParcel(Parcel source) { ImagesItem imagesItem = new ImagesItem(); imagesItem.name = source.readString(); imagesItem.imageNum = source.readInt(); imagesItem.images = new String[imagesItem.imageNum]; source.readStringArray(imagesItem.images); return imagesItem; }
// Parcelling public CommentParcelableObject(Parcel in) { String[] data = new String[5]; in.readStringArray(data); this.id = data[0]; this.fromUserName = data[1]; this.fromUserImageUrl = data[2]; this.message = data[3]; this.created_time = data[4]; }
protected Movie(Parcel in) { String[] input = new String[4]; in.readStringArray(input); title = input[0]; posterPath = input[1]; plot = input[2]; releaseDate = input[3]; rating = in.readDouble(); }
public MissionData(Parcel in) { String[] data = new String[2]; in.readStringArray(data); int[] intData = new int[2]; in.readIntArray(intData); this.name = data[0]; this.description = data[1]; this.thumbnail = intData[0]; this.distance = intData[1]; }
// Parcelling part public Entry(Parcel in) { String[] data = new String[7]; in.readStringArray(data); this.id = data[0]; this.question = data[1]; this.answerA = data[2]; this.answerB = data[3]; this.answerC = data[4]; this.answerD = data[5]; this.theAnswer = data[6]; }
public void readFromParcel(Parcel source) { processName = source.readString(); pid = source.readInt(); uid = source.readInt(); pkgList = source.readStringArray(); flags = source.readInt(); importance = source.readInt(); lru = source.readInt(); importanceReasonCode = source.readInt(); importanceReasonPid = source.readInt(); importanceReasonComponent = ComponentName.readFromParcel(source); importanceReasonImportance = source.readInt(); }
public SportsLQSFItem createFromParcel(Parcel source) { SportsLQSFItem item = new SportsLQSFItem(); item.setId(source.readString()); item.setWeekDay(source.readString()); item.setIdBetNum(source.readString()); item.setMatchHomeTeamName(source.readString()); item.setMatchGuessTeamName(source.readString()); source.readStringArray(item.odds); item.setEndTime(source.readString()); item.setMatchTime(source.readString()); source.readBooleanArray(item.status); return item; }
private ApplicationInfo(Parcel source) { super(source); taskAffinity = source.readString(); permission = source.readString(); processName = source.readString(); className = source.readString(); theme = source.readInt(); flags = source.readInt(); requiresSmallestWidthDp = source.readInt(); compatibleWidthLimitDp = source.readInt(); largestWidthLimitDp = source.readInt(); scanSourceDir = source.readString(); scanPublicSourceDir = source.readString(); sourceDir = source.readString(); publicSourceDir = source.readString(); splitSourceDirs = source.readStringArray(); splitPublicSourceDirs = source.readStringArray(); nativeLibraryDir = source.readString(); secondaryNativeLibraryDir = source.readString(); nativeLibraryRootDir = source.readString(); nativeLibraryRootRequiresIsa = source.readInt() != 0; primaryCpuAbi = source.readString(); secondaryCpuAbi = source.readString(); resourceDirs = source.readStringArray(); seinfo = source.readString(); sharedLibraryFiles = source.readStringArray(); dataDir = source.readString(); uid = source.readInt(); targetSdkVersion = source.readInt(); versionCode = source.readInt(); enabled = source.readInt() != 0; enabledSetting = source.readInt(); installLocation = source.readInt(); manageSpaceActivityName = source.readString(); backupAgentName = source.readString(); descriptionRes = source.readInt(); uiOptions = source.readInt(); }
public SearchResult(final Parcel in) { final ArrayList<String> list = new ArrayList<String>(); in.readStringList(list); geocodes = new HashSet<String>(list); final ArrayList<String> filteredList = new ArrayList<String>(); in.readStringList(filteredList); filteredGeocodes = new HashSet<String>(filteredList); error = (StatusCode) in.readSerializable(); url = in.readString(); final int length = in.readInt(); if (length >= 0) { viewstates = new String[length]; in.readStringArray(viewstates); } setTotalCountGC(in.readInt()); }
@Override public State createFromParcel(Parcel in) { final State state = new State(); state.action = in.readInt(); state.userMode = in.readInt(); state.acceptMimes = in.readStringArray(); state.userSortOrder = in.readInt(); state.allowMultiple = in.readInt() != 0; state.showSize = in.readInt() != 0; state.localOnly = in.readInt() != 0; state.forceAdvanced = in.readInt() != 0; state.showAdvanced = in.readInt() != 0; state.stackTouched = in.readInt() != 0; state.restored = in.readInt() != 0; DurableUtils.readFromParcel(in, state.stack); state.currentSearch = in.readString(); in.readMap(state.dirState, null); return state; }
protected Tweet(Parcel in) { String[] data = new String[3]; in.readStringArray(data); this.body = data[0]; this.createdAt = data[1]; this.mediaUrl = data[2]; long[] longs = new long[3]; in.readLongArray(longs); this.id = longs[0]; this.numFavorites = longs[1]; this.numReTweets = longs[2]; user = (User) in.readParcelable(User.class.getClassLoader()); boolean[] bools = new boolean[2]; in.readBooleanArray(bools); this.favorited = bools[0]; this.retweeted = bools[1]; }
// Parcelling public Cell(Parcel in) { String[] data = new String[15]; in.readStringArray(data); cid = Integer.valueOf(data[0]); lac = Integer.valueOf(data[1]); mcc = Integer.valueOf(data[2]); mnc = Integer.valueOf(data[3]); dbm = Integer.valueOf(data[4]); psc = Integer.valueOf(data[5]); rssi = Integer.valueOf(data[6]); timingAdvance = Integer.valueOf(data[7]); sid = Integer.valueOf(data[8]); netType = Integer.valueOf(data[9]); lon = Double.valueOf(data[10]); lat = Double.valueOf(data[11]); speed = Double.valueOf(data[12]); accuracy = Double.valueOf(data[13]); bearing = Double.valueOf(data[14]); }
@DSSafe(DSCat.SAFE_OTHERS) @DSGenerator( tool_name = "Doppelganger", tool_version = "2.0", generated_on = "2013-12-30 12:59:16.985 -0500", hash_original_method = "6D3E00478735263B7A5F1362FAEF6B0C", hash_generated_method = "5D0078611BAC042CC69D70D42DA51986") public AdnRecord createFromParcel(Parcel source) { int efid; int recordNumber; String alphaTag; String number; String[] emails; efid = source.readInt(); recordNumber = source.readInt(); alphaTag = source.readString(); number = source.readString(); emails = source.readStringArray(); return new AdnRecord(efid, recordNumber, alphaTag, number, emails); }
@Override public boolean onTransact(int code, Parcel data, Parcel reply, int flags) throws RemoteException { switch (code) { case SCHEDULE_PAUSE_ACTIVITY_TRANSACTION: { data.enforceInterface(IApplicationThread.descriptor); IBinder b = data.readStrongBinder(); boolean finished = data.readInt() != 0; boolean userLeaving = data.readInt() != 0; int configChanges = data.readInt(); schedulePauseActivity(b, finished, userLeaving, configChanges); return true; } case SCHEDULE_STOP_ACTIVITY_TRANSACTION: { data.enforceInterface(IApplicationThread.descriptor); IBinder b = data.readStrongBinder(); boolean show = data.readInt() != 0; int configChanges = data.readInt(); scheduleStopActivity(b, show, configChanges); return true; } case SCHEDULE_WINDOW_VISIBILITY_TRANSACTION: { data.enforceInterface(IApplicationThread.descriptor); IBinder b = data.readStrongBinder(); boolean show = data.readInt() != 0; scheduleWindowVisibility(b, show); return true; } case SCHEDULE_SLEEPING_TRANSACTION: { data.enforceInterface(IApplicationThread.descriptor); IBinder b = data.readStrongBinder(); boolean sleeping = data.readInt() != 0; scheduleSleeping(b, sleeping); return true; } case SCHEDULE_RESUME_ACTIVITY_TRANSACTION: { data.enforceInterface(IApplicationThread.descriptor); IBinder b = data.readStrongBinder(); boolean isForward = data.readInt() != 0; scheduleResumeActivity(b, isForward); return true; } case SCHEDULE_SEND_RESULT_TRANSACTION: { data.enforceInterface(IApplicationThread.descriptor); IBinder b = data.readStrongBinder(); List<ResultInfo> ri = data.createTypedArrayList(ResultInfo.CREATOR); scheduleSendResult(b, ri); return true; } case SCHEDULE_LAUNCH_ACTIVITY_TRANSACTION: { data.enforceInterface(IApplicationThread.descriptor); Intent intent = Intent.CREATOR.createFromParcel(data); IBinder b = data.readStrongBinder(); int ident = data.readInt(); ActivityInfo info = ActivityInfo.CREATOR.createFromParcel(data); Configuration curConfig = Configuration.CREATOR.createFromParcel(data); CompatibilityInfo compatInfo = CompatibilityInfo.CREATOR.createFromParcel(data); Bundle state = data.readBundle(); List<ResultInfo> ri = data.createTypedArrayList(ResultInfo.CREATOR); List<Intent> pi = data.createTypedArrayList(Intent.CREATOR); boolean notResumed = data.readInt() != 0; boolean isForward = data.readInt() != 0; String profileName = data.readString(); ParcelFileDescriptor profileFd = data.readInt() != 0 ? data.readFileDescriptor() : null; boolean autoStopProfiler = data.readInt() != 0; scheduleLaunchActivity( intent, b, ident, info, curConfig, compatInfo, state, ri, pi, notResumed, isForward, profileName, profileFd, autoStopProfiler); return true; } case SCHEDULE_RELAUNCH_ACTIVITY_TRANSACTION: { data.enforceInterface(IApplicationThread.descriptor); IBinder b = data.readStrongBinder(); List<ResultInfo> ri = data.createTypedArrayList(ResultInfo.CREATOR); List<Intent> pi = data.createTypedArrayList(Intent.CREATOR); int configChanges = data.readInt(); boolean notResumed = data.readInt() != 0; Configuration config = null; if (data.readInt() != 0) { config = Configuration.CREATOR.createFromParcel(data); } scheduleRelaunchActivity(b, ri, pi, configChanges, notResumed, config); return true; } case SCHEDULE_NEW_INTENT_TRANSACTION: { data.enforceInterface(IApplicationThread.descriptor); List<Intent> pi = data.createTypedArrayList(Intent.CREATOR); IBinder b = data.readStrongBinder(); scheduleNewIntent(pi, b); return true; } case SCHEDULE_FINISH_ACTIVITY_TRANSACTION: { data.enforceInterface(IApplicationThread.descriptor); IBinder b = data.readStrongBinder(); boolean finishing = data.readInt() != 0; int configChanges = data.readInt(); scheduleDestroyActivity(b, finishing, configChanges); return true; } case SCHEDULE_RECEIVER_TRANSACTION: { data.enforceInterface(IApplicationThread.descriptor); Intent intent = Intent.CREATOR.createFromParcel(data); ActivityInfo info = ActivityInfo.CREATOR.createFromParcel(data); CompatibilityInfo compatInfo = CompatibilityInfo.CREATOR.createFromParcel(data); int resultCode = data.readInt(); String resultData = data.readString(); Bundle resultExtras = data.readBundle(); boolean sync = data.readInt() != 0; scheduleReceiver(intent, info, compatInfo, resultCode, resultData, resultExtras, sync); return true; } case SCHEDULE_CREATE_SERVICE_TRANSACTION: { data.enforceInterface(IApplicationThread.descriptor); IBinder token = data.readStrongBinder(); ServiceInfo info = ServiceInfo.CREATOR.createFromParcel(data); CompatibilityInfo compatInfo = CompatibilityInfo.CREATOR.createFromParcel(data); scheduleCreateService(token, info, compatInfo); return true; } case SCHEDULE_BIND_SERVICE_TRANSACTION: { data.enforceInterface(IApplicationThread.descriptor); IBinder token = data.readStrongBinder(); Intent intent = Intent.CREATOR.createFromParcel(data); boolean rebind = data.readInt() != 0; scheduleBindService(token, intent, rebind); return true; } case SCHEDULE_UNBIND_SERVICE_TRANSACTION: { data.enforceInterface(IApplicationThread.descriptor); IBinder token = data.readStrongBinder(); Intent intent = Intent.CREATOR.createFromParcel(data); scheduleUnbindService(token, intent); return true; } case SCHEDULE_SERVICE_ARGS_TRANSACTION: { data.enforceInterface(IApplicationThread.descriptor); IBinder token = data.readStrongBinder(); boolean taskRemoved = data.readInt() != 0; int startId = data.readInt(); int fl = data.readInt(); Intent args; if (data.readInt() != 0) { args = Intent.CREATOR.createFromParcel(data); } else { args = null; } scheduleServiceArgs(token, taskRemoved, startId, fl, args); return true; } case SCHEDULE_STOP_SERVICE_TRANSACTION: { data.enforceInterface(IApplicationThread.descriptor); IBinder token = data.readStrongBinder(); scheduleStopService(token); return true; } case BIND_APPLICATION_TRANSACTION: { data.enforceInterface(IApplicationThread.descriptor); String packageName = data.readString(); ApplicationInfo info = ApplicationInfo.CREATOR.createFromParcel(data); List<ProviderInfo> providers = data.createTypedArrayList(ProviderInfo.CREATOR); ComponentName testName = (data.readInt() != 0) ? new ComponentName(data) : null; String profileName = data.readString(); ParcelFileDescriptor profileFd = data.readInt() != 0 ? data.readFileDescriptor() : null; boolean autoStopProfiler = data.readInt() != 0; Bundle testArgs = data.readBundle(); IBinder binder = data.readStrongBinder(); IInstrumentationWatcher testWatcher = IInstrumentationWatcher.Stub.asInterface(binder); int testMode = data.readInt(); boolean restrictedBackupMode = (data.readInt() != 0); boolean persistent = (data.readInt() != 0); Configuration config = Configuration.CREATOR.createFromParcel(data); CompatibilityInfo compatInfo = CompatibilityInfo.CREATOR.createFromParcel(data); HashMap<String, IBinder> services = data.readHashMap(null); Bundle coreSettings = data.readBundle(); bindApplication( packageName, info, providers, testName, profileName, profileFd, autoStopProfiler, testArgs, testWatcher, testMode, restrictedBackupMode, persistent, config, compatInfo, services, coreSettings); return true; } case SCHEDULE_EXIT_TRANSACTION: { data.enforceInterface(IApplicationThread.descriptor); scheduleExit(); return true; } case SCHEDULE_SUICIDE_TRANSACTION: { data.enforceInterface(IApplicationThread.descriptor); scheduleSuicide(); return true; } case REQUEST_THUMBNAIL_TRANSACTION: { data.enforceInterface(IApplicationThread.descriptor); IBinder b = data.readStrongBinder(); requestThumbnail(b); return true; } case SCHEDULE_CONFIGURATION_CHANGED_TRANSACTION: { data.enforceInterface(IApplicationThread.descriptor); Configuration config = Configuration.CREATOR.createFromParcel(data); scheduleConfigurationChanged(config); return true; } case UPDATE_TIME_ZONE_TRANSACTION: { data.enforceInterface(IApplicationThread.descriptor); updateTimeZone(); return true; } case CLEAR_DNS_CACHE_TRANSACTION: { data.enforceInterface(IApplicationThread.descriptor); clearDnsCache(); return true; } case SET_HTTP_PROXY_TRANSACTION: { data.enforceInterface(IApplicationThread.descriptor); final String proxy = data.readString(); final String port = data.readString(); final String exclList = data.readString(); setHttpProxy(proxy, port, exclList); return true; } case PROCESS_IN_BACKGROUND_TRANSACTION: { data.enforceInterface(IApplicationThread.descriptor); processInBackground(); return true; } case DUMP_SERVICE_TRANSACTION: { data.enforceInterface(IApplicationThread.descriptor); ParcelFileDescriptor fd = data.readFileDescriptor(); final IBinder service = data.readStrongBinder(); final String[] args = data.readStringArray(); if (fd != null) { dumpService(fd.getFileDescriptor(), service, args); try { fd.close(); } catch (IOException e) { } } return true; } case SCHEDULE_REGISTERED_RECEIVER_TRANSACTION: { data.enforceInterface(IApplicationThread.descriptor); IIntentReceiver receiver = IIntentReceiver.Stub.asInterface(data.readStrongBinder()); Intent intent = Intent.CREATOR.createFromParcel(data); int resultCode = data.readInt(); String dataStr = data.readString(); Bundle extras = data.readBundle(); boolean ordered = data.readInt() != 0; boolean sticky = data.readInt() != 0; scheduleRegisteredReceiver( receiver, intent, resultCode, dataStr, extras, ordered, sticky); return true; } case SCHEDULE_LOW_MEMORY_TRANSACTION: { scheduleLowMemory(); return true; } case SCHEDULE_ACTIVITY_CONFIGURATION_CHANGED_TRANSACTION: { data.enforceInterface(IApplicationThread.descriptor); IBinder b = data.readStrongBinder(); scheduleActivityConfigurationChanged(b); return true; } case PROFILER_CONTROL_TRANSACTION: { data.enforceInterface(IApplicationThread.descriptor); boolean start = data.readInt() != 0; int profileType = data.readInt(); String path = data.readString(); ParcelFileDescriptor fd = data.readInt() != 0 ? data.readFileDescriptor() : null; profilerControl(start, path, fd, profileType); return true; } case SET_SCHEDULING_GROUP_TRANSACTION: { data.enforceInterface(IApplicationThread.descriptor); int group = data.readInt(); setSchedulingGroup(group); return true; } case SCHEDULE_CREATE_BACKUP_AGENT_TRANSACTION: { data.enforceInterface(IApplicationThread.descriptor); ApplicationInfo appInfo = ApplicationInfo.CREATOR.createFromParcel(data); CompatibilityInfo compatInfo = CompatibilityInfo.CREATOR.createFromParcel(data); int backupMode = data.readInt(); scheduleCreateBackupAgent(appInfo, compatInfo, backupMode); return true; } case SCHEDULE_DESTROY_BACKUP_AGENT_TRANSACTION: { data.enforceInterface(IApplicationThread.descriptor); ApplicationInfo appInfo = ApplicationInfo.CREATOR.createFromParcel(data); CompatibilityInfo compatInfo = CompatibilityInfo.CREATOR.createFromParcel(data); scheduleDestroyBackupAgent(appInfo, compatInfo); return true; } case GET_MEMORY_INFO_TRANSACTION: { data.enforceInterface(IApplicationThread.descriptor); Debug.MemoryInfo mi = new Debug.MemoryInfo(); getMemoryInfo(mi); reply.writeNoException(); mi.writeToParcel(reply, 0); return true; } case DISPATCH_PACKAGE_BROADCAST_TRANSACTION: { data.enforceInterface(IApplicationThread.descriptor); int cmd = data.readInt(); String[] packages = data.readStringArray(); dispatchPackageBroadcast(cmd, packages); return true; } case SCHEDULE_CRASH_TRANSACTION: { data.enforceInterface(IApplicationThread.descriptor); String msg = data.readString(); scheduleCrash(msg); return true; } case DUMP_HEAP_TRANSACTION: { data.enforceInterface(IApplicationThread.descriptor); boolean managed = data.readInt() != 0; String path = data.readString(); ParcelFileDescriptor fd = data.readInt() != 0 ? data.readFileDescriptor() : null; dumpHeap(managed, path, fd); return true; } case DUMP_ACTIVITY_TRANSACTION: { data.enforceInterface(IApplicationThread.descriptor); ParcelFileDescriptor fd = data.readFileDescriptor(); final IBinder activity = data.readStrongBinder(); final String prefix = data.readString(); final String[] args = data.readStringArray(); if (fd != null) { dumpActivity(fd.getFileDescriptor(), activity, prefix, args); try { fd.close(); } catch (IOException e) { } } return true; } case SET_CORE_SETTINGS_TRANSACTION: { data.enforceInterface(IApplicationThread.descriptor); Bundle settings = data.readBundle(); setCoreSettings(settings); return true; } case UPDATE_PACKAGE_COMPATIBILITY_INFO_TRANSACTION: { data.enforceInterface(IApplicationThread.descriptor); String pkg = data.readString(); CompatibilityInfo compat = CompatibilityInfo.CREATOR.createFromParcel(data); updatePackageCompatibilityInfo(pkg, compat); return true; } case SCHEDULE_TRIM_MEMORY_TRANSACTION: { data.enforceInterface(IApplicationThread.descriptor); int level = data.readInt(); scheduleTrimMemory(level); return true; } case DUMP_MEM_INFO_TRANSACTION: { data.enforceInterface(IApplicationThread.descriptor); ParcelFileDescriptor fd = data.readFileDescriptor(); boolean checkin = data.readInt() != 0; boolean all = data.readInt() != 0; String[] args = data.readStringArray(); Debug.MemoryInfo mi = null; if (fd != null) { try { mi = dumpMemInfo(fd.getFileDescriptor(), checkin, all, args); } finally { try { fd.close(); } catch (IOException e) { // swallowed, not propagated back to the caller } } } reply.writeNoException(); mi.writeToParcel(reply, 0); return true; } case DUMP_GFX_INFO_TRANSACTION: { data.enforceInterface(IApplicationThread.descriptor); ParcelFileDescriptor fd = data.readFileDescriptor(); String[] args = data.readStringArray(); if (fd != null) { try { dumpGfxInfo(fd.getFileDescriptor(), args); } finally { try { fd.close(); } catch (IOException e) { // swallowed, not propagated back to the caller } } } reply.writeNoException(); return true; } } return super.onTransact(code, data, reply, flags); }
public void readFromParcel(Parcel source) { source.readStringArray(this.projection); this.selection = source.readString(); source.readStringArray(this.arguments); this.sort = source.readString(); }
private void readFromParcel(Parcel in) { in.readStringArray(data); in.readIntArray(objetos); // in.readDoubleArray(coordenadas); }
public NotificationRankingUpdate(Parcel in) { mKeys = in.readStringArray(); mFirstAmbientIndex = in.readInt(); mInterceptedKeys = in.readStringArray(); mVisibilityOverrides = in.readBundle(); }