auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
public void imageLoaded ( ) { synchronized ( this ) { loadImage ( ) ; crosshairLocation = model.getCrosshairLocation ( ) ; zoom = model.getZoom ( ) ; } doRedraw ( ) ; }

Target:
public void imageLoaded ( ) { org.eclipse.swt.widgets.Display.getDefault ( ) . syncExec ( new java.lang.Runnable ( ) { public void run ( ) { synchronized ( this ) { loadImage ( ) ; crosshairLocation = model.getCrosshairLocation ( ) ; zoom = model.getZoom ( ) ; } } } ) ; doRedraw ( ) ; }
Source:
public void setUp ( ) throws java.lang.Exception { android.content.Context context = android.support.test.InstrumentationRegistry.getContext ( ) ; mFakeClock = new com.android.server.timezone.PackageTrackerTest.FakeClockHelper ( ) ; mMockConfigHelper = org.mockito.Mockito.mock ( com.android.server.timezone.ConfigHelper.class ) ; mMockPackageManagerHelper = org.mockito.Mockito.mock ( com.android.server.timezone.PackageManagerHelper.class ) ; mPackageStatusStorage = new com.android.server.timezone.PackageStatusStorage ( context ) ; mFakeIntentHelper = new com.android.server.timezone.PackageTrackerTest.FakeIntentHelper ( ) ; mPackageTracker = new com.android.server.timezone.PackageTracker ( mFakeClock , mMockConfigHelper , mMockPackageManagerHelper , mPackageStatusStorage , mFakeIntentHelper ) ; }

Target:
public void setUp ( ) throws java.lang.Exception { android.content.Context context = android.support.test.InstrumentationRegistry.getContext ( ) ; mFakeClock = new com.android.server.timezone.PackageTrackerTest.FakeClockHelper ( ) ; mMockConfigHelper = org.mockito.Mockito.mock ( com.android.server.timezone.ConfigHelper.class ) ; mMockPackageManagerHelper = org.mockito.Mockito.mock ( com.android.server.timezone.PackageManagerHelper.class ) ; mPackageStatusStorage = new com.android.server.timezone.PackageStatusStorage ( context.getFilesDir ( ) ) ; mFakeIntentHelper = new com.android.server.timezone.PackageTrackerTest.FakeIntentHelper ( ) ; mPackageTracker = new com.android.server.timezone.PackageTracker ( mFakeClock , mMockConfigHelper , mMockPackageManagerHelper , mPackageStatusStorage , mFakeIntentHelper ) ; }
Source:
public final short short_literal ( ) throws org.jf.smali.RecognitionException { short value = 0 ; org.antlr.runtime.tree.CommonTree SHORT_LITERAL206 = null ; try { { SHORT_LITERAL206 = ( ( org.antlr.runtime.tree.CommonTree ) ( match ( input , org.jf.smali.smaliTreeWalker.SHORT_LITERAL , org.jf.smali.smaliTreeWalker.FOLLOW_SHORT_LITERAL_in_short_literal3468 ) ) ) ; value = org.jf.smali.LiteralTools.parseShort ( ( SHORT_LITERAL206 != null ? SHORT_LITERAL206.getText ( ) : null ) ) ; } } catch ( org.jf.smali.RecognitionException re ) { reportError ( re ) ; recover ( input , re ) ; } finally { } return value ; }

Target:
public final float float_literal ( ) throws org.jf.smali.RecognitionException { float value = 0.0F ; org.antlr.runtime.tree.CommonTree FLOAT_LITERAL213 = null ; try { { FLOAT_LITERAL213 = ( ( org.antlr.runtime.tree.CommonTree ) ( match ( input , org.jf.smali.smaliTreeWalker.FLOAT_LITERAL , org.jf.smali.smaliTreeWalker.FOLLOW_FLOAT_LITERAL_in_float_literal3555 ) ) ) ; value = org.jf.smali.LiteralTools.parseFloat ( ( FLOAT_LITERAL213 != null ? FLOAT_LITERAL213.getText ( ) : null ) ) ; } } catch ( org.jf.smali.RecognitionException re ) { reportError ( re ) ; recover ( input , re ) ; } finally { } return value ; }
Source:
public boolean equals ( java.lang.Object o ) { if ( ( this ) == o ) return true ; if ( ( o == null ) || ( ( getClass ( ) ) != ( o.getClass ( ) ) ) ) return false ; com.android.builder.internal.BaseConfigImpl that = ( ( com.android.builder.internal.BaseConfigImpl ) ( o ) ) ; return mBuildConfigLines.equals ( that.mBuildConfigLines ) ; }

Target:
public boolean equals ( java.lang.Object o ) { if ( ( this ) == o ) return true ; if ( ( o == null ) || ( ( getClass ( ) ) != ( o.getClass ( ) ) ) ) return false ; com.android.builder.internal.BaseConfigImpl that = ( ( com.android.builder.internal.BaseConfigImpl ) ( o ) ) ; if ( ! ( mBuildConfigLines.equals ( that.mBuildConfigLines ) ) ) return false ; if ( ! ( mProguardFiles.equals ( that.mProguardFiles ) ) ) return false ; return true ; }
Source:
private void checkSuccess ( java.util.Map < java.lang.String , java.lang.String > replacements ) throws java.lang.Exception { java.io.InputStream xmlStream = getReplacedStream ( replacements ) ; java.io.ByteArrayOutputStream baos = new java.io.ByteArrayOutputStream ( ) ; java.net.URL location = com.android.dvlib.DeviceSchemaTest.class . getResource ( "." ) ; java.io.File parent = new java.io.File ( location.toURI ( ) ) ; assertTrue ( com.android.dvlib.DeviceSchema.validate ( xmlStream , baos , parent ) ) ; assertTrue ( baos.toString ( ) . trim ( ) . matches ( "" ) ) ; }

Target:
private void checkSuccess ( java.util.Map < java.lang.String , java.lang.String > replacements ) throws java.lang.Exception { java.io.InputStream xmlStream = com.android.dvlib.DeviceSchemaTest.getReplacedStream ( replacements ) ; java.io.ByteArrayOutputStream baos = new java.io.ByteArrayOutputStream ( ) ; assertTrue ( com.android.dvlib.DeviceSchema.validate ( xmlStream , baos , null ) ) ; assertTrue ( baos.toString ( ) . trim ( ) . matches ( "" ) ) ; }
Source:
private synchronized boolean isActiveDevice ( android.bluetooth.BluetoothDevice device ) { throw new java.lang.IllegalStateException ( "Implement me" ) ; }

Target:
private void removeStateMachine ( android.bluetooth.BluetoothDevice device ) { synchronized ( mStateMachines ) { com.android.bluetooth.hearingaid.HearingAidStateMachine sm = mStateMachines.get ( device ) ; if ( sm == null ) { android.util.Log.w ( com.android.bluetooth.hearingaid.HearingAidService.TAG , ( ( "removeStateMachine: device " + device ) + " does not have a state machine" ) ) ; return ; } android.util.Log.i ( com.android.bluetooth.hearingaid.HearingAidService.TAG , ( "removeStateMachine: removing state machine for device: " + device ) ) ; sm.doQuit ( ) ; sm.cleanup ( ) ; mStateMachines.remove ( device ) ; } }
Source:
protected boolean willBeKept ( com.android.tv.dvr.ScheduledRecording schedule ) { return ( ( schedule.getEndTimeMs ( ) ) > ( java.lang.System.currentTimeMillis ( ) ) ) && ( ( ( ( schedule.getState ( ) ) == ( com.android.tv.dvr.ScheduledRecording.STATE_RECORDING_IN_PROGRESS ) ) || ( ( schedule.getState ( ) ) == ( com.android.tv.dvr.ScheduledRecording.STATE_RECORDING_NOT_STARTED ) ) ) || ( ( schedule.getState ( ) ) == ( com.android.tv.dvr.ScheduledRecording.STATE_RECORDING_CANCELED ) ) ) ; }

Target:
protected boolean willBeKept ( com.android.tv.dvr.data.ScheduledRecording schedule ) { return ( ( schedule.getEndTimeMs ( ) ) > ( java.lang.System.currentTimeMillis ( ) ) ) && ( ( ( ( schedule.getState ( ) ) == ( com.android.tv.dvr.data.ScheduledRecording.STATE_RECORDING_IN_PROGRESS ) ) || ( ( schedule.getState ( ) ) == ( com.android.tv.dvr.data.ScheduledRecording.STATE_RECORDING_NOT_STARTED ) ) ) || ( ( schedule.getState ( ) ) == ( com.android.tv.dvr.data.ScheduledRecording.STATE_RECORDING_CANCELED ) ) ) ; }
Source:
public void testHugeZipFile ( ) throws java.io.IOException { int expectedEntryCount = ( 64 * 1024 ) - 1 ; java.io.File f = createHugeZipFile ( expectedEntryCount ) ; java.util.zip.ZipFile zipFile = new java.util.zip.ZipFile ( f ) ; int entryCount = 0 ; for ( java.util.Enumeration < ? extends java.util.zip.ZipEntry > e = zipFile.entries ( ) ; e.hasMoreElements ( ) ; ) { java.util.zip.ZipEntry zipEntry = e.nextElement ( ) ; ++ entryCount ; } assertEquals ( expectedEntryCount , entryCount ) ; zipFile.close ( ) ; }

Target:
public void testZipFileLargerThan2GiB ( ) throws java.io.IOException { if ( false ) { java.io.File f = createZipFile ( 1024 , ( ( 3 * 1024 ) * 1024 ) ) ; java.util.zip.ZipFile zipFile = new java.util.zip.ZipFile ( f ) ; int entryCount = 0 ; for ( java.util.Enumeration < ? extends java.util.zip.ZipEntry > e = zipFile.entries ( ) ; e.hasMoreElements ( ) ; ) { java.util.zip.ZipEntry zipEntry = e.nextElement ( ) ; ++ entryCount ; } assertEquals ( 1024 , entryCount ) ; zipFile.close ( ) ; } }
Source:
void start ( final android.os.Bundle icicle , final android.content.Intent intent ) { boolean noCrashRecovery = intent.getBooleanExtra ( com.android.browser.Controller.NO_CRASH_RECOVERY , false ) ; if ( ( icicle != null ) || noCrashRecovery ) { doStart ( icicle , intent , false ) ; } else { mCrashRecoveryHandler.startRecovery ( intent ) ; } }

Target:
public void onSaveInstanceState ( android.os.Bundle outState ) { android.os.Bundle saveState = createSaveState ( ) ; mCrashRecoveryHandler.writeState ( saveState ) ; mSettings.setLastRunPaused ( true ) ; }
Source:
public com.android.sched.vfs.OutputVFile createFile ( @ javax.annotation.Nonnull com.android.jack.library.FileType fileType , @ javax.annotation.Nonnull com.android.sched.vfs.VPath typePath ) throws com.android.sched.util.file.CannotCreateFileException { putProperty ( fileType.getPropertyPrefix ( ) , java.lang.String.valueOf ( true ) ) ; addFileType ( fileType ) ; typePath.addSuffix ( fileType.getFileExtension ( ) ) ; return outputVDir.createOutputVFile ( typePath ) ; }

Target:
public com.android.sched.vfs.OutputVFile createFile ( @ javax.annotation.Nonnull com.android.jack.library.FileType fileType , @ javax.annotation.Nonnull com.android.sched.vfs.VPath typePath ) throws com.android.sched.util.file.CannotCreateFileException { putProperty ( fileType.getPropertyPrefix ( ) , java.lang.String.valueOf ( true ) ) ; addFileType ( fileType ) ; com.android.sched.vfs.VPath clonedPath = typePath.clone ( ) ; clonedPath.addSuffix ( fileType.getFileExtension ( ) ) ; return outputVDir.createOutputVFile ( clonedPath ) ; }
Source:
public void checkValue ( @ javax.annotation.Nonnull com.android.sched.util.codec.CodecContext context , @ javax.annotation.Nonnull java.lang.String data ) throws com.android.sched.util.codec.CheckingException { if ( ! ( com.android.jack.util.NamingTools.isFullMethodName ( data ) ) ) { throw new com.android.sched.util.codec.CheckingException ( ( ( ( ( "The value must be " + ( getUsage ( ) ) ) + " but is '" ) + data ) + "'" ) ) ; } }

Target:
public void checkValue ( @ javax.annotation.Nonnull com.android.sched.util.codec.CodecContext context , @ javax.annotation.Nonnull com.android.jack.util.MethodNameCodec.MethodNameValue data ) { }
Source:
public static java.lang.invoke.MethodHandle spreadInvoker ( java.lang.invoke.MethodType type , int leadingArgCount ) { if ( ( leadingArgCount < 0 ) || ( leadingArgCount > ( type.parameterCount ( ) ) ) ) throw java.lang.invoke.MethodHandleStatics.newIllegalArgumentException ( "bad argument count" , leadingArgCount ) ; type = type.asSpreaderType ( java.lang.Object [ ] . class , ( ( type.parameterCount ( ) ) - leadingArgCount ) ) ; throw new java.lang.UnsupportedOperationException ( "MethodHandles.spreadInvoker is not implemented" ) ; }

Target:
public static java.lang.invoke.MethodHandle spreadInvoker ( java.lang.invoke.MethodType type , int leadingArgCount ) { if ( ( leadingArgCount < 0 ) || ( leadingArgCount > ( type.parameterCount ( ) ) ) ) throw java.lang.invoke.MethodHandleStatics.newIllegalArgumentException ( "bad argument count" , leadingArgCount ) ; java.lang.invoke.MethodHandle invoker = java.lang.invoke.MethodHandles.invoker ( type ) ; int spreadArgCount = ( type.parameterCount ( ) ) - leadingArgCount ; invoker = invoker.asSpreader ( java.lang.Object [ ] . class , spreadArgCount ) ; return invoker ; }
Source:
public final byte [ ] getData ( ) { if ( android.support.v8.renderscript.RenderScript.shouldThunk ( ) ) { return mN.getData ( ) ; } return mData ; }

Target:
public void addF32 ( android.support.v8.renderscript.Float4 v ) { if ( android.support.v8.renderscript.RenderScript.shouldThunk ( ) ) { mN.addF32 ( v ) ; return ; } addF32 ( v.x ) ; addF32 ( v.y ) ; addF32 ( v.z ) ; addF32 ( v.w ) ; }
Source:
private void removePbapNotification ( int id ) { android.app.NotificationManager nm = ( ( android.app.NotificationManager ) ( getSystemService ( Context.NOTIFICATION_SERVICE ) ) ) ; nm.cancel ( id ) ; }

Target:
public synchronized void onAcceptFailed ( ) { android.util.Log.w ( com.android.bluetooth.pbap.BluetoothPbapService.TAG , "PBAP server socket accept thread failed. Restarting the server socket" ) ; if ( ( mWakeLock ) != null ) { mWakeLock.release ( ) ; mWakeLock = null ; } cleanUpServerSocket ( ) ; if ( ( mSessionStatusHandler ) != null ) { mSessionStatusHandler.removeCallbacksAndMessages ( null ) ; } mSessionStatusHandler.sendMessage ( mSessionStatusHandler.obtainMessage ( com.android.bluetooth.pbap.BluetoothPbapService.START_LISTENER ) ) ; }
Source:
public void setDisconnected ( java.lang.String callId , android.telecom.DisconnectCause disconnectCause ) { if ( mConnectionById.containsKey ( callId ) ) { findConnectionForAction ( callId , "setDisconnected" ) . setDisconnected ( disconnectCause ) ; } else { findConferenceForAction ( callId , "setDisconnected" ) . setDisconnected ( disconnectCause ) ; } }

Target:
public void setDisconnected ( java.lang.String callId , android.telecom.DisconnectCause disconnectCause , android.telecom.Logging.Session.Info sessionInfo ) { if ( mConnectionById.containsKey ( callId ) ) { findConnectionForAction ( callId , "setDisconnected" ) . setDisconnected ( disconnectCause ) ; } else { findConferenceForAction ( callId , "setDisconnected" ) . setDisconnected ( disconnectCause ) ; } }
Source:
public java.util.ArrayList < ? extends com.android.tools.idea.run.GoogleCloudTestingConfiguration > getCustomConfigurationsFromStorage ( org.jetbrains.android.facet.AndroidFacet facet ) { java.util.List < com.google.gct.testing.GoogleCloudTestingPersistentConfiguration > googleCloudTestingPersistentConfigurations = com.google.gct.testing.GoogleCloudTestingCustomPersistentConfigurations.getInstance ( facet.getModule ( ) ) . getState ( ) . myGoogleCloudTestingPersistentConfigurations ; return com.google.common.collect.Lists.newArrayList ( com.google.gct.testing.GoogleCloudTestingConfigurationFactoryImpl.deserializeConfigurations ( googleCloudTestingPersistentConfigurations , true , facet ) ) ; }

Target:
public java.util.ArrayList < ? extends com.android.tools.idea.run.GoogleCloudTestingConfiguration > getTestingConfigurations ( org.jetbrains.android.facet.AndroidFacet facet ) { java.util.List < com.google.gct.testing.GoogleCloudTestingPersistentConfiguration > googleCloudTestingPersistentConfigurations = com.google.gct.testing.GoogleCloudTestingCustomPersistentConfigurations.getInstance ( facet.getModule ( ) ) . getState ( ) . myGoogleCloudTestingPersistentConfigurations ; return com.google.common.collect.Lists.newArrayList ( com.google.common.collect.Iterables.concat ( com.google.gct.testing.GoogleCloudTestingConfigurationFactoryImpl.deserializeConfigurations ( googleCloudTestingPersistentConfigurations , true , facet ) , getDefaultConfigurations ( facet ) ) ) ; }
Source:
public WifiScanner.ScanData [ ] getScanResults ( boolean flush ) { synchronized ( com.android.server.wifi.WifiNative.sLock ) { android.net.wifi.WifiScanner [ ] sd = null ; if ( isHalStarted ( ) ) { sd = com.android.server.wifi.WifiNative.getScanResultsNative ( com.android.server.wifi.WifiNative.sWlan0Index , flush ) ; } if ( sd != null ) { return sd ; } else { return new android.net.wifi.WifiScanner.ScanData [ 0 ] ; } } }

Target:
public WifiScanner.ScanData [ ] getScanResults ( boolean flush ) { if ( com.android.server.wifi.WifiNative.HIDL_VENDOR_ENABLE ) { return mWifiVendorHal.getScanResults ( ) ; } else { synchronized ( com.android.server.wifi.WifiNative.sLock ) { android.net.wifi.WifiScanner [ ] sd = null ; if ( isHalStarted ( ) ) { sd = com.android.server.wifi.WifiNative.getScanResultsNative ( com.android.server.wifi.WifiNative.sWlan0Index , flush ) ; } if ( sd != null ) { return sd ; } else { return new android.net.wifi.WifiScanner.ScanData [ 0 ] ; } } } }
Source:
public com.android.ide.common.layoutlib.LayoutLibrary getLayoutLibrary ( ) { com.android.sdklib.IAndroidTarget target = com.android.ide.eclipse.adt.internal.sdk.Sdk.getCurrent ( ) . getTarget ( mEditedFile.getProject ( ) ) ; if ( target != null ) { com.android.ide.eclipse.adt.internal.sdk.AndroidTargetData data = com.android.ide.eclipse.adt.internal.sdk.Sdk.getCurrent ( ) . getTargetData ( target ) ; if ( data != null ) { return data.getLayoutLibrary ( ) ; } } return null ; }

Target:
public com.android.ide.common.layoutlib.LayoutLibrary getLayoutLibrary ( ) { return getReadyLayoutLib ( false ) ; }
Source:
public java.lang.String getText ( java.lang.Object element ) { if ( element instanceof com.android.ide.eclipse.adt.internal.editors.layout.gle2.CanvasViewInfo ) { element = ( ( com.android.ide.eclipse.adt.internal.editors.layout.gle2.CanvasViewInfo ) ( element ) ) . getUiViewKey ( ) ; } if ( element instanceof com.android.ide.eclipse.adt.internal.editors.uimodel.UiElementNode ) { com.android.ide.eclipse.adt.internal.editors.uimodel.UiElementNode node = ( ( com.android.ide.eclipse.adt.internal.editors.uimodel.UiElementNode ) ( element ) ) ; return node.getShortDescription ( ) ; } return element == null ? "(null)" : element.toString ( ) ; }

Target:
public java.lang.String getText ( java.lang.Object element ) { if ( element instanceof com.android.ide.eclipse.adt.internal.editors.layout.gle2.CanvasViewInfo ) { element = ( ( com.android.ide.eclipse.adt.internal.editors.layout.gle2.CanvasViewInfo ) ( element ) ) . getUiViewNode ( ) ; } if ( element instanceof com.android.ide.eclipse.adt.internal.editors.uimodel.UiElementNode ) { com.android.ide.eclipse.adt.internal.editors.uimodel.UiElementNode node = ( ( com.android.ide.eclipse.adt.internal.editors.uimodel.UiElementNode ) ( element ) ) ; return node.getShortDescription ( ) ; } return element == null ? "(null)" : element.toString ( ) ; }
Source:
public static java.util.List < java.lang.Integer > getInts ( android.security.keymaster.KeyCharacteristics keyCharacteristics , int tag ) { java.util.List < java.lang.Integer > result = new java.util.ArrayList < java.lang.Integer > ( ) ; result.addAll ( keyCharacteristics.hwEnforced.getInts ( tag ) ) ; result.addAll ( keyCharacteristics.swEnforced.getInts ( tag ) ) ; return result ; }

Target:
public static int [ ] getKeymasterDigestsFromJcaDigestAlgorithms ( java.lang.String [ ] jcaDigestAlgorithms ) { if ( ( jcaDigestAlgorithms == null ) || ( ( jcaDigestAlgorithms.length ) == 0 ) ) { return libcore.util.EmptyArray.INT ; } int [ ] result = new int [ jcaDigestAlgorithms.length ] ; int offset = 0 ; for ( java.lang.String jcaDigestAlgorithm : jcaDigestAlgorithms ) { result [ offset ] = android.security.KeymasterUtils.getKeymasterDigestFromJcaDigestAlgorithm ( jcaDigestAlgorithm ) ; offset ++ ; } return result ; }
Source:
public static java.io.File getInputFile ( java.lang.String filepath ) throws com.android.apkbuilder.ApkBuilder.ApkCreationException { java.io.File f = new java.io.File ( filepath ) ; if ( f.isDirectory ( ) ) { throw new com.android.apkbuilder.ApkBuilder.ApkCreationException ( ( filepath + " is a directory!" ) ) ; } if ( f.exists ( ) ) { if ( ( f.canRead ( ) ) == false ) { throw new com.android.apkbuilder.ApkBuilder.ApkCreationException ( ( "Cannot read " + filepath ) ) ; } } else { throw new com.android.apkbuilder.ApkBuilder.ApkCreationException ( ( filepath + " does not exists!" ) ) ; } return f ; }

Target:
public static java.io.File getInputFile ( java.lang.String filepath ) throws com.android.apkbuilder.internal.ApkBuilderHelper.ApkCreationException { java.io.File f = new java.io.File ( filepath ) ; if ( f.isDirectory ( ) ) { throw new com.android.apkbuilder.internal.ApkBuilderHelper.ApkCreationException ( ( filepath + " is a directory!" ) ) ; } if ( f.exists ( ) ) { if ( ( f.canRead ( ) ) == false ) { throw new com.android.apkbuilder.internal.ApkBuilderHelper.ApkCreationException ( ( "Cannot read " + filepath ) ) ; } } else { throw new com.android.apkbuilder.internal.ApkBuilderHelper.ApkCreationException ( ( filepath + " does not exists!" ) ) ; } return f ; }
Source:
void setSite ( com.android.ahat.heapdump.Site site ) { mSite = site ; }

Target:
void initialize ( com.android.ahat.heapdump.AhatSnapshot snapshot , com.android.tools.perflib.heap.Instance inst , com.android.ahat.heapdump.Site site ) { mSize = new com.android.ahat.heapdump.Size ( inst.getSize ( ) , 0 ) ; mHeap = snapshot.getHeap ( inst.getHeap ( ) . getName ( ) ) ; com.android.tools.perflib.heap.ClassObj clsObj = inst.getClassObj ( ) ; if ( clsObj != null ) { mClassObj = snapshot.findClassObj ( clsObj.getId ( ) ) ; } mSite = site ; }
Source:
public void setHorizontalScrollbarOverlay ( final boolean overlay ) { if ( checkNeedsPost ( ) ) { mRunQueue.addTask ( new java.lang.Runnable ( ) { @ java.lang.Override public void run ( ) { setHorizontalScrollbarOverlay ( overlay ) ; } } ) ; return ; } mAwContents.setHorizontalScrollbarOverlay ( overlay ) ; }

Target:
public void onSizeChanged ( final int w , final int h , final int ow , final int oh ) { if ( checkNeedsPost ( ) ) { mRunQueue.addTask ( new java.lang.Runnable ( ) { @ java.lang.Override public void run ( ) { onSizeChanged ( w , h , ow , oh ) ; } } ) ; return ; } mAwContents.onSizeChanged ( w , h , ow , oh ) ; }
Source:
void addScanResult ( ) { if ( mScanEvents.isEmpty ( ) ) { return ; } com.android.bluetooth.btservice.BluetoothProto.ScanEvent curr = mScanEvents.get ( ( ( mScanEvents.size ( ) ) - 1 ) ) ; curr.setNumberResults ( ( ( curr.getNumberResults ( ) ) + 1 ) ) ; }

Target:
void addScanEvent ( com.android.bluetooth.BluetoothMetricsProto.ScanEvent event ) { synchronized ( mScanEvents ) { if ( ( mScanEvents.size ( ) ) == ( com.android.bluetooth.gatt.GattService.NUM_SCAN_EVENTS_KEPT ) ) { mScanEvents.remove ( 0 ) ; } mScanEvents.add ( event ) ; } }
Source:
private void executeCompile ( boolean force ) throws java.lang.Exception { java.util.List < java.lang.String > command = new java.util.ArrayList < > ( java.util.Arrays.asList ( "shell" , "cmd" , "package" , "compile" , "-m" , "speed-profile" ) ) ; if ( force ) { command.add ( "-f" ) ; } command.add ( android.cts.compilation.AdbRootDependentCompilationTest.APPLICATION_PACKAGE ) ; java.lang.String [ ] commandArray = command.toArray ( new java.lang.String [ 0 ] ) ; assertEquals ( "Success" , executeAdbCommand ( 1 , commandArray ) [ 0 ] ) ; }

Target:
private void executeCompile ( boolean force , java.lang.String filter ) throws java.lang.Exception { java.util.List < java.lang.String > command = new java.util.ArrayList < > ( java.util.Arrays.asList ( "shell" , "cmd" , "package" , "compile" , "-m" , filter ) ) ; if ( force ) { command.add ( "-f" ) ; } command.add ( android.cts.compilation.AdbRootDependentCompilationTest.APPLICATION_PACKAGE ) ; java.lang.String [ ] commandArray = command.toArray ( new java.lang.String [ 0 ] ) ; assertEquals ( "Success" , executeAdbCommand ( 1 , commandArray ) [ 0 ] ) ; }
Source:
public android.app.admin.DevicePolicyManager getParentProfileInstance ( android.content.pm.UserInfo uInfo ) { mContext.checkSelfPermission ( android.app.admin.android.Manifest.permission ) ; if ( ! ( uInfo.isManagedProfile ( ) ) ) { throw new java.lang.SecurityException ( ( ( "The user " + ( uInfo.id ) ) + " does not have a parent profile." ) ) ; } return new android.app.admin.DevicePolicyManager ( mContext , true ) ; }

Target:
public void setPermissionPolicy ( @ android.annotation.NonNull android.content.ComponentName admin , int policy ) { throwIfParentInstance ( "setPermissionPolicy" ) ; try { mService.setPermissionPolicy ( admin , mContext.getPackageName ( ) , policy ) ; } catch ( android.os.RemoteException re ) { throw re.rethrowFromSystemServer ( ) ; } }
Source:
public static boolean hideEnhanced4gLteSettings ( android.content.Context context , android.os.PersistableBundle carrierConfig ) { return ( ! ( ( com.android.ims.ImsManager.isVolteEnabledByPlatform ( context ) ) && ( com.android.ims.ImsManager.isVolteProvisionedOnDevice ( context ) ) ) ) || ( carrierConfig.getBoolean ( CarrierConfigManager.KEY_HIDE_ENHANCED_4G_LTE_BOOL ) ) ; }

Target:
private boolean is4gLtePrefEnabled ( android.os.PersistableBundle carrierConfig ) { return ( ( ( ( mTelephonyManager.getCallState ( ) ) == ( android.telephony.TelephonyManager.CALL_STATE_IDLE ) ) && ( ( mImsMgr ) != null ) ) && ( mImsMgr.isNonTtyOrTtyOnVolteEnabled ( ) ) ) && ( carrierConfig.getBoolean ( CarrierConfigManager.KEY_EDITABLE_ENHANCED_4G_LTE_BOOL ) ) ; }
Source:
public boolean isDirty ( ) { for ( com.android.ide.eclipse.adt.internal.editors.uimodel.UiAttributeNode ui_attr : getInternalUiAttributes ( ) . values ( ) ) { if ( ui_attr.isDirty ( ) ) { return true ; } } for ( com.android.ide.eclipse.adt.internal.editors.uimodel.UiAttributeNode ui_attr : mUnknownUiAttributes ) { if ( ui_attr.isDirty ( ) ) { return true ; } } return false ; }

Target:
public boolean isDirty ( ) { for ( com.android.ide.eclipse.adt.internal.editors.uimodel.UiAttributeNode uiAttr : getInternalUiAttributes ( ) . values ( ) ) { if ( uiAttr.isDirty ( ) ) { return true ; } } for ( com.android.ide.eclipse.adt.internal.editors.uimodel.UiAttributeNode uiAttr : mUnknownUiAttributes ) { if ( uiAttr.isDirty ( ) ) { return true ; } } return false ; }
Source:
public boolean getDataEnabled ( int subId ) { boolean retVal = false ; try { com.android.internal.telephony.ITelephony telephony = getITelephony ( ) ; if ( telephony != null ) retVal = telephony.getDataEnabled ( subId ) ; } catch ( android.os.RemoteException e ) { android.util.Log.e ( android.telephony.TelephonyManager.TAG , "Error calling ITelephony#getDataEnabled" , e ) ; } catch ( java.lang.NullPointerException e ) { } return retVal ; }

Target:
public android.telephony.ims.aidl.IImsRegistration getImsRegistration ( int slotIndex , int feature ) { try { com.android.internal.telephony.ITelephony telephony = getITelephony ( ) ; if ( telephony != null ) { return telephony.getImsRegistration ( slotIndex , feature ) ; } } catch ( android.os.RemoteException e ) { android.telephony.Rlog.e ( android.telephony.TelephonyManager.TAG , ( "getImsRegistration, RemoteException: " + ( e.getMessage ( ) ) ) ) ; } return null ; }
Source:
public boolean apply ( com.android.jack.ir.ast.JDefinedClassOrInterface clOrI ) { com.android.sched.util.location.Location location = clOrI.getLocation ( ) ; if ( location instanceof com.android.jack.library.TypeInInputLibraryLocation ) { com.android.jack.library.InputLibrary inputLibrary = ( ( com.android.jack.library.TypeInInputLibraryLocation ) ( location ) ) . getInputLibraryLocation ( ) . getInputLibrary ( ) ; if ( inputLibrary.containsFileType ( FileType.DEX ) ) { return false ; } } return true ; }

Target:
public boolean apply ( com.android.jack.ir.ast.JDefinedClassOrInterface clOrI ) { com.android.sched.util.location.Location location = clOrI.getLocation ( ) ; if ( location instanceof com.android.jack.library.TypeInInputLibraryLocation ) { com.android.jack.library.InputLibrary inputLibrary = ( ( com.android.jack.library.TypeInInputLibraryLocation ) ( location ) ) . getInputLibraryLocation ( ) . getInputLibrary ( ) ; if ( inputLibrary.containsFileType ( FileType.PREBUILT ) ) { return false ; } } return true ; }
Source:
private static java.lang.String connectDetail ( java.net.InetAddress inetAddress , int port , int timeoutMs , libcore.io.ErrnoException cause ) { java.lang.String detail = ( ( ( "failed to connect to " + inetAddress ) + " (port " ) + port ) + ")" ; if ( timeoutMs > 0 ) { detail += ( " after " + timeoutMs ) + "ms" ; } if ( cause != null ) { detail += ": " + ( cause.getMessage ( ) ) ; } return detail ; }

Target:
private static java.lang.String connectDetail ( java.net.InetAddress inetAddress , int port , int timeoutMs , android.system.ErrnoException cause ) { java.lang.String detail = ( ( ( "failed to connect to " + inetAddress ) + " (port " ) + port ) + ")" ; if ( timeoutMs > 0 ) { detail += ( " after " + timeoutMs ) + "ms" ; } if ( cause != null ) { detail += ": " + ( cause.getMessage ( ) ) ; } return detail ; }
Source:
private void handleEnterEmergencyCallbackMode ( android.os.Message msg ) { if ( com.android.internal.telephony.cdma.CDMAPhone.DBG ) { android.util.Log.d ( com.android.internal.telephony.cdma.CDMAPhone.LOG_TAG , ( "handleEnterEmergencyCallbackMode,mIsPhoneInEcmState= " + ( mIsPhoneInEcmState ) ) ) ; } if ( ( mIsPhoneInEcmState ) == false ) { mIsPhoneInEcmState = true ; sendEmergencyCallbackModeChange ( ) ; setSystemProperty ( TelephonyProperties.PROPERTY_INECM_MODE , "true" ) ; long delayInMillis = android.os.SystemProperties.getLong ( TelephonyProperties.PROPERTY_ECM_EXIT_TIMER , com.android.internal.telephony.cdma.CDMAPhone.DEFAULT_ECM_EXIT_TIMER_VALUE ) ; postDelayed ( mExitEcmRunnable , delayInMillis ) ; mWakeLock.acquire ( ) ; } }

Target:
private void handleEnterEmergencyCallbackMode ( android.os.Message msg ) { if ( com.android.internal.telephony.cdma.CDMAPhone.DBG ) { android.telephony.Rlog.d ( com.android.internal.telephony.cdma.CDMAPhone.LOG_TAG , ( "handleEnterEmergencyCallbackMode,mIsPhoneInEcmState= " + ( mIsPhoneInEcmState ) ) ) ; } if ( ( mIsPhoneInEcmState ) == false ) { mIsPhoneInEcmState = true ; sendEmergencyCallbackModeChange ( ) ; setSystemProperty ( TelephonyProperties.PROPERTY_INECM_MODE , "true" ) ; long delayInMillis = android.os.SystemProperties.getLong ( TelephonyProperties.PROPERTY_ECM_EXIT_TIMER , com.android.internal.telephony.cdma.CDMAPhone.DEFAULT_ECM_EXIT_TIMER_VALUE ) ; postDelayed ( mExitEcmRunnable , delayInMillis ) ; mWakeLock.acquire ( ) ; } }
Source:
void test ( ) { if ( ( status ) == ( READY ) ) { com.android.cts.verifier.notifications.MockListener.MockListener.setHints ( mContext , MockListener.HINT_HOST_DISABLE_CALL_EFFECTS ) ; status = RETEST ; } else { com.android.cts.verifier.notifications.MockListener.MockListener.probeListenerHints ( mContext , new com.android.cts.verifier.notifications.MockListener.MockListener.IntegerResultCatcher ( ) { @ java.lang.Override public void accept ( int result ) { if ( ( result & ( com.android.cts.verifier.notifications.MockListener.MockListener.HINT_HOST_DISABLE_CALL_EFFECTS ) ) == ( com.android.cts.verifier.notifications.MockListener.MockListener.HINT_HOST_DISABLE_CALL_EFFECTS ) ) { status = PASS ; } else { logFail ( ) ; status = FAIL ; } next ( ) ; } } ) ; } delay ( ) ; }

Target:
void test ( ) { if ( ( status ) == ( READY ) ) { com.android.cts.verifier.notifications.MockListener.MockListener.getInstance ( ) . requestListenerHints ( MockListener.HINT_HOST_DISABLE_CALL_EFFECTS ) ; status = RETEST ; } else { int result = com.android.cts.verifier.notifications.MockListener.MockListener.getInstance ( ) . getCurrentListenerHints ( ) ; if ( ( result & ( com.android.cts.verifier.notifications.MockListener.MockListener.HINT_HOST_DISABLE_CALL_EFFECTS ) ) != 0 ) { status = PASS ; next ( ) ; } else { logFail ( ) ; status = FAIL ; } } }
Source:
public java.lang.Boolean bluetoothHidSetReport ( @ com.googlecode.android_scripting.rpc.RpcParameter ( name = "deviceID" , description = "Name or MAC address of a bluetooth device." ) java.lang.String deviceID , @ com.googlecode.android_scripting.rpc.RpcParameter ( name = "type" ) java.lang.String type , @ com.googlecode.android_scripting.rpc.RpcParameter ( name = "report" ) java.lang.String report ) throws java.lang.Exception { android.bluetooth.BluetoothDevice device = com.googlecode.android_scripting.facade.bluetooth.BluetoothFacade.getDevice ( com.googlecode.android_scripting.facade.bluetooth.BluetoothHidFacade.sHidProfile.getConnectedDevices ( ) , deviceID ) ; com.googlecode.android_scripting.Log.d ( ( "type " + ( type.getBytes ( ) [ 0 ] ) ) ) ; return com.googlecode.android_scripting.facade.bluetooth.BluetoothHidFacade.sHidProfile.setReport ( device , type.getBytes ( ) [ 0 ] , report ) ; }

Target:
public java.lang.Boolean bluetoothHidSetReport ( @ com.googlecode.android_scripting.rpc.RpcParameter ( name = "deviceID" , description = "Name or MAC address of a bluetooth device." ) java.lang.String deviceID , @ com.googlecode.android_scripting.rpc.RpcParameter ( name = "type" ) java.lang.Integer type , @ com.googlecode.android_scripting.rpc.RpcParameter ( name = "report" ) java.lang.String report ) throws java.lang.Exception { android.bluetooth.BluetoothDevice device = com.googlecode.android_scripting.facade.bluetooth.BluetoothFacade.getDevice ( com.googlecode.android_scripting.facade.bluetooth.BluetoothHidFacade.sHidProfile.getConnectedDevices ( ) , deviceID ) ; com.googlecode.android_scripting.Log.d ( ( "type=" + type ) ) ; return com.googlecode.android_scripting.facade.bluetooth.BluetoothHidFacade.sHidProfile.setReport ( device , ( ( byte ) ( ( int ) ( type ) ) ) , report ) ; }
Source:
public java.lang.Class < ? > getEnclosingClass ( ) { java.lang.Class < ? > declaringClass = getDeclaringClass ( ) ; if ( declaringClass != null ) { return declaringClass ; } java.lang.reflect.AccessibleObject member = libcore.reflect.AnnotationAccess.getEnclosingMethodOrConstructor ( this ) ; if ( member != null ) { return ( ( java.lang.reflect.Member ) ( member ) ) . getDeclaringClass ( ) ; } return libcore.reflect.AnnotationAccess.getEnclosingClass ( this ) ; }

Target:
public java.lang.reflect.Constructor < ? > getEnclosingConstructor ( ) { if ( classNameImpliesTopLevel ( ) ) { return null ; } return getEnclosingConstructorNative ( ) ; }
Source:
public void setTimeZone ( java.lang.String timeZone ) { mRS.validate ( ) ; try { mRS.nScriptSetTimeZone ( getID ( mRS ) , timeZone.getBytes ( "UTF-8" ) ) ; } catch ( java.io.UnsupportedEncodingException e ) { throw new java.lang.RuntimeException ( e ) ; } }

Target:
public void setTimeZone ( java.lang.String timeZone ) { mRS.validate ( ) ; try { mRS.nScriptSetTimeZone ( getID ( mRS ) , timeZone.getBytes ( "UTF-8" ) , mUseIncSupp ) ; } catch ( java.io.UnsupportedEncodingException e ) { throw new java.lang.RuntimeException ( e ) ; } }
Source:
public boolean startWpsPinKeypad ( java.lang.String iface , java.lang.String pin ) { if ( android.text.TextUtils.isEmpty ( pin ) ) return false ; synchronized ( com.android.server.wifi.WifiNative.sLock ) { return doBooleanCommandNative ( ( ( ( "IFNAME=" + iface ) + " WPS_PIN any " ) + pin ) ) ; } }

Target:
public boolean startWpsPinKeypad ( java.lang.String iface , java.lang.String pin ) { if ( android.text.TextUtils.isEmpty ( pin ) ) return false ; if ( ( com.android.server.wifi.WifiNative.HIDL_P2P_ENABLE ) && ( ( mSupplicantP2pIfaceHal ) != null ) ) { return mSupplicantP2pIfaceHal.startWpsPinKeypad ( iface , pin ) ; } else { synchronized ( com.android.server.wifi.WifiNative.sLock ) { return doBooleanCommandNative ( ( ( ( "IFNAME=" + iface ) + " WPS_PIN any " ) + pin ) ) ; } } }
Source:
public static void notifyShowDialogToReportNotSpam ( android.content.Context context , java.lang.String normalizedNumber , java.lang.String countryIso , int callType ) { com.android.dialer.common.LogUtil.enterBlock ( "ShowBlockReportSpamDialogNotifier.notifyShowDialogToReportNotSpam" ) ; android.content.Intent intent = new android.content.Intent ( ) ; intent.setAction ( ShowBlockReportSpamDialogReceiver.ACTION_SHOW_DIALOG_TO_REPORT_NOT_SPAM ) ; intent.putExtra ( ShowBlockReportSpamDialogReceiver.EXTRA_NUMBER , normalizedNumber ) ; intent.putExtra ( ShowBlockReportSpamDialogReceiver.EXTRA_COUNTRY_ISO , countryIso ) ; intent.putExtra ( ShowBlockReportSpamDialogReceiver.EXTRA_CALL_TYPE , callType ) ; android.support.v4.content.LocalBroadcastManager.getInstance ( context ) . sendBroadcast ( intent ) ; }

Target:
public static void notifyShowDialogToReportNotSpam ( android.content.Context context , java.lang.String normalizedNumber , java.lang.String countryIso , int callType , com.android.dialer.logging.ReportingLocation.Type reportingLocation ) { com.android.dialer.common.LogUtil.enterBlock ( "ShowBlockReportSpamDialogNotifier.notifyShowDialogToReportNotSpam" ) ; android.content.Intent intent = new android.content.Intent ( ) ; intent.setAction ( ShowBlockReportSpamDialogReceiver.ACTION_SHOW_DIALOG_TO_REPORT_NOT_SPAM ) ; intent.putExtra ( ShowBlockReportSpamDialogReceiver.EXTRA_NUMBER , normalizedNumber ) ; intent.putExtra ( ShowBlockReportSpamDialogReceiver.EXTRA_COUNTRY_ISO , countryIso ) ; intent.putExtra ( ShowBlockReportSpamDialogReceiver.EXTRA_CALL_TYPE , callType ) ; intent.putExtra ( ShowBlockReportSpamDialogReceiver.EXTRA_REPORTING_LOCATION , reportingLocation ) ; android.support.v4.content.LocalBroadcastManager.getInstance ( context ) . sendBroadcast ( intent ) ; }
Source:
public boolean fullScroll ( int direction ) { boolean down = direction == ( android.view.View.FOCUS_DOWN ) ; int height = getHeight ( ) ; mTempRect.top = 0 ; mTempRect.bottom = height ; if ( down ) { int count = getChildCount ( ) ; if ( count > 0 ) { android.view.View view = getChildAt ( ( count - 1 ) ) ; mTempRect.bottom = view.getBottom ( ) ; mTempRect.top = ( mTempRect.bottom ) - height ; } } return scrollAndFocus ( direction , mTempRect.top , mTempRect.bottom ) ; }

Target:
public boolean fullScroll ( int direction ) { boolean down = direction == ( android.view.View.FOCUS_DOWN ) ; int height = getHeight ( ) ; mTempRect.top = 0 ; mTempRect.bottom = height ; if ( down ) { int count = getChildCount ( ) ; if ( count > 0 ) { android.view.View view = getChildAt ( ( count - 1 ) ) ; mTempRect.bottom = ( view.getBottom ( ) ) + ( mPaddingBottom ) ; mTempRect.top = ( mTempRect.bottom ) - height ; } } return scrollAndFocus ( direction , mTempRect.top , mTempRect.bottom ) ; }
Source:
private void checkFields ( com.android.jack.dx.io.ClassData classDataItem , com.android.jack.dx.io.ClassData candidateClassDataItem , com.android.jack.dx.io.ClassDef classDefItem ) throws com.android.jack.DifferenceFoundException { java.lang.String className = com.android.jack.DexComparator.getClassName ( referenceDexFile , classDefItem ) ; { com.android.jack.dx.io.ClassData [ ] instanceFields = classDataItem.getInstanceFields ( ) ; com.android.jack.dx.io.ClassData [ ] candidateInstanceFields = candidateClassDataItem.getInstanceFields ( ) ; handleFields ( instanceFields , candidateInstanceFields , className ) ; } { com.android.jack.dx.io.ClassData [ ] instanceFields = classDataItem.getStaticFields ( ) ; com.android.jack.dx.io.ClassData [ ] candidateInstanceFields = candidateClassDataItem.getStaticFields ( ) ; handleFields ( instanceFields , candidateInstanceFields , className ) ; } }

Target:
private void checkFields ( com.android.jack.dx.io.ClassData classDataItem , com.android.jack.dx.io.ClassData candidateClassDataItem , com.android.jack.dx.io.ClassDef classDefItem ) throws com.android.jack.DifferenceFoundException { java.lang.String className = classDefItem.getTypeName ( ) ; { com.android.jack.dx.io.ClassData [ ] instanceFields = classDataItem.getInstanceFields ( ) ; com.android.jack.dx.io.ClassData [ ] candidateInstanceFields = candidateClassDataItem.getInstanceFields ( ) ; handleFields ( instanceFields , candidateInstanceFields , className ) ; } { com.android.jack.dx.io.ClassData [ ] instanceFields = classDataItem.getStaticFields ( ) ; com.android.jack.dx.io.ClassData [ ] candidateInstanceFields = candidateClassDataItem.getStaticFields ( ) ; handleFields ( instanceFields , candidateInstanceFields , className ) ; } }
Source:
public void run ( ) { mBuilder = new android.app.AlertDialog.Builder ( mContext ) ; mBuilder.setPositiveButton ( R.string.year , mOnClickListener ) ; mDialog = mBuilder.show ( ) ; mButton = ( ( android.widget.Button ) ( mDialog.getWindow ( ) . findViewById ( R.id.button1 ) ) ) ; mButton.performClick ( ) ; }

Target:
public void run ( ) { mBuilder = new android.app.AlertDialog.Builder ( mContext ) ; mBuilder.setItems ( com.android.cts.stub.R.array.difficultyLevel , mOnClickListener ) ; mDialog = mBuilder.show ( ) ; mListView = mDialog.getListView ( ) ; }
Source:
public void onCreate ( android.os.Bundle savedInstanceState ) { super . onCreate ( savedInstanceState ) ; setContentView ( R.layout.main ) ; android.widget.TextView tv = ( ( android.widget.TextView ) ( findViewById ( R.id.dateText ) ) ) ; com.android.tests.basic.StringProvider stringProvider = new com.android.tests.basic.StringProvider ( ) ; tv.setText ( stringProvider.getString ( foo ) ) ; }

Target:
public void onCreate ( android.os.Bundle savedInstanceState ) { super . onCreate ( savedInstanceState ) ; setContentView ( R.layout.main ) ; android.widget.TextView tv = ( ( android.widget.TextView ) ( findViewById ( R.id.dateText ) ) ) ; tv.setText ( getStringProvider ( ) . getString ( foo ) ) ; }
Source:
public void requestUninstall_asyncSuccess ( ) throws java.lang.Exception { configureCallerHasPermission ( ) ; com.android.server.timezone.CheckToken token = createArbitraryToken ( ) ; byte [ ] tokenBytes = token.toByteArray ( ) ; com.android.server.timezone.RulesManagerServiceTest.TestCallback callback = new com.android.server.timezone.RulesManagerServiceTest.TestCallback ( ) ; org.junit.Assert.assertEquals ( RulesManager.SUCCESS , mRulesManagerService.requestUninstall ( tokenBytes , callback ) ) ; callback.assertNoResultReceived ( ) ; verifyNoInstallerCallsMade ( ) ; verifyNoPackageTrackerCallsMade ( ) ; configureStageUninstallExpectation ( true ) ; mFakeExecutor.simulateAsyncExecutionOfLastCommand ( ) ; verifyStageUninstallCalled ( ) ; verifyPackageTrackerCalled ( token , true ) ; callback.assertResultReceived ( Callback.SUCCESS ) ; }

Target:
public void requestUninstall_asyncSuccess ( ) throws java.lang.Exception { configureCallerHasPermission ( ) ; com.android.server.timezone.CheckToken token = createArbitraryToken ( ) ; byte [ ] tokenBytes = token.toByteArray ( ) ; com.android.server.timezone.RulesManagerServiceTest.TestCallback callback = new com.android.server.timezone.RulesManagerServiceTest.TestCallback ( ) ; org.junit.Assert.assertEquals ( RulesManager.SUCCESS , mRulesManagerService.requestUninstall ( tokenBytes , callback ) ) ; callback.assertNoResultReceived ( ) ; verifyNoInstallerCallsMade ( ) ; verifyNoPackageTrackerCallsMade ( ) ; configureStageUninstallExpectation ( TimeZoneDistroInstaller.UNINSTALL_SUCCESS ) ; mFakeExecutor.simulateAsyncExecutionOfLastCommand ( ) ; verifyStageUninstallCalled ( ) ; verifyPackageTrackerCalled ( token , true ) ; callback.assertResultReceived ( Callback.SUCCESS ) ; }
Source:
protected void internalSetUp ( ) throws java.lang.Exception { super . internalSetUp ( ) ; debuggeeWrapper = createDebuggeeWrapper ( ) ; beforeDebuggeeStart ( debuggeeWrapper ) ; startDebuggeeWrapper ( ) ; receiveInitialEvent ( ) ; debuggeeWrapper.vmMirror.adjustTypeLength ( ) ; logWriter.println ( "Adjusted VM-dependent type lengths" ) ; }

Target:
protected void internalSetUp ( ) throws java.lang.Exception { super . internalSetUp ( ) ; debuggeeWrapper = createDebuggeeWrapper ( ) ; beforeConnectionSetUp ( ) ; setUpDebuggeeWrapperConnection ( ) ; beforeDebuggeeStart ( ) ; startDebuggeeWrapper ( ) ; receiveInitialEvent ( ) ; debuggeeWrapper.vmMirror.adjustTypeLength ( ) ; logWriter.println ( "Adjusted VM-dependent type lengths" ) ; }
Source:
public void testGetDeviceId ( ) { java.lang.String deviceId = mTelephonyManager.getDeviceId ( ) ; int phoneType = mTelephonyManager.getPhoneType ( ) ; switch ( phoneType ) { case android.telephony.TelephonyManager.PHONE_TYPE_GSM : android.telephony.cts.TelephonyManagerTest.assertImeiDeviceId ( deviceId ) ; break ; case android.telephony.TelephonyManager.PHONE_TYPE_CDMA : android.telephony.cts.TelephonyManagerTest.assertMeidDeviceId ( deviceId ) ; break ; case android.telephony.TelephonyManager.PHONE_TYPE_NONE : assertNull ( deviceId ) ; assertMacAddressReported ( ) ; break ; default : throw new java.lang.IllegalArgumentException ( ( "Did you add a new phone type? " + phoneType ) ) ; } }

Target:
public void testGetDeviceId ( ) { java.lang.String deviceId = mTelephonyManager.getDeviceId ( ) ; int phoneType = mTelephonyManager.getPhoneType ( ) ; switch ( phoneType ) { case android.telephony.TelephonyManager.PHONE_TYPE_GSM : android.telephony.cts.TelephonyManagerTest.assertImeiDeviceId ( deviceId ) ; break ; case android.telephony.TelephonyManager.PHONE_TYPE_CDMA : android.telephony.cts.TelephonyManagerTest.assertMeidDeviceId ( deviceId ) ; break ; case android.telephony.TelephonyManager.PHONE_TYPE_NONE : assertNull ( deviceId ) ; assertHardwareId ( ) ; assertMacAddressReported ( ) ; break ; default : throw new java.lang.IllegalArgumentException ( ( "Did you add a new phone type? " + phoneType ) ) ; } }
Source:
public boolean matches ( java.lang.Object object ) { android.content.Intent intent = ( ( android.content.Intent ) ( object ) ) ; return ( NetworkScoreManager.ACTION_CUSTOM_ENABLE.equals ( intent.getAction ( ) ) ) && ( scorer.scorerResolveInfo.activityInfo.packageName.equals ( intent.getPackage ( ) ) ) ; }

Target:
public void testGetActiveScorer_recommendationsDisabled ( ) throws java.lang.Exception { setNetworkRecommendationPackageNames ( "package1" ) ; mockScoreNetworksGranted ( "package1" ) ; mockRecommendationServiceAvailable ( "package1" , 924 ) ; android.content.ContentResolver cr = mTargetContext.getContentResolver ( ) ; Settings.Global.putInt ( cr , Settings.Global.NETWORK_RECOMMENDATIONS_ENABLED , 0 ) ; final android.net.NetworkScorerAppManager.NetworkScorerAppData activeScorer = mNetworkScorerAppManager.getActiveScorer ( ) ; assertNull ( activeScorer ) ; }
Source:
public void TestKana ( ) throws java.io.IOException { long start = java.lang.System.currentTimeMillis ( ) ; new android.icu.dev.test.translit.RoundTripTest.Test ( "Katakana-Hiragana" ) . test ( android.icu.dev.test.translit.RoundTripTest.KATAKANA , ( ( ( "[" + ( android.icu.dev.test.translit.RoundTripTest.HIRAGANA ) ) + ( android.icu.dev.test.translit.RoundTripTest.LENGTH ) ) + "]" ) , ( ( ( "[" + ( android.icu.dev.test.translit.RoundTripTest.HALFWIDTH_KATAKANA ) ) + ( android.icu.dev.test.translit.RoundTripTest.LENGTH ) ) + "]" ) , this , new android.icu.dev.test.translit.RoundTripTest.Legal ( ) ) ; showElapsed ( start , "TestKana" ) ; }

Target:
public void TestKana ( ) throws java.io.IOException { long start = java.lang.System.currentTimeMillis ( ) ; new android.icu.dev.test.translit.RoundTripTest.TransliterationTest ( "Katakana-Hiragana" ) . test ( android.icu.dev.test.translit.RoundTripTest.KATAKANA , ( ( ( "[" + ( android.icu.dev.test.translit.RoundTripTest.HIRAGANA ) ) + ( android.icu.dev.test.translit.RoundTripTest.LENGTH ) ) + "]" ) , ( ( ( "[" + ( android.icu.dev.test.translit.RoundTripTest.HALFWIDTH_KATAKANA ) ) + ( android.icu.dev.test.translit.RoundTripTest.LENGTH ) ) + "]" ) , this , new android.icu.dev.test.translit.RoundTripTest.Legal ( ) ) ; showElapsed ( start , "TestKana" ) ; }