auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
public final void unregisterContentObserver ( android.database.ContentObserver observer ) { try { android.database.IContentObserver contentObserver = observer.releaseContentObserver ( ) ; if ( contentObserver != null ) { android.content.ContentResolver.getContentService ( ) . unregisterContentObserver ( contentObserver ) ; } } catch ( android.os.RemoteException e ) { } }

Target:
public final void unregisterContentObserver ( @ android.annotation.NonNull android.database.ContentObserver observer ) { com.android.internal.util.Preconditions.checkNotNull ( observer , "observer" ) ; try { android.database.IContentObserver contentObserver = observer.releaseContentObserver ( ) ; if ( contentObserver != null ) { android.content.ContentResolver.getContentService ( ) . unregisterContentObserver ( contentObserver ) ; } } catch ( android.os.RemoteException e ) { } }
Source:
public void testClearUsedByOtherApps ( ) { org.junit.Assert.assertTrue ( record ( mFooSplit2UsedByOtherApps0 ) ) ; org.junit.Assert.assertTrue ( mPackageDexUsage.clearUsedByOtherApps ( mFooSplit2UsedByOtherApps0.mPackageName ) ) ; com.android.server.pm.dex.PackageDexUsageTests.TestData noLongerUsedByOtherApps = new com.android.server.pm.dex.PackageDexUsageTests.TestData ( mFooSplit2UsedByOtherApps0.mPackageName , mFooSplit2UsedByOtherApps0.mDexFile , mFooSplit2UsedByOtherApps0.mOwnerUserId , mFooSplit2UsedByOtherApps0.mLoaderIsa , false , mFooSplit2UsedByOtherApps0.mPrimaryOrSplit ) ; assertPackageDexUsage ( noLongerUsedByOtherApps ) ; }

Target:
public void testClearUsedByOtherApps ( ) { org.junit.Assert.assertTrue ( record ( mFooSplit2UsedByOtherApps0 ) ) ; org.junit.Assert.assertTrue ( mPackageDexUsage.clearUsedByOtherApps ( mFooSplit2UsedByOtherApps0.mPackageName ) ) ; com.android.server.pm.dex.PackageDexUsageTests.TestData noLongerUsedByOtherApps = new com.android.server.pm.dex.PackageDexUsageTests.TestData ( mFooSplit2UsedByOtherApps0.mPackageName , mFooSplit2UsedByOtherApps0.mDexFile , mFooSplit2UsedByOtherApps0.mOwnerUserId , mFooSplit2UsedByOtherApps0.mLoaderIsa , false , mFooSplit2UsedByOtherApps0.mPrimaryOrSplit , mFooSplit2UsedByOtherApps0.mUsedBy ) ; assertPackageDexUsage ( noLongerUsedByOtherApps ) ; }
Source:
public java.util.List < com.android.builder.AndroidDependency > getFullDirectDependencies ( ) { if ( ( ( mTestedConfig ) != null ) && ( ( mTestedConfig.getType ( ) ) == ( com.android.builder.VariantConfiguration.Type.LIBRARY ) ) ) { java.util.List < com.android.builder.AndroidDependency > list = new java.util.ArrayList < com.android.builder.AndroidDependency > ( ( ( ( mDirectLibraryProjects.size ( ) ) + ( mTestedConfig.mDirectLibraryProjects.size ( ) ) ) + 1 ) ) ; list.addAll ( mDirectLibraryProjects ) ; list.add ( mTestedConfig.mOutput ) ; list.addAll ( mTestedConfig.mDirectLibraryProjects ) ; return list ; } return mDirectLibraryProjects ; }

Target:
public java.util.List < com.android.builder.AndroidDependency > getFullDirectDependencies ( ) { if ( ( ( mTestedConfig ) != null ) && ( ( mTestedConfig.getType ( ) ) == ( com.android.builder.VariantConfiguration.Type.LIBRARY ) ) ) { java.util.List < com.android.builder.AndroidDependency > list = com.google.common.collect.Lists.newArrayListWithExpectedSize ( ( ( ( mDirectLibraryProjects.size ( ) ) + ( mTestedConfig.mDirectLibraryProjects.size ( ) ) ) + 1 ) ) ; list.addAll ( mDirectLibraryProjects ) ; list.add ( mTestedConfig.mOutput ) ; list.addAll ( mTestedConfig.mDirectLibraryProjects ) ; return list ; } return mDirectLibraryProjects ; }
Source:
public static float scalb ( float f , int scaleFactor ) { return sun.misc.FpUtils.scalb ( f , scaleFactor ) ; }

Target:
public static float scalb ( float f , int scaleFactor ) { final int MAX_SCALE = ( ( ( sun.misc.FloatConsts.MAX_EXPONENT ) + ( - ( sun.misc.FloatConsts.MIN_EXPONENT ) ) ) + ( sun.misc.FloatConsts.SIGNIFICAND_WIDTH ) ) + 1 ; scaleFactor = java.lang.Math.max ( java.lang.Math.min ( scaleFactor , MAX_SCALE ) , ( - MAX_SCALE ) ) ; return ( ( float ) ( ( ( double ) ( f ) ) * ( java.lang.Math.powerOfTwoD ( scaleFactor ) ) ) ) ; }
Source:
public void tesNoSplitDelegateLastNoSharedLibraries ( ) { android.content.pm.ApplicationInfo ai = createMockApplicationInfo ( com.android.server.pm.dex.DexoptUtilsTest.DELEGATE_LAST_CLASS_LOADER_NAME , false , false ) ; java.lang.String [ ] contexts = com.android.server.pm.dex.DexoptUtils.getClassLoaderContexts ( ai , null ) ; org.junit.Assert.assertEquals ( 1 , contexts.length ) ; org.junit.Assert.assertEquals ( "DLC[]" , contexts [ 0 ] ) ; }

Target:
public void tesNoSplitDelegateLastNoSharedLibraries ( ) { android.content.pm.ApplicationInfo ai = createMockApplicationInfo ( com.android.server.pm.dex.DexoptUtilsTest.DELEGATE_LAST_CLASS_LOADER_NAME , false , false ) ; java.lang.String [ ] contexts = com.android.server.pm.dex.DexoptUtils.getClassLoaderContexts ( ai , null ) ; org.junit.Assert.assertEquals ( 1 , contexts.length ) ; org.junit.Assert.assertEquals ( "PCL[]" , contexts [ 0 ] ) ; }
Source:
public static java.io.File getTemplateLocation ( @ com.android.annotations.NonNull java.lang.String relativePath ) { java.io.File templateRoot = com.android.ide.eclipse.adt.internal.wizards.templates.TemplateHandler.getTemplateRootFolder ( ) ; if ( templateRoot != null ) { java.io.File templateFile = new java.io.File ( templateRoot , relativePath.replace ( '/' , java.io.File.separatorChar ) ) ; if ( templateFile.exists ( ) ) { return templateFile ; } } return null ; }

Target:
public com.android.ide.eclipse.adt.internal.wizards.templates.TemplateManager getManager ( ) { return mManager ; }
Source:
private static void checkService ( com.android.tools.lint.detector.api.XmlContext context , org.w3c.dom.Element element ) { if ( ( com.android.tools.lint.checks.SecurityDetector.getExported ( element ) ) && ( com.android.tools.lint.checks.SecurityDetector.isUnprotectedByPermission ( element ) ) ) { context.report ( com.android.tools.lint.checks.SecurityDetector.EXPORTED_SERVICE , element , context.getLocation ( element ) , "Exported service does not require permission" ) ; } }

Target:
private static void checkService ( com.android.tools.lint.detector.api.XmlContext context , org.w3c.dom.Element element ) { if ( ( ( com.android.tools.lint.checks.SecurityDetector.getExported ( element ) ) && ( com.android.tools.lint.checks.SecurityDetector.isUnprotectedByPermission ( element ) ) ) && ( ! ( com.android.tools.lint.checks.SecurityDetector.isWearableBindListener ( element ) ) ) ) { context.report ( com.android.tools.lint.checks.SecurityDetector.EXPORTED_SERVICE , element , context.getLocation ( element ) , "Exported service does not require permission" ) ; } }
Source:
public void run ( ) { mLayoutEditor.editXmlModel ( new java.lang.Runnable ( ) { public void run ( ) { deleteSelection ( "Remove" , mDragSelection ) ; } } ) ; }

Target:
public void dragFinished ( org.eclipse.swt.dnd.DragSourceEvent e ) { if ( ( e.detail ) == ( org.eclipse.swt.dnd.DND.DROP_MOVE ) ) { mLayoutEditor.wrapUndoEditXmlModel ( "Remove drag'n'drop source elements" , new java.lang.Runnable ( ) { public void run ( ) { deleteSelection ( "Remove" , mDragSelection ) ; } } ) ; } mDragSelection.clear ( ) ; mDragElements = null ; com.android.ide.eclipse.adt.internal.editors.layout.gle2.GlobalCanvasDragInfo.getInstance ( ) . stopDrag ( ) ; }
Source:
public int generateKey ( java.lang.String alias , android.security.keymaster.KeymasterArguments args , int uid , int flags , android.security.keymaster.KeyCharacteristics outCharacteristics ) { try { return mBinder.generateKey ( alias , args , uid , flags , outCharacteristics ) ; } catch ( android.os.RemoteException e ) { android.util.Log.w ( android.security.KeyStore.TAG , "Cannot connect to keystore" , e ) ; return android.security.KeyStore.SYSTEM_ERROR ; } }

Target:
public int generateKey ( java.lang.String alias , android.security.keymaster.KeymasterArguments args , byte [ ] entropy , int uid , int flags , android.security.keymaster.KeyCharacteristics outCharacteristics ) { try { return mBinder.generateKey ( alias , args , entropy , uid , flags , outCharacteristics ) ; } catch ( android.os.RemoteException e ) { android.util.Log.w ( android.security.KeyStore.TAG , "Cannot connect to keystore" , e ) ; return android.security.KeyStore.SYSTEM_ERROR ; } }
Source:
private void iccLockChanged ( boolean success ) { if ( success ) { mPinToggle.setChecked ( mToState ) ; } else { android.widget.Toast.makeText ( this , mRes.getString ( R.string.sim_lock_failed ) , Toast.LENGTH_SHORT ) . show ( ) ; } resetDialogState ( ) ; }

Target:
private void iccLockChanged ( boolean success ) { if ( success ) { mPinToggle.setChecked ( mToState ) ; } else { android.widget.Toast.makeText ( this , mRes.getString ( R.string.sim_lock_failed ) , Toast.LENGTH_SHORT ) . show ( ) ; } mPinToggle.setEnabled ( true ) ; resetDialogState ( ) ; }
Source:
public java.util.List < android.bluetooth.BluetoothDevice > getConnectedDevices ( ) { android.util.Log.v ( android.bluetooth.BluetoothInputHost.TAG , "getConnectedDevices()" ) ; if ( ( mService ) != null ) { try { return mService.getConnectedDevices ( ) ; } catch ( android.os.RemoteException e ) { android.util.Log.e ( android.bluetooth.BluetoothInputHost.TAG , e.toString ( ) ) ; } } else { android.util.Log.w ( android.bluetooth.BluetoothInputHost.TAG , "Proxy not attached to service" ) ; } return new java.util.ArrayList < android.bluetooth.BluetoothDevice > ( ) ; }

Target:
public java.util.List < android.bluetooth.BluetoothDevice > getConnectedDevices ( ) { android.util.Log.v ( android.bluetooth.BluetoothInputHost.TAG , "getConnectedDevices()" ) ; final android.bluetooth.IBluetoothInputHost service = mService ; if ( service != null ) { try { return service.getConnectedDevices ( ) ; } catch ( android.os.RemoteException e ) { android.util.Log.e ( android.bluetooth.BluetoothInputHost.TAG , e.toString ( ) ) ; } } else { android.util.Log.w ( android.bluetooth.BluetoothInputHost.TAG , "Proxy not attached to service" ) ; } return new java.util.ArrayList < android.bluetooth.BluetoothDevice > ( ) ; }
Source:
public boolean p2pExtListen ( boolean enable , int period , int interval ) { if ( enable && ( interval < period ) ) { return false ; } if ( ( com.android.server.wifi.WifiNative.HIDL_ENABLE ) && ( ( mSupplicantP2pIfaceHal ) != null ) ) { return mSupplicantP2pIfaceHal.configureExtListen ( enable , period , interval ) ; } else { return doBooleanCommand ( ( "P2P_EXT_LISTEN" + ( enable ? ( ( " " + period ) + " " ) + interval : "" ) ) ) ; } }

Target:
public boolean setP2pSsidPostfix ( java.lang.String postfix ) { if ( ( com.android.server.wifi.WifiNative.HIDL_P2P_ENABLE ) && ( ( mSupplicantP2pIfaceHal ) != null ) ) { return mSupplicantP2pIfaceHal.setSsidPostfix ( postfix ) ; } else { return doBooleanCommand ( ( "SET p2p_ssid_postfix " + postfix ) ) ; } }
Source:
synchronized void nAllocationRead ( int id , float [ ] d ) { validate ( ) ; rsnAllocationRead ( mContext , id , d ) ; }

Target:
synchronized void nAllocationRead2D ( int id , int xoff , int yoff , int mip , int face , int w , int h , java.lang.Object d , int sizeBytes , android.renderscript.Element.DataType dt ) { validate ( ) ; rsnAllocationRead2D ( mContext , id , xoff , yoff , mip , face , w , h , d , sizeBytes , dt.mID ) ; }
Source:
protected void setUp ( ) throws java.lang.Exception { super . setUp ( ) ; mAccountManager = ( ( android.accounts.AccountManager ) ( mContext.getSystemService ( Context.ACCOUNT_SERVICE ) ) ) ; clearAllAccountManagementDisabled ( ) ; com.android.cts.deviceandprofileowner.AccountUtilsTest.removeAllAccountsForType ( mAccountManager , com.android.cts.deviceandprofileowner.AccountManagementTest.ACCOUNT_TYPE_1 ) ; }

Target:
protected void setUp ( ) throws java.lang.Exception { super . setUp ( ) ; mAccountManager = ( ( android.accounts.AccountManager ) ( mContext.getSystemService ( Context.ACCOUNT_SERVICE ) ) ) ; clearAllAccountManagementDisabled ( ) ; mDevicePolicyManager.clearUserRestriction ( com.android.cts.deviceandprofileowner.ADMIN_RECEIVER_COMPONENT , UserManager.DISALLOW_MODIFY_ACCOUNTS ) ; com.android.cts.deviceandprofileowner.AccountUtilsTest.removeAllAccountsForType ( mAccountManager , com.android.cts.deviceandprofileowner.AccountManagementTest.ACCOUNT_TYPE_1 ) ; com.android.cts.deviceandprofileowner.AccountUtilsTest.removeAllAccountsForType ( mAccountManager , com.android.cts.deviceandprofileowner.AccountManagementTest.ACCOUNT_TYPE_2 ) ; }
Source:
public java.util.Iterator < com.android.sched.vfs.InputVFile > iterator ( @ javax.annotation.Nonnull com.android.jack.library.FileType fileType ) { if ( ! ( containsFileType ( fileType ) ) ) { return com.google.common.collect.ImmutableSet.< com.android.sched.vfs.InputVFile > of ( ) . iterator ( ) ; } java.util.List < com.android.sched.vfs.InputVFile > inputVFiles = new java.util.ArrayList < com.android.sched.vfs.InputVFile > ( ) ; fillFiles ( getSectionVFS ( fileType ) . getRootInputVDir ( ) , inputVFiles ) ; return inputVFiles.listIterator ( ) ; }

Target:
public java.util.Iterator < com.android.sched.vfs.InputVFile > iterator ( @ javax.annotation.Nonnull com.android.jack.library.FileType fileType ) { if ( ! ( containsFileType ( fileType ) ) ) { return com.google.common.collect.ImmutableSet.< com.android.sched.vfs.InputVFile > of ( ) . iterator ( ) ; } java.util.List < com.android.sched.vfs.InputVFile > inputVFiles = new java.util.ArrayList < com.android.sched.vfs.InputVFile > ( ) ; fillFiles ( getSectionVFS ( fileType ) . getRootDir ( ) , inputVFiles ) ; return inputVFiles.listIterator ( ) ; }
Source:
public void testMissingRequiredBundleFile ( ) throws java.lang.Exception { libcore.tzdata.update2.ConfigBundle installedConfigBundle = createValidTzDataBundle ( "2030a" ) ; assertTrue ( install ( installedConfigBundle ) ) ; assertTzDataInstalled ( installedConfigBundle ) ; libcore.tzdata.update2.ConfigBundle incompleteUpdate = createValidTzDataBundleBuilder ( "2030b" ) . clearBionicTzData ( ) . buildUnvalidated ( ) ; assertFalse ( install ( incompleteUpdate ) ) ; assertTzDataInstalled ( installedConfigBundle ) ; }

Target:
public void testSuccessfulFollowOnUpdate_newerVersion ( ) throws java.lang.Exception { libcore.tzdata.update2.ConfigBundle tzData1 = createValidTzDataBundle ( libcore.tzdata.update2.TzDataBundleInstallerTest.NEW_RULES_VERSION ) ; assertTrue ( installer.install ( tzData1.getBundleBytes ( ) ) ) ; assertTzDataInstalled ( tzData1 ) ; libcore.tzdata.update2.ConfigBundle tzData2 = createValidTzDataBundle ( libcore.tzdata.update2.TzDataBundleInstallerTest.NEWER_RULES_VERSION ) ; assertTrue ( installer.install ( tzData2.getBundleBytes ( ) ) ) ; assertTzDataInstalled ( tzData2 ) ; }
Source:
public boolean isMultipartDownload ( ) { return ( ( getSourceUri ( ) . getLastPathSegment ( ) ) != null ) && ( getSourceUri ( ) . getLastPathSegment ( ) . contains ( "*" ) ) ; }

Target:
public void writeExternal ( java.io.ObjectOutput objectOutput ) throws java.io.IOException { objectOutput.write ( version ) ; objectOutput.writeUTF ( fileServiceId ) ; objectOutput.writeUTF ( source.toString ( ) ) ; objectOutput.writeUTF ( destination.toString ( ) ) ; objectOutput.write ( subscriptionId ) ; objectOutput.writeUTF ( appIntent ) ; }
Source:
private com.android.jill.frontend.java.Variable getTempVarFromTopOfStack ( @ javax.annotation.Nonnull org.objectweb.asm.tree.analysis.Frame < org.objectweb.asm.tree.analysis.BasicValue > frame ) { com.android.jill.frontend.java.Variable topOfStackBeforeInst = getStackVariable ( frame , com.android.jill.frontend.java.MethodBodyWriter.TOP_OF_STACK ) ; java.lang.String tmpVarId = "-swap_tmp_" + ( typeToUntypedDesc ( topOfStackBeforeInst.getType ( ) ) ) ; com.android.jill.frontend.java.Variable tmpVariable = getVariable ( tmpVarId , tmpVarId , topOfStackBeforeInst.getType ( ) , null ) ; tmpVariable.setSynthetic ( ) ; return tmpVariable ; }

Target:
private com.android.jill.frontend.java.Variable getTempVarFromTopOfStackMinus1 ( @ javax.annotation.Nonnull org.objectweb.asm.tree.analysis.Frame < org.objectweb.asm.tree.analysis.BasicValue > frame ) { com.android.jill.frontend.java.Variable topOfStackBeforeInst = getStackVariable ( frame , ( ( com.android.jill.frontend.java.MethodBodyWriter.TOP_OF_STACK ) - 1 ) ) ; java.lang.String tmpVarId = "-swap_tmp_" + ( typeToUntypedDesc ( topOfStackBeforeInst.getType ( ) ) ) ; com.android.jill.frontend.java.Variable tmpVariable = getVariable ( tmpVarId , tmpVarId , topOfStackBeforeInst.getType ( ) , null ) ; tmpVariable.setSynthetic ( ) ; return tmpVariable ; }
Source:
public void binderDied ( ) { synchronized ( this ) { notifyAll ( ) ; } }

Target:
public void onReceive ( android.content.Context context , android.content.Intent intent ) { android.util.Log.i ( com.android.server.am.ActivityManagerService.TAG , "Shutting down activity manager..." ) ; shutdown ( 10000 ) ; android.util.Log.i ( com.android.server.am.ActivityManagerService.TAG , "Shutdown complete, restarting!" ) ; java.lang.Process.killProcess ( java.lang.Process.myPid ( ) ) ; java.lang.System.exit ( 10 ) ; }
Source:
private void transformToZip ( @ javax.annotation.Nonnull java.io.InputStream is , @ javax.annotation.Nonnull java.util.zip.ZipOutputStream zipOutputStream , @ javax.annotation.CheckForNull java.util.jar.JarFile jarFile ) throws java.io.IOException { org.objectweb.asm.tree.ClassNode cn = getClassNode ( is ) ; java.lang.String filePath = com.android.jill.frontend.java.JavaTransformer.getZipFilePath ( cn.name ) ; assert ( jarFile == null ) || ( ( jarFile.getEntry ( filePath ) ) == null ) ; try { java.util.zip.ZipEntry entry = new java.util.zip.ZipEntry ( filePath ) ; zipOutputStream.putNextEntry ( entry ) ; transform ( cn , zipOutputStream ) ; } catch ( java.io.IOException e ) { throw new com.android.jill.JillException ( "Error writing to output zip" , e ) ; } }

Target:
private void transform ( @ javax.annotation.Nonnull org.objectweb.asm.tree.ClassNode cn , @ javax.annotation.Nonnull java.io.OutputStream os , @ javax.annotation.Nonnull com.android.sched.util.location.Location location ) throws com.android.sched.util.file.CannotWriteException { com.android.jill.backend.jayce.JayceWriter writer = createWriter ( os ) ; com.android.jill.frontend.java.ClassNodeWriter asm2jayce = new com.android.jill.frontend.java.ClassNodeWriter ( writer , new com.android.jill.frontend.java.SourceInfoWriter ( writer ) , options ) ; try { asm2jayce.write ( cn ) ; writer.flush ( ) ; } catch ( java.io.IOException e ) { throw new com.android.sched.util.file.CannotWriteException ( location , e ) ; } }
Source:
private static boolean verifyVpnStatus ( android.support.test.uiautomator.UiDevice device ) { device.openNotification ( ) ; boolean isTrue = device.wait ( android.support.test.uiautomator.Until.hasObject ( android.support.test.uiautomator.By.res ( com.android.devtools.systemimage.uitest.smoke.VpnTest.VPN_LOCK_ICON_RES ) ) , java.util.concurrent.TimeUnit.MILLISECONDS.convert ( 3L , java.util.concurrent.TimeUnit.SECONDS ) ) ; device.pressHome ( ) ; return isTrue ; }

Target:
public boolean isTrue ( ) throws java.lang.Exception { return ( device.hasObject ( android.support.test.uiautomator.By.res ( com.android.devtools.systemimage.uitest.smoke.VpnTest.VPN_LOCK_ICON_RES ) ) ) || ( device.hasObject ( android.support.test.uiautomator.By.text ( com.android.devtools.systemimage.uitest.smoke.VpnTest.VPN_ACTIVATED_TEXT ) ) ) ; }
Source:
public void setSimPowerStateForSlot ( int slotIndex , int state ) { enforceModifyPermission ( ) ; int [ ] subId = mSubscriptionController.getSubIdUsingSlotIndex ( slotIndex ) ; if ( ( subId == null ) || ( ( subId.length ) == 0 ) ) { return ; } final com.android.internal.telephony.Phone phone = getPhone ( subId [ 0 ] ) ; if ( phone != null ) { phone.setSimPowerState ( state ) ; } }

Target:
public boolean isVoicemailVibrationEnabled ( android.telecom.PhoneAccountHandle accountHandle ) { com.android.internal.telephony.Phone phone = com.android.phone.PhoneUtils.getPhoneForPhoneAccountHandle ( accountHandle ) ; if ( phone == null ) { phone = mPhone ; } return com.android.phone.settings.VoicemailNotificationSettingsUtil.isVibrationEnabled ( phone ) ; }
Source:
private static java.lang.invoke.MethodHandle zero ( sun.invoke.util.Wrapper btw , java.lang.Class < ? > rtype ) { int pos = btw.ordinal ( ) ; java.lang.invoke.MethodHandle zero = java.lang.invoke.MethodHandles.ZERO_MHS [ pos ] ; if ( zero == null ) { zero = java.lang.invoke.MethodHandles.setCachedMethodHandle ( java.lang.invoke.MethodHandles.ZERO_MHS , pos , java.lang.invoke.MethodHandles.makeZero ( btw.primitiveType ( ) ) ) ; } if ( ( zero.type ( ) . returnType ( ) ) == rtype ) return zero ; assert btw == ( sun.invoke.util.Wrapper.OBJECT ) ; return java.lang.invoke.MethodHandles.makeZero ( rtype ) ; }

Target:
public static byte identity ( byte val ) { return val ; }
Source:
public boolean commitDirtyAttributesToXml ( ) { boolean result = false ; java.util.HashMap < com.android.ide.eclipse.adt.internal.editors.descriptors.AttributeDescriptor , com.android.ide.eclipse.adt.internal.editors.uimodel.UiAttributeNode > attributeMap = getInternalUiAttributes ( ) ; for ( java.util.Map.Entry < com.android.ide.eclipse.adt.internal.editors.descriptors.AttributeDescriptor , com.android.ide.eclipse.adt.internal.editors.uimodel.UiAttributeNode > entry : attributeMap.entrySet ( ) ) { com.android.ide.eclipse.adt.internal.editors.uimodel.UiAttributeNode ui_attr = entry.getValue ( ) ; if ( ui_attr.isDirty ( ) ) { result |= commitAttributeToXml ( ui_attr , ui_attr.getCurrentValue ( ) ) ; ui_attr.setDirty ( false ) ; } } return result ; }

Target:
public boolean commitDirtyAttributesToXml ( ) { boolean result = false ; java.util.HashMap < com.android.ide.eclipse.adt.internal.editors.descriptors.AttributeDescriptor , com.android.ide.eclipse.adt.internal.editors.uimodel.UiAttributeNode > attributeMap = getInternalUiAttributes ( ) ; for ( java.util.Map.Entry < com.android.ide.eclipse.adt.internal.editors.descriptors.AttributeDescriptor , com.android.ide.eclipse.adt.internal.editors.uimodel.UiAttributeNode > entry : attributeMap.entrySet ( ) ) { com.android.ide.eclipse.adt.internal.editors.uimodel.UiAttributeNode uiAttr = entry.getValue ( ) ; if ( uiAttr.isDirty ( ) ) { result |= commitAttributeToXml ( uiAttr , uiAttr.getCurrentValue ( ) ) ; uiAttr.setDirty ( false ) ; } } return result ; }
Source:
public void onForegroundActivitiesChanged ( int pid , int uid , boolean fg ) { if ( isScreenIdle ( ) ) { android.os.Message message = mServiceHandler.obtainMessage ( ) ; message.arg1 = com.android.stk.StkAppService.OP_IDLE_SCREEN ; mServiceHandler.sendMessage ( message ) ; unregisterProcessObserver ( ) ; } }

Target:
public void onReceive ( android.content.Context context , android.content.Intent intent ) { if ( WindowManagerPolicy.ACTION_USER_ACTIVITY_NOTIFICATION.equals ( intent.getAction ( ) ) ) { android.os.Message message = mServiceHandler.obtainMessage ( ) ; message.arg1 = com.android.stk.StkAppService.OP_USER_ACTIVITY ; mServiceHandler.sendMessage ( message ) ; unregisterUserActivityReceiver ( ) ; } }
Source:
private static void loadShortNumberMetadataFromFile ( java.lang.String regionCode ) { java.lang.String fileName = ( ( com.google.i18n.phonenumbers.MetadataManager.SHORT_NUMBER_METADATA_FILE_PREFIX ) + "_" ) + regionCode ; java.io.InputStream source = com.google.i18n.phonenumbers.MetadataManager.class . getResourceAsStream ( fileName ) ; if ( source == null ) { throw new java.lang.IllegalStateException ( ( "missing metadata: " + fileName ) ) ; } com.google.i18n.phonenumbers.Phonemetadata.PhoneMetadataCollection shortNumberMetadata = com.google.i18n.phonenumbers.MetadataManager.loadMetadataAndCloseInput ( source ) ; for ( com.google.i18n.phonenumbers.Phonemetadata.PhoneMetadata metadata : shortNumberMetadata.getMetadataList ( ) ) { com.google.i18n.phonenumbers.MetadataManager.regionCodeToShortNumberMetadataMap.put ( regionCode , metadata ) ; } }

Target:
private static java.util.List < com.google.i18n.phonenumbers.Phonemetadata.PhoneMetadata > getMetadataFromSingleFileName ( java.lang.String fileName , com.google.i18n.phonenumbers.MetadataLoader metadataLoader ) { java.io.InputStream source = metadataLoader.loadMetadata ( fileName ) ; if ( source == null ) { throw new java.lang.IllegalStateException ( ( "missing metadata: " + fileName ) ) ; } com.google.i18n.phonenumbers.Phonemetadata.PhoneMetadataCollection metadataCollection = com.google.i18n.phonenumbers.MetadataManager.loadMetadataAndCloseInput ( source ) ; java.util.List < com.google.i18n.phonenumbers.Phonemetadata.PhoneMetadata > metadataList = metadataCollection.getMetadataList ( ) ; if ( ( metadataList.size ( ) ) == 0 ) { throw new java.lang.IllegalStateException ( ( "empty metadata: " + fileName ) ) ; } return metadataList ; }
Source:
static void testAccess2 ( java.lang.ClassLoader loader ) { java.lang.Class altClass ; try { altClass = loader.loadClass ( "Inaccessible2" ) ; java.lang.System.err.println ( ( "ERROR: Inaccessible2 was accessible: " + altClass ) ) ; } catch ( java.lang.ClassNotFoundException cnfe ) { java.lang.Throwable cause = cnfe.getCause ( ) ; if ( cause instanceof java.lang.IllegalAccessError ) { java.lang.System.out.println ( "Got expected CNFE/IAE #2" ) ; } else { java.lang.System.err.println ( "Got unexpected CNFE/IAE #2" ) ; cnfe.printStackTrace ( ) ; } } }

Target:
static void testAccess2 ( java.lang.ClassLoader loader ) { java.lang.Class < ? > altClass ; try { altClass = loader.loadClass ( "Inaccessible2" ) ; java.lang.System.out.println ( ( "ERROR: Inaccessible2 was accessible: " + altClass ) ) ; } catch ( java.lang.ClassNotFoundException cnfe ) { java.lang.Throwable cause = cnfe.getCause ( ) ; if ( cause instanceof java.lang.IllegalAccessError ) { java.lang.System.out.println ( "Got expected CNFE/IAE #2" ) ; } else { java.lang.System.out.println ( "Got unexpected CNFE/IAE #2" ) ; cnfe.printStackTrace ( java.lang.System.out ) ; } } }
Source:
protected void updateSharpImageUsingFuzzyImage ( ) { long startnow ; long endnow ; startnow = java.lang.System.nanoTime ( ) ; scriptC.forEach_UpdateSharpUsingFuzzyPassInput ( buffers.sharpDilatedDepthAllocation , buffers.sharpDilatedDepthAllocation ) ; endnow = java.lang.System.nanoTime ( ) ; android.util.Log.d ( com.android.rs.refocus.d1new.RefocusFilterd1new.myTAG , ( ( "updateSharpImageUsingFuzzyImage: " + ( endnow - startnow ) ) + " ns" ) ) ; }

Target:
protected void updateSharpImageUsingFuzzyImage ( ) { long startnow ; long endnow ; startnow = java.lang.System.nanoTime ( ) ; scriptC.forEach_UpdateSharpUsingFuzzyPassInput ( buffers.sharpDilatedDepthAllocation , buffers.sharpDilatedDepthAllocation ) ; endnow = java.lang.System.nanoTime ( ) ; logTiming ( com.android.rs.refocus.d1new.RefocusFilterd1new.myTAG , "UpdateSharpImageUsingFuzzyImage" , ( endnow - startnow ) ) ; }
Source:
void assertAudioRoute ( final android.telecom.cts.MockConnection connection , final int route ) { waitUntilConditionIsTrueOrTimeout ( new android.telecom.cts.BaseTelecomTestWithMockServices.Condition ( ) { @ java.lang.Override public java.lang.Object expected ( ) { return route ; } @ java.lang.Override public java.lang.Object actual ( ) { final android.telecom.CallAudioState state = ( ( android.telecom.Connection ) ( connection ) ) . getCallAudioState ( ) ; return state == null ? null : state.getRoute ( ) ; } } , android.telecom.cts.WAIT_FOR_STATE_CHANGE_TIMEOUT_MS , ( "Connection's audio route should be: " + route ) ) ; }

Target:
void assertAudioRoute ( final android.telecom.cts.MockConnection connection , final int route ) { waitUntilConditionIsTrueOrTimeout ( new android.telecom.cts.BaseTelecomTestWithMockServices.Condition ( ) { @ java.lang.Override public java.lang.Object expected ( ) { return route ; } @ java.lang.Override public java.lang.Object actual ( ) { final android.telecom.CallAudioState state = ( ( android.telecom.Connection ) ( connection ) ) . getCallAudioState ( ) ; return state == null ? null : state.getRoute ( ) ; } } , android.telecom.cts.TestUtils.WAIT_FOR_STATE_CHANGE_TIMEOUT_MS , ( "Connection's audio route should be: " + route ) ) ; }
Source:
public com.android.jack.ir.ast.JNameValuePair exportAsJast ( @ javax.annotation.Nonnull com.android.jack.jayce.v0002.io.ExportSession exportSession ) throws com.android.jack.ir.ast.JTypeLookupException , com.android.jack.lookup.JMethodLookupException { assert ( sourceInfo ) != null ; assert ( value ) != null ; assert ( name ) != null ; com.android.jack.ir.ast.JLiteral jValue = value.exportAsJast ( exportSession ) ; com.android.jack.ir.sourceinfo.SourceInfo jSourceInfo = sourceInfo.exportAsJast ( exportSession ) ; com.android.jack.ir.ast.JMethodIdWide methodId = new com.android.jack.ir.ast.JMethodIdWide ( name , com.android.jack.ir.ast.MethodKind.INSTANCE_VIRTUAL ) ; com.android.jack.ir.ast.JNameValuePair jNameValuePair = new com.android.jack.ir.ast.JNameValuePair ( jSourceInfo , methodId , jValue ) ; return jNameValuePair ; }

Target:
public com.android.jack.ir.ast.JNameValuePair exportAsJast ( @ javax.annotation.Nonnull com.android.jack.jayce.v0002.io.ExportSession exportSession , @ javax.annotation.Nonnull com.android.jack.ir.ast.JAnnotationType receiver ) throws com.android.jack.ir.ast.JTypeLookupException , com.android.jack.lookup.JMethodLookupException { assert ( sourceInfo ) != null ; assert ( value ) != null ; assert ( name ) != null ; com.android.jack.ir.ast.JLiteral jValue = value.exportAsJast ( exportSession ) ; com.android.jack.ir.sourceinfo.SourceInfo jSourceInfo = sourceInfo.exportAsJast ( exportSession ) ; com.android.jack.ir.ast.JMethodIdWide methodId = receiver.getOrCreateMethodIdWide ( name , java.util.Collections.< com.android.jack.ir.ast.JType > emptyList ( ) , MethodKind.INSTANCE_VIRTUAL ) ; com.android.jack.ir.ast.JNameValuePair jNameValuePair = new com.android.jack.ir.ast.JNameValuePair ( jSourceInfo , methodId , jValue ) ; return jNameValuePair ; }
Source:
public boolean processMessage ( android.os.Message message ) { boolean retValue = true ; switch ( message.what ) { case com.android.server.connectivity.Tethering.TetherMasterSM.CMD_TETHER_MODE_REQUESTED : com.android.server.connectivity.tethering.TetherInterfaceStateMachine who = ( ( com.android.server.connectivity.tethering.TetherInterfaceStateMachine ) ( message.obj ) ) ; who.sendMessage ( mErrorNotification ) ; break ; default : retValue = false ; } return retValue ; }

Target:
public boolean processMessage ( android.os.Message message ) { boolean retValue = true ; switch ( message.what ) { case com.android.server.connectivity.Tethering.TetherMasterSM.CMD_TETHER_MODE_REQUESTED : com.android.server.connectivity.tethering.TetherInterfaceStateMachine who = ( ( com.android.server.connectivity.tethering.TetherInterfaceStateMachine ) ( message.obj ) ) ; who.sendMessage ( mErrorNotification ) ; break ; case com.android.server.connectivity.Tethering.TetherMasterSM.CMD_CLEAR_ERROR : mErrorNotification = android.net.ConnectivityManager.TETHER_ERROR_NO_ERROR ; transitionTo ( mInitialState ) ; break ; default : retValue = false ; } return retValue ; }
Source:
public void testAesCbcHmacSha256Udp4 ( ) throws java.lang.Exception { android.net.IpSecAlgorithm crypt = new android.net.IpSecAlgorithm ( android.net.IpSecAlgorithm.CRYPT_AES_CBC , android.net.cts.IpSecManagerTest.CRYPT_KEY ) ; android.net.IpSecAlgorithm auth = new android.net.IpSecAlgorithm ( android.net.IpSecAlgorithm.AUTH_HMAC_SHA256 , getAuthKey ( 256 ) , 128 ) ; checkTransform ( android.system.OsConstants.IPPROTO_UDP , android.net.cts.IpSecManagerTest.IPV4_LOOPBACK , crypt , auth , false , 1 , false ) ; checkTransform ( android.system.OsConstants.IPPROTO_UDP , android.net.cts.IpSecManagerTest.IPV4_LOOPBACK , crypt , auth , false , 1 , true ) ; }

Target:
public void testAesCbcHmacSha1Udp6 ( ) throws java.lang.Exception { android.net.IpSecAlgorithm crypt = new android.net.IpSecAlgorithm ( android.net.IpSecAlgorithm.CRYPT_AES_CBC , android.net.cts.IpSecManagerTest.CRYPT_KEY ) ; android.net.IpSecAlgorithm auth = new android.net.IpSecAlgorithm ( android.net.IpSecAlgorithm.AUTH_HMAC_SHA1 , android.net.cts.IpSecManagerTest.getKey ( 160 ) , 96 ) ; checkTransform ( android.system.OsConstants.IPPROTO_UDP , android.net.cts.IpSecManagerTest.IPV6_LOOPBACK , crypt , auth , null , false , 1 , false ) ; checkTransform ( android.system.OsConstants.IPPROTO_UDP , android.net.cts.IpSecManagerTest.IPV6_LOOPBACK , crypt , auth , null , false , 1 , true ) ; }
Source:
public void setApplicationRestrictions ( @ android.annotation.Nullable android.content.ComponentName admin , java.lang.String packageName , android.os.Bundle settings ) { throwIfParentInstance ( "setApplicationRestrictions" ) ; if ( ( mService ) != null ) { try { mService.setApplicationRestrictions ( admin , packageName , settings ) ; } catch ( android.os.RemoteException e ) { throw e.rethrowFromSystemServer ( ) ; } } }

Target:
public java.lang.String [ ] setPackagesSuspended ( @ android.annotation.NonNull android.content.ComponentName admin , @ android.annotation.NonNull java.lang.String [ ] packageNames , boolean suspended ) { throwIfParentInstance ( "setPackagesSuspended" ) ; if ( ( mService ) != null ) { try { return mService.setPackagesSuspended ( admin , mContext.getPackageName ( ) , packageNames , suspended ) ; } catch ( android.os.RemoteException re ) { throw re.rethrowFromSystemServer ( ) ; } } return packageNames ; }
Source:
public java.util.Map < java.lang.String , com.android.builder.model.AndroidProject > getAllModels ( ) { java.util.Map < java.lang.String , com.android.builder.model.AndroidProject > allModels = getAllModels ( new com.android.build.gradle.integration.common.fixture.GetAndroidModelAction ( ) , false ) ; for ( com.android.builder.model.AndroidProject project : allModels.values ( ) ) { com.android.build.gradle.integration.common.fixture.GradleTestProject.assertNoSyncIssues ( project ) ; } return allModels ; }

Target:
public java.util.Map < java.lang.String , com.android.builder.model.AndroidProject > getAllModelsWithBenchmark ( @ com.android.annotations.Nullable java.lang.String benchmarkName , @ com.android.annotations.Nullable com.android.build.gradle.integration.common.fixture.GradleTestProject.BenchmarkMode benchmarkMode ) { java.util.Map < java.lang.String , com.android.builder.model.AndroidProject > allModels = getAllModels ( new com.android.build.gradle.integration.common.fixture.GetAndroidModelAction ( ) , false , benchmarkName , benchmarkMode ) ; for ( com.android.builder.model.AndroidProject project : allModels.values ( ) ) { com.android.build.gradle.integration.common.fixture.GradleTestProject.assertNoSyncIssues ( project ) ; } return allModels ; }
Source:
public void test_ko ( ) throws java.lang.Exception { libcore.icu.AlphabeticIndex ko = new libcore.icu.AlphabeticIndex ( java.util.Locale.KOREAN ) ; libcore.icu.AlphabeticIndexTest.assertHasLabel ( ko , "ᄀ" , "ᄀ" ) ; libcore.icu.AlphabeticIndexTest.assertHasLabel ( ko , "ㄱ" , "ᄀ" ) ; libcore.icu.AlphabeticIndexTest.assertHasLabel ( ko , "ᄁ" , "ᄀ" ) ; libcore.icu.AlphabeticIndexTest.assertHasLabel ( ko , "ᅡ" , "ᄒ" ) ; }

Target:
public void test_ko ( ) throws java.lang.Exception { libcore.icu.ImmutableIndex ko = libcore.icu.AlphabeticIndexTest.createIndex ( java.util.Locale.KOREAN ) ; libcore.icu.AlphabeticIndexTest.assertHasLabel ( ko , "ᄀ" , "ᄀ" ) ; libcore.icu.AlphabeticIndexTest.assertHasLabel ( ko , "ㄱ" , "ᄀ" ) ; libcore.icu.AlphabeticIndexTest.assertHasLabel ( ko , "ᄁ" , "ᄀ" ) ; libcore.icu.AlphabeticIndexTest.assertHasLabel ( ko , "ᅡ" , "ᄒ" ) ; }
Source:
public boolean stopSupplicant ( ) { return doBooleanCommand ( "TERMINATE" ) ; }

Target:
public void setSupplicantLogLevel ( boolean turnOnVerbose ) { if ( com.android.server.wifi.WifiNative.HIDL_SUP_ENABLE ) { int logLevel = ( turnOnVerbose ) ? SupplicantStaIfaceHal.LOG_LEVEL_DEBUG : SupplicantStaIfaceHal.LOG_LEVEL_INFO ; mSupplicantStaIfaceHal.setLogLevel ( logLevel ) ; } else { doStringCommand ( ( "LOG_LEVEL " + ( turnOnVerbose ? "DEBUG" : "INFO" ) ) ) ; } }
Source:
public void stopRingbackForCall ( com.android.server.telecom.Call call ) { if ( ( mCall ) == call ) { mCall = null ; if ( ( mTonePlayer ) == null ) { com.android.server.telecom.Log.w ( this , "No player found to stop." ) ; } else { com.android.server.telecom.Log.i ( this , "Stopping the ringback tone for %s." , call ) ; mTonePlayer.stopTone ( ) ; mTonePlayer = null ; } } }

Target:
public void stopRingbackForCall ( com.android.server.telecom.Call call ) { if ( ( mCall ) == call ) { mCall = null ; if ( ( mTonePlayer ) == null ) { android.telecom.Log.w ( this , "No player found to stop." ) ; } else { android.telecom.Log.i ( this , "Stopping the ringback tone for %s." , call ) ; mTonePlayer.stopTone ( ) ; mTonePlayer = null ; } } }
Source:
private static char [ ] zzUnpackCMap ( java.lang.String packed ) { char [ ] map = new char [ 65536 ] ; int i = 0 ; int j = 0 ; while ( i < 208 ) { int count = packed.charAt ( ( i ++ ) ) ; char value = packed.charAt ( ( i ++ ) ) ; do map [ ( j ++ ) ] = value ; while ( ( -- count ) > 0 ) ; } return map ; }

Target:
private static char [ ] zzUnpackCMap ( java.lang.String packed ) { char [ ] map = new char [ 1114112 ] ; int i = 0 ; int j = 0 ; while ( i < 240 ) { int count = packed.charAt ( ( i ++ ) ) ; char value = packed.charAt ( ( i ++ ) ) ; do map [ ( j ++ ) ] = value ; while ( ( -- count ) > 0 ) ; } return map ; }
Source:
public final void testPointIntInt ( ) { com.android.ide.eclipse.adt.editors.layout.gscripts.Point p = new com.android.ide.eclipse.adt.editors.layout.gscripts.Point ( 1 , 2 ) ; assertEquals ( 1 , p.x ) ; assertEquals ( 2 , p.y ) ; p = new com.android.ide.eclipse.adt.editors.layout.gscripts.Point ( ( - 3 ) , ( - 4 ) ) ; assertEquals ( ( - 3 ) , p.x ) ; assertEquals ( ( - 4 ) , p.y ) ; }

Target:
public final void testPointIntInt ( ) { com.android.ide.common.api.Point p = new com.android.ide.common.api.Point ( 1 , 2 ) ; assertEquals ( 1 , p.x ) ; assertEquals ( 2 , p.y ) ; p = new com.android.ide.common.api.Point ( ( - 3 ) , ( - 4 ) ) ; assertEquals ( ( - 3 ) , p.x ) ; assertEquals ( ( - 4 ) , p.y ) ; }
Source:
protected void finalizeFuzzyImageUsingSharpImage ( ) { long startnow ; long endnow ; startnow = java.lang.System.nanoTime ( ) ; scriptC.forEach_FinalizeFuzzyImageUsingSharpImage ( buffers.inAllocation ) ; endnow = java.lang.System.nanoTime ( ) ; android.util.Log.d ( com.android.rs.test.d1new.RefocusFilterd1new.myTAG , ( ( "finalizeFuzzyImageUsingSharpImage: " + ( endnow - startnow ) ) + " ns" ) ) ; }

Target:
protected void finalizeFuzzyImageUsingSharpImage ( ) { long startnow ; long endnow ; startnow = java.lang.System.nanoTime ( ) ; scriptC.forEach_FinalizeFuzzyImageUsingSharpImage ( buffers.inAllocation ) ; endnow = java.lang.System.nanoTime ( ) ; android.util.Log.d ( com.android.rs.refocus.d1new.RefocusFilterd1new.myTAG , ( ( "finalizeFuzzyImageUsingSharpImage: " + ( endnow - startnow ) ) + " ns" ) ) ; }
Source:
public void onNewIntent ( android.content.Intent intent ) { super . onNewIntent ( intent ) ; if ( UsbManager.ACTION_USB_ACCESSORY_ATTACHED.equals ( intent.getAction ( ) ) ) { android.hardware.usb.UsbAccessory accessory = intent.getParcelableExtra ( UsbManager.EXTRA_ACCESSORY ) ; openAccessory ( accessory ) ; } }

Target:
public void onNewIntent ( android.content.Intent intent ) { super . onNewIntent ( intent ) ; android.util.Log.d ( com.android.cts.verifier.usb.UsbAccessoryTestActivity.TAG , ( ( ( "onNewIntent: state=" + ( mState ) ) + ", intent=" ) + intent ) ) ; if ( UsbManager.ACTION_USB_ACCESSORY_ATTACHED.equals ( intent.getAction ( ) ) ) { android.hardware.usb.UsbAccessory accessory = intent.getParcelableExtra ( UsbManager.EXTRA_ACCESSORY ) ; openAccessory ( accessory ) ; } }
Source:
final void get ( short [ ] dst , int dstOffset , int shortCount ) { checkNotFreed ( ) ; int byteCount = checkGetBounds ( SizeOf.SHORT , dst.length , dstOffset , shortCount ) ; this . block.peekShortArray ( ( ( offset ) + ( position ) ) , dst , dstOffset , shortCount , order.needsSwap ) ; position += byteCount ; }

Target:
final void get ( short [ ] dst , int dstOffset , int shortCount ) { checkIsAccessible ( ) ; int byteCount = checkGetBounds ( SizeOf.SHORT , dst.length , dstOffset , shortCount ) ; this . block.peekShortArray ( ( ( offset ) + ( position ) ) , dst , dstOffset , shortCount , order.needsSwap ) ; position += byteCount ; }
Source:
void assertNumCalls ( final android.telecom.cts.MockInCallService inCallService , final int numCalls ) { waitUntilConditionIsTrueOrTimeout ( new android.telecom.cts.BaseTelecomTestWithMockServices.Condition ( ) { @ java.lang.Override public java.lang.Object expected ( ) { return numCalls ; } @ java.lang.Override public java.lang.Object actual ( ) { return inCallService.getCallCount ( ) ; } } , android.telecom.cts.WAIT_FOR_STATE_CHANGE_TIMEOUT_MS , ( ( "InCallService should contain " + numCalls ) + " calls." ) ) ; }

Target:
void assertNumCalls ( final android.telecom.cts.MockInCallService inCallService , final int numCalls ) { waitUntilConditionIsTrueOrTimeout ( new android.telecom.cts.BaseTelecomTestWithMockServices.Condition ( ) { @ java.lang.Override public java.lang.Object expected ( ) { return numCalls ; } @ java.lang.Override public java.lang.Object actual ( ) { return inCallService.getCallCount ( ) ; } } , android.telecom.cts.TestUtils.WAIT_FOR_STATE_CHANGE_TIMEOUT_MS , ( ( "InCallService should contain " + numCalls ) + " calls." ) ) ; }
Source:
public void setUp ( ) throws java.lang.Exception { com.android.tradefed.build.IFolderBuildInfo buildInfo = org.easymock.EasyMock.createNiceMock ( com.android.tradefed.build.IFolderBuildInfo.class ) ; org.easymock.EasyMock.replay ( buildInfo ) ; mVtsPythonRunnerHelper = new com.android.tradefed.util.VtsPythonRunnerHelper ( buildInfo ) { @ java.lang.Override protected com.android.tradefed.util.ProcessHelper createProcessHelper ( java.lang.String [ ] cmd ) { return mProcessHelper ; } } ; }

Target:
public void setUp ( ) throws java.lang.Exception { com.android.tradefed.build.IFolderBuildInfo buildInfo = org.easymock.EasyMock.createNiceMock ( com.android.tradefed.build.IFolderBuildInfo.class ) ; org.easymock.EasyMock.replay ( buildInfo ) ; mVtsPythonRunnerHelper = new com.android.tradefed.util.VtsPythonRunnerHelper ( new java.io.File ( mVirtualenvPath ) ) { @ java.lang.Override protected com.android.tradefed.util.ProcessHelper createProcessHelper ( java.lang.String [ ] cmd ) { return mProcessHelper ; } } ; }
Source:
public void testFileToUrl ( ) throws java.lang.Exception { assertEquals ( "file:/tmp/foo/bar" , com.android.utils.SdkUtils.fileToUrlString ( new java.io.File ( "/tmp/foo/bar" ) ) ) ; assertEquals ( "file:/tmp/$&+,:;=%3F@/foo%20bar%25" , com.android.utils.SdkUtils.fileToUrlString ( new java.io.File ( "/tmp/$&+,:;=?@/foo bar%" ) ) ) ; }

Target:
public void testFileToUrl ( ) throws java.lang.Exception { if ( ( com.android.SdkConstants.CURRENT_PLATFORM ) == ( com.android.SdkConstants.PLATFORM_WINDOWS ) ) { assertEquals ( "file:/D:/tmp/foo/bar" , com.android.utils.SdkUtils.fileToUrlString ( new java.io.File ( "D:\\tmp\\foo\\bar" ) ) ) ; assertEquals ( "file:/C:/tmp/foo/bar" , com.android.utils.SdkUtils.fileToUrlString ( new java.io.File ( "/tmp/foo/bar" ) ) ) ; assertEquals ( "file:/C:/tmp/$&+,:;=%3F@/foo%20bar%25" , com.android.utils.SdkUtils.fileToUrlString ( new java.io.File ( "/tmp/$&+,:;=?@/foo bar%" ) ) ) ; } else { assertEquals ( "file:/tmp/foo/bar" , com.android.utils.SdkUtils.fileToUrlString ( new java.io.File ( "/tmp/foo/bar" ) ) ) ; assertEquals ( "file:/tmp/$&+,:;=%3F@/foo%20bar%25" , com.android.utils.SdkUtils.fileToUrlString ( new java.io.File ( "/tmp/$&+,:;=?@/foo bar%" ) ) ) ; } }
Source:
public void testIdenticalBinaryCodeComparison ( ) throws java.io.IOException { java.lang.String sourcePath = "com/android/jack/dexcomparator/test/A.java" ; java.io.File a1 = new java.io.File ( com.android.jack.dexcomparator.test.BinaryCodeComparisonTest.testSource1 , sourcePath ) ; java.io.File dex1 = java.io.File.createTempFile ( "dex1" , ".dex" ) ; dex1.deleteOnExit ( ) ; com.android.jack.dexcomparator.test.TestTools.compileToDexWithJack ( a1 , dex1 ) ; try { new com.android.jack.DexComparator ( false , true , false , true ) . compare ( dex1 , dex1 ) ; } catch ( com.android.jack.DifferenceFoundException e ) { org.junit.Assert.fail ( e.getMessage ( ) ) ; } }

Target:
public void testIdenticalBinaryCodeComparison ( ) throws java.io.IOException { java.lang.String sourcePath = "com/android/jack/dexcomparator/test/A.java" ; java.io.File a1 = new java.io.File ( com.android.jack.dexcomparator.test.BinaryCodeComparisonTest.testSource1 , sourcePath ) ; java.io.File dex1 = java.io.File.createTempFile ( "dex1" , ".dex" ) ; dex1.deleteOnExit ( ) ; com.android.jack.dexcomparator.test.TestTools.compileToDexWithJack ( a1 , dex1 ) ; try { new com.android.jack.comparator.DexComparator ( false , true , false , true ) . compare ( dex1 , dex1 ) ; } catch ( com.android.jack.comparator.DifferenceFoundException e ) { org.junit.Assert.fail ( e.getMessage ( ) ) ; } }
Source:
public void resolve ( ) { for ( com.android.jack.ir.ast.JCaseStatement caseStatement : cases ) { block.addCaseBlock ( com.android.jack.cfg.ForwardBranchResolver.getTargetBlock ( caseStatement ) ) ; } if ( ( defaultCase ) != null ) { block.setDefault ( com.android.jack.cfg.ForwardBranchResolver.getTargetBlock ( defaultCase ) ) ; } }

Target:
public void resolve ( ) { for ( com.android.jack.ir.ast.JCaseStatement caseStatement : cases ) { block.addCaseBlock ( com.android.jack.cfg.ForwardBranchResolver.getTargetBlock ( caseStatement ) ) ; } if ( ( defaultCase ) == null ) { block.setDefault ( exitBlock ) ; } else { block.setDefault ( com.android.jack.cfg.ForwardBranchResolver.getTargetBlock ( defaultCase ) ) ; } }
Source:
public void run ( ) { com.android.rs.test.RenderScript pRS = com.android.rs.test.RenderScript.create ( mCtx ) ; com.android.rs.test.ScriptC_single_source_script s = new com.android.rs.test.ScriptC_single_source_script ( pRS ) ; pRS.setMessageHandler ( mRsMessage ) ; initializeGlobals ( pRS , s ) ; s.invoke_entrypoint ( testAllocation1 , testAllocation2 ) ; s.forEach_oldFoo ( testAllocation2 , testAllocation2 ) ; s.forEach_oldGoo ( testAllocation2 , testAllocation2 ) ; s.invoke_validate ( testAllocation2 ) ; pRS.finish ( ) ; waitForMessage ( ) ; pRS.destroy ( ) ; }

Target:
public void run ( ) { android.renderscript.RenderScript pRS = android.renderscript.RenderScript.create ( mCtx ) ; com.android.rs.test.ScriptC_single_source_script s = new com.android.rs.test.ScriptC_single_source_script ( pRS ) ; pRS.setMessageHandler ( mRsMessage ) ; initializeGlobals ( pRS , s ) ; s.invoke_entrypoint ( testAllocation1 , testAllocation2 ) ; s.forEach_oldFoo ( testAllocation2 , testAllocation2 ) ; s.forEach_oldGoo ( testAllocation2 , testAllocation2 ) ; s.invoke_validate ( testAllocation2 ) ; pRS.finish ( ) ; waitForMessage ( ) ; pRS.destroy ( ) ; }
Source:
protected com.intellij.execution.RunnerAndConfigurationSettings cloneTemplateConfiguration ( @ org.jetbrains.annotations.NotNull final com.intellij.execution.actions.ConfigurationContext context ) { final com.intellij.execution.configurations.RunConfiguration original = context.getOriginalConfiguration ( myConfigurationFactory.getType ( ) ) ; if ( original != null ) { return com.intellij.execution.RunManager.getInstance ( context.getProject ( ) ) . createConfiguration ( original.clone ( ) , myConfigurationFactory ) ; } return com.intellij.execution.RunManager.getInstance ( context.getProject ( ) ) . createRunConfiguration ( "" , myConfigurationFactory ) ; }

Target:
protected com.intellij.execution.actions.RunnerAndConfigurationSettings cloneTemplateConfiguration ( @ org.jetbrains.annotations.NotNull final com.intellij.execution.actions.ConfigurationContext context ) { final com.intellij.execution.configurations.RunConfiguration original = context.getOriginalConfiguration ( myConfigurationFactory.getType ( ) ) ; if ( original != null ) { return com.intellij.execution.actions.RunManager.getInstance ( context.getProject ( ) ) . createConfiguration ( original.clone ( ) , myConfigurationFactory ) ; } return com.intellij.execution.actions.RunManager.getInstance ( context.getProject ( ) ) . createRunConfiguration ( "" , myConfigurationFactory ) ; }