auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
public static java.util.List < com.android.jack.analysis.DefinitionMarker > getReachingDefs ( @ javax.annotation.Nonnull com.android.jack.cfg.BasicBlock bb , @ javax.annotation.Nonnull com.android.jack.ir.ast.JVariable var ) { java.util.List < com.android.jack.analysis.DefinitionMarker > reachingDefs = new java.util.ArrayList < com.android.jack.analysis.DefinitionMarker > ( ) ; for ( com.android.jack.analysis.DefinitionMarker reachingDef : com.android.jack.util.OptimizationTools.getReachingDefs ( bb ) ) { if ( ( reachingDef.getDefinedVariable ( ) ) == var ) { reachingDefs.add ( reachingDef ) ; } } return reachingDefs ; }

Target:
public static java.util.List < com.android.jack.analysis.DefinitionMarker > getReachingDefs ( @ javax.annotation.Nonnull com.android.jack.cfg.BasicBlock bb , @ javax.annotation.Nonnull com.android.jack.ir.ast.JVariable var ) { java.util.List < com.android.jack.analysis.DefinitionMarker > reachingDefs = new java.util.ArrayList < com.android.jack.analysis.DefinitionMarker > ( ) ; for ( com.android.jack.analysis.DefinitionMarker reachingDef : com.android.jack.util.DefsAndUsesChainOptimizationTools.getReachingDefs ( bb ) ) { if ( ( reachingDef.getDefinedVariable ( ) ) == var ) { reachingDefs.add ( reachingDef ) ; } } return reachingDefs ; }
Source:
public final java.lang.String getClassName ( @ com.android.annotations.NonNull com.android.tools.perflib.heap.Snapshot snapshot ) { com.android.tools.perflib.heap.ClassObj theClass ; if ( ( mType ) == ( RootType.SYSTEM_CLASS ) ) { theClass = snapshot.findClass ( mId ) ; } else { theClass = snapshot.findReference ( mId ) . getClassObj ( ) ; } if ( theClass == null ) { return "no class defined!!" ; } return theClass.mClassName ; }

Target:
public final java.lang.String getClassName ( @ com.android.annotations.NonNull com.android.tools.perflib.heap.Snapshot snapshot ) { com.android.tools.perflib.heap.ClassObj theClass ; if ( ( mType ) == ( RootType.SYSTEM_CLASS ) ) { theClass = snapshot.findClass ( mId ) ; } else { theClass = snapshot.findReference ( mId ) . getClassObj ( ) ; } if ( theClass == null ) { return com.android.tools.perflib.heap.RootObj.UNDEFINED_CLASS_NAME ; } return theClass.mClassName ; }
Source:
public void testStageUninstall_oldDirsAlreadyExists ( ) throws java.lang.Exception { byte [ ] installedDistroBytes = com.android.timezone.distro.installer.TimeZoneDistroInstallerTest.createValidTimeZoneDistroBytes ( com.android.timezone.distro.installer.TimeZoneDistroInstallerTest.NEW_RULES_VERSION , 1 ) ; simulateInstalledDistro ( installedDistroBytes ) ; java.io.File oldStagedDataDir = installer.getOldStagedDataDir ( ) ; assertTrue ( oldStagedDataDir.mkdir ( ) ) ; java.io.File workingDir = installer.getWorkingDir ( ) ; assertTrue ( workingDir.mkdir ( ) ) ; assertTrue ( installer.stageUninstall ( ) ) ; assertDistroUninstallStaged ( ) ; assertFalse ( workingDir.exists ( ) ) ; assertFalse ( oldStagedDataDir.exists ( ) ) ; assertInstalledDistro ( installedDistroBytes ) ; }

Target:
public void testStageUninstall_existingInstalledDataDistro ( ) throws java.lang.Exception { byte [ ] installedDistroBytes = com.android.timezone.distro.installer.TimeZoneDistroInstallerTest.createValidTimeZoneDistroBytes ( com.android.timezone.distro.installer.TimeZoneDistroInstallerTest.NEW_RULES_VERSION , 1 ) ; simulateInstalledDistro ( installedDistroBytes ) ; java.io.File stagedDataDir = installer.getStagedTzDataDir ( ) ; assertTrue ( stagedDataDir.mkdir ( ) ) ; assertEquals ( TimeZoneDistroInstaller.UNINSTALL_SUCCESS , installer.stageUninstall ( ) ) ; assertDistroUninstallStaged ( ) ; assertInstalledDistro ( installedDistroBytes ) ; }
Source:
public void widgetSelected ( org.eclipse.swt.events.SelectionEvent e ) { com.android.sdkuilib.internal.widgets.DeviceCreationDialog dlg = new com.android.sdkuilib.internal.widgets.DeviceCreationDialog ( mShell , mDeviceManager , mUpdaterData.getImageFactory ( ) , null ) ; if ( ( dlg.open ( ) ) == ( org.eclipse.jface.window.Window.OK ) ) { setupDevices ( menuBarDevices ) ; } }

Target:
private void createDeviceTab ( org.eclipse.swt.widgets.TabFolder tabFolder , org.eclipse.swt.widgets.TabItem devTabItem ) { org.eclipse.swt.widgets.Composite root = new org.eclipse.swt.widgets.Composite ( tabFolder , org.eclipse.swt.SWT.NONE ) ; devTabItem.setControl ( root ) ; com.android.sdkuilib.ui.GridLayoutBuilder.create ( root ) . columns ( 1 ) ; com.android.sdkuilib.internal.repository.ui.DeviceManagerPage container = new com.android.sdkuilib.internal.repository.ui.DeviceManagerPage ( root , org.eclipse.swt.SWT.NONE , mUpdaterData , mDeviceManager ) ; com.android.sdkuilib.ui.GridDataBuilder.create ( container ) . fill ( ) . grab ( ) ; }
Source:
private static android.net.wifi.hotspot2.pps.Credential createCredentialWithCertificateCredential ( ) { android.net.wifi.hotspot2.pps.Credential.CertificateCredential certCred = new android.net.wifi.hotspot2.pps.Credential.CertificateCredential ( ) ; certCred.certType = "x509v3" ; certCred.certSha256FingerPrint = new byte [ 256 ] ; return android.net.wifi.hotspot2.pps.CredentialTest.createCredential ( null , certCred , null , FakeKeys.CA_CERT0 , new java.security.cert.X509Certificate [ ] { android.net.wifi.FakeKeys.CLIENT_CERT } , FakeKeys.RSA_KEY1 ) ; }

Target:
private static android.net.wifi.hotspot2.pps.Credential createCredentialWithCertificateCredential ( ) { android.net.wifi.hotspot2.pps.Credential.CertificateCredential certCred = new android.net.wifi.hotspot2.pps.Credential.CertificateCredential ( ) ; certCred.certType = "x509v3" ; certCred.certSha256FingerPrint = new byte [ 32 ] ; return android.net.wifi.hotspot2.pps.CredentialTest.createCredential ( null , certCred , null , FakeKeys.CA_CERT0 , new java.security.cert.X509Certificate [ ] { android.net.wifi.FakeKeys.CLIENT_CERT } , FakeKeys.RSA_KEY1 ) ; }
Source:
public boolean disableCellBroadcast ( int messageIdentifier ) { android.util.Log.e ( com.android.internal.telephony.cdma.RuimSmsInterfaceManager.LOG_TAG , "Error! Not implemented for CDMA." ) ; return false ; }

Target:
private boolean setCdmaBroadcastActivation ( boolean activate ) { if ( com.android.internal.telephony.cdma.RuimSmsInterfaceManager.DBG ) log ( ( ( "Calling setCdmaBroadcastActivation(" + activate ) + ")" ) ) ; synchronized ( mLock ) { android.os.Message response = mHandler.obtainMessage ( com.android.internal.telephony.cdma.EVENT_SET_BROADCAST_ACTIVATION_DONE ) ; mSuccess = false ; mPhone.mCM.setCdmaBroadcastActivation ( activate , response ) ; try { mLock.wait ( ) ; } catch ( java.lang.InterruptedException e ) { log ( "interrupted while trying to set cdma broadcast activation" ) ; } } return mSuccess ; }
Source:
protected void computeResult ( ) { org.eclipse.jface.viewers.TreePath treeSelection = getSelection ( ) ; if ( treeSelection != null ) { if ( ( treeSelection.getSegmentCount ( ) ) == 2 ) { com.android.ide.eclipse.adt.internal.resources.ResourceType resourceType = ( ( com.android.ide.eclipse.adt.internal.resources.ResourceType ) ( treeSelection.getFirstSegment ( ) ) ) ; com.android.ide.eclipse.adt.internal.resources.ResourceItem resourceItem = ( ( com.android.ide.eclipse.adt.internal.resources.ResourceItem ) ( treeSelection.getLastSegment ( ) ) ) ; mCurrentResource = resourceType.getXmlString ( resourceItem , false ) ; } } }

Target:
protected void computeResult ( ) { org.eclipse.jface.viewers.TreePath treeSelection = getSelection ( ) ; if ( treeSelection != null ) { if ( ( treeSelection.getSegmentCount ( ) ) == 2 ) { com.android.resources.ResourceType resourceType = ( ( com.android.resources.ResourceType ) ( treeSelection.getFirstSegment ( ) ) ) ; com.android.ide.eclipse.adt.internal.resources.ResourceItem resourceItem = ( ( com.android.ide.eclipse.adt.internal.resources.ResourceItem ) ( treeSelection.getLastSegment ( ) ) ) ; mCurrentResource = com.android.ide.eclipse.adt.internal.resources.ResourceHelper.getXmlString ( resourceType , resourceItem , false ) ; } } }
Source:
public static android.net.Uri makeAndInsertUri ( android.content.Context context , android.net.Uri sourceUri ) { long time = java.lang.System.currentTimeMillis ( ) ; java.lang.String filename = new java.text.SimpleDateFormat ( com.android.gallery3d.filtershow.tools.SaveImage.TIME_STAMP_NAME ) . format ( new java.sql.Date ( time ) ) ; java.io.File saveDirectory = com.android.gallery3d.filtershow.tools.SaveImage.getFinalSaveDirectory ( context , sourceUri ) ; java.io.File file = new java.io.File ( saveDirectory , ( filename + ".JPG" ) ) ; return com.android.gallery3d.filtershow.tools.SaveImage.linkNewFileToUri ( context , sourceUri , file , time , false ) ; }

Target:
public static android.net.Uri makeAndInsertUri ( android.content.Context context , android.net.Uri sourceUri ) { long time = java.lang.System.currentTimeMillis ( ) ; java.lang.String filename = new java.text.SimpleDateFormat ( com.android.gallery3d.filtershow.tools.SaveImage.TIME_STAMP_NAME ) . format ( new java.util.Date ( time ) ) ; java.io.File saveDirectory = com.android.gallery3d.filtershow.tools.SaveImage.getFinalSaveDirectory ( context , sourceUri ) ; java.io.File file = new java.io.File ( saveDirectory , ( filename + ".JPG" ) ) ; return com.android.gallery3d.filtershow.tools.SaveImage.linkNewFileToUri ( context , sourceUri , file , time , false ) ; }
Source:
public static < T > boolean any ( java.util.Iterator < T > iterator , com.google.common.base.Predicate < ? super T > predicate ) { com.google.common.base.Preconditions.checkNotNull ( predicate ) ; while ( iterator.hasNext ( ) ) { T element = iterator.next ( ) ; if ( predicate.apply ( element ) ) { return true ; } } return false ; }

Target:
public static < T > java.util.Iterator < T > concat ( java.util.Iterator < ? extends T > a , java.util.Iterator < ? extends T > b , java.util.Iterator < ? extends T > c , java.util.Iterator < ? extends T > d ) { return com.google.common.collect.Iterators.concat ( com.google.common.collect.ImmutableList.of ( a , b , c , d ) . iterator ( ) ) ; }
Source:
public javax.net.ssl.SSLSession getSession ( ) { org.conscrypt.OpenSSLSessionImpl sslSession = sslParameters.getSession ( ) ; if ( sslSession == null ) { try { waitForHandshake ( ) ; sslSession = sslParameters.getSession ( ) ; } catch ( java.io.IOException e ) { return org.conscrypt.SSLSessionImpl.getNullSession ( ) ; } } return sslSession ; }

Target:
public javax.net.ssl.SSLSession getSession ( ) { if ( ( sslSession ) == null ) { try { waitForHandshake ( ) ; } catch ( java.io.IOException e ) { return org.conscrypt.SSLNullSession.getNullSession ( ) ; } } return sslSession ; }
Source:
public com.android.sched.vfs.InputVFS checkString ( @ javax.annotation.Nonnull com.android.sched.util.codec.CodecContext context , @ javax.annotation.Nonnull final java.lang.String string ) throws com.android.sched.util.codec.ParsingException { try { com.android.sched.vfs.VFS vfs = new com.android.sched.vfs.DirectFS ( new com.android.sched.util.file.Directory ( context.getWorkingDirectory ( ) , string , context.getRunnableHooks ( ) , com.android.sched.util.file.FileOrDirectory.Existence.MUST_EXIST , com.android.sched.util.file.FileOrDirectory.Permission.READ , change ) , com.android.sched.util.file.FileOrDirectory.Permission.READ ) ; return new com.android.sched.vfs.GenericInputVFS ( vfs ) ; } catch ( java.io.IOException e ) { throw new com.android.sched.util.codec.ParsingException ( e.getMessage ( ) , e ) ; } }

Target:
public void checkValue ( @ javax.annotation.Nonnull com.android.sched.util.codec.CodecContext context , @ javax.annotation.Nonnull com.android.sched.vfs.InputVFS data ) { directFSCodec.checkValue ( context , data.getVFS ( ) ) ; }
Source:
public static void initCommandLine ( android.content.Context context , java.lang.String fileName ) { if ( ! ( org.chromium.base.CommandLine.isInitialized ( ) ) ) { java.io.File commandLineFile = org.chromium.base.CommandLineInitUtil.getAlternativeCommandLinePath ( context , fileName ) ; if ( commandLineFile == null ) { commandLineFile = new java.io.File ( org.chromium.base.CommandLineInitUtil.COMMAND_LINE_FILE_PATH , fileName ) ; } org.chromium.base.CommandLine.initFromFile ( commandLineFile.getPath ( ) ) ; } }

Target:
public static void initCommandLine ( android.content.Context context , java.lang.String fileName ) { if ( ! ( org.chromium.base.CommandLine.isInitialized ( ) ) ) { java.io.File commandLineFile = org.chromium.base.CommandLineInitUtil.getAlternativeCommandLinePath ( context , fileName ) ; if ( commandLineFile != null ) { org.chromium.base.Log.i ( org.chromium.base.CommandLineInitUtil.TAG , ( "Using alternative command line file in " + ( commandLineFile.getPath ( ) ) ) ) ; } else { commandLineFile = new java.io.File ( org.chromium.base.CommandLineInitUtil.COMMAND_LINE_FILE_PATH , fileName ) ; } org.chromium.base.CommandLine.initFromFile ( commandLineFile.getPath ( ) ) ; } }
Source:
public int describeContents ( ) { return 0 ; }

Target:
public void dispose ( ) throws android.telephony.mbms.MbmsException { try { mService.disposeStream ( mAppName , mSubscriptionId , mServiceInfo.getServiceId ( ) ) ; } catch ( android.os.RemoteException e ) { android.util.Log.w ( android.telephony.mbms.StreamingService.LOG_TAG , ( "Caught remote exception calling disposeStream: " + e ) ) ; throw new android.telephony.mbms.MbmsException ( MbmsException.ERROR_UNKNOWN_REMOTE_EXCEPTION ) ; } }
Source:
protected java.lang.Class < ? > findClass ( java.lang.String name ) throws java.lang.ClassNotFoundException { java.lang.Class c = pathList.findClass ( name ) ; if ( c == null ) { throw new java.lang.ClassNotFoundException ( ( ( ( "Didn\'t find class \"" + name ) + "\" on path: " ) + ( pathList ) ) ) ; } return c ; }

Target:
protected java.lang.Class < ? > findClass ( java.lang.String name ) throws java.lang.ClassNotFoundException { java.util.List < java.lang.Throwable > suppressedExceptions = new java.util.ArrayList < java.lang.Throwable > ( ) ; java.lang.Class c = pathList.findClass ( name , suppressedExceptions ) ; if ( c == null ) { java.lang.ClassNotFoundException cnfe = new java.lang.ClassNotFoundException ( ( ( ( "Didn\'t find class \"" + name ) + "\" on path: " ) + ( pathList ) ) ) ; for ( java.lang.Throwable t : suppressedExceptions ) { cnfe.addSuppressed ( t ) ; } throw cnfe ; } return c ; }
Source:
private void set ( final int local , final java.lang.Object type ) { maxLocals = java.lang.Math.max ( maxLocals , local ) ; while ( local >= ( locals.size ( ) ) ) { locals.add ( Opcodes.TOP ) ; } locals.set ( local , type ) ; }

Target:
private java.lang.Object get ( final int local ) { maxLocals = java.lang.Math.max ( maxLocals , ( local + 1 ) ) ; return local < ( locals.size ( ) ) ? locals.get ( local ) : org.objectweb.asm.Opcodes.TOP ; }
Source:
public synchronized int getAudioState ( ) { com.android.internal.util.IState state = getCurrentState ( ) ; if ( state == ( mAudioConnecting ) ) { return android.bluetooth.BluetoothHeadset.STATE_AUDIO_CONNECTING ; } else if ( ( state == ( mAudioDisconnecting ) ) || ( state == ( mAudioOn ) ) ) { return android.bluetooth.BluetoothHeadset.STATE_AUDIO_CONNECTED ; } else { return android.bluetooth.BluetoothHeadset.STATE_AUDIO_DISCONNECTED ; } }

Target:
int getAudioStateInt ( ) { return android.bluetooth.BluetoothHeadset.STATE_AUDIO_DISCONNECTED ; }
Source:
public static int getPhoneType ( int networkMode ) { switch ( networkMode ) { case com.android.internal.telephony.RILConstants.NETWORK_MODE_CDMA : case com.android.internal.telephony.RILConstants.NETWORK_MODE_CDMA_NO_EVDO : case com.android.internal.telephony.RILConstants.NETWORK_MODE_EVDO_NO_CDMA : return com.android.internal.telephony.PhoneConstants.PHONE_TYPE_CDMA ; case com.android.internal.telephony.RILConstants.NETWORK_MODE_WCDMA_PREF : case com.android.internal.telephony.RILConstants.NETWORK_MODE_GSM_ONLY : case com.android.internal.telephony.RILConstants.NETWORK_MODE_WCDMA_ONLY : case com.android.internal.telephony.RILConstants.NETWORK_MODE_GSM_UMTS : return com.android.internal.telephony.PhoneConstants.PHONE_TYPE_GSM ; case com.android.internal.telephony.RILConstants.NETWORK_MODE_GLOBAL : case com.android.internal.telephony.RILConstants.NETWORK_MODE_LTE_CDMA_EVDO : case com.android.internal.telephony.RILConstants.NETWORK_MODE_LTE_CMDA_EVDO_GSM_WCDMA : return com.android.internal.telephony.PhoneConstants.PHONE_TYPE_CDMA ; case com.android.internal.telephony.RILConstants.NETWORK_MODE_LTE_ONLY : if ( ( android.telephony.TelephonyManager.getLteOnCdmaModeStatic ( ) ) == ( com.android.internal.telephony.PhoneConstants.LTE_ON_CDMA_TRUE ) ) { return com.android.internal.telephony.PhoneConstants.PHONE_TYPE_CDMA ; } else { return com.android.internal.telephony.PhoneConstants.PHONE_TYPE_GSM ; } default : return com.android.internal.telephony.PhoneConstants.PHONE_TYPE_GSM ; } }

Target:
public static int getPhoneType ( int networkMode ) { switch ( networkMode ) { case com.android.internal.telephony.RILConstants.NETWORK_MODE_CDMA : case com.android.internal.telephony.RILConstants.NETWORK_MODE_CDMA_NO_EVDO : case com.android.internal.telephony.RILConstants.NETWORK_MODE_EVDO_NO_CDMA : return com.android.internal.telephony.PhoneConstants.PHONE_TYPE_CDMA ; case com.android.internal.telephony.RILConstants.NETWORK_MODE_WCDMA_PREF : case com.android.internal.telephony.RILConstants.NETWORK_MODE_GSM_ONLY : case com.android.internal.telephony.RILConstants.NETWORK_MODE_WCDMA_ONLY : case com.android.internal.telephony.RILConstants.NETWORK_MODE_GSM_UMTS : case com.android.internal.telephony.RILConstants.NETWORK_MODE_LTE_GSM_WCDMA : case com.android.internal.telephony.RILConstants.NETWORK_MODE_LTE_WCDMA : return com.android.internal.telephony.PhoneConstants.PHONE_TYPE_GSM ; case com.android.internal.telephony.RILConstants.NETWORK_MODE_GLOBAL : case com.android.internal.telephony.RILConstants.NETWORK_MODE_LTE_CDMA_EVDO : case com.android.internal.telephony.RILConstants.NETWORK_MODE_LTE_CMDA_EVDO_GSM_WCDMA : return com.android.internal.telephony.PhoneConstants.PHONE_TYPE_CDMA ; case com.android.internal.telephony.RILConstants.NETWORK_MODE_LTE_ONLY : if ( ( android.telephony.TelephonyManager.getLteOnCdmaModeStatic ( ) ) == ( com.android.internal.telephony.PhoneConstants.LTE_ON_CDMA_TRUE ) ) { return com.android.internal.telephony.PhoneConstants.PHONE_TYPE_CDMA ; } else { return com.android.internal.telephony.PhoneConstants.PHONE_TYPE_GSM ; } default : return com.android.internal.telephony.PhoneConstants.PHONE_TYPE_GSM ; } }
Source:
public static int waitpid ( int pid , android.system.Int32Ref status , int options ) throws android.system.ErrnoException { if ( status == null ) { return Libcore.os.waitpid ( pid , null , options ) ; } else { android.util.MutableInt internalStatus = new android.util.MutableInt ( status.value ) ; try { return Libcore.os.waitpid ( pid , internalStatus , options ) ; } finally { status.value = internalStatus.value ; } } }

Target:
public static int waitpid ( int pid , android.system.Int32Ref status , int options ) throws android.system.ErrnoException { if ( status == null ) { return Libcore.os.waitpid ( pid , null , options ) ; } else { android.system.MutableInt internalStatus = new android.system.MutableInt ( status.value ) ; try { return Libcore.os.waitpid ( pid , internalStatus , options ) ; } finally { status.value = internalStatus.value ; } } }
Source:
public java.lang.Object [ ] toArray ( ) { int size = size ( ) ; int index = 0 ; java.util.Iterator < ? > it = iterator ( ) ; java.lang.Object [ ] array = new java.lang.Object [ size ] ; while ( index < size ) { array [ ( index ++ ) ] = it.next ( ) ; } return array ; }

Target:
public < T > T [ ] toArray ( T [ ] contents ) { return toArrayList ( ) . toArray ( contents ) ; }
Source:
private static void assertFailedResponse ( int arg2 , int expectedErrorReason , java.lang.String expectedErrorDescription , android.os.Message response ) { if ( ( response.what ) == ( android.net.wifi.WifiScanner.CMD_OP_SUCCEEDED ) ) { fail ( "response indicates success" ) ; } else { assertEquals ( "response.what" , WifiScanner.CMD_OP_FAILED , response.what ) ; assertEquals ( "response.arg2" , arg2 , response.arg2 ) ; android.net.wifi.WifiScanner.OperationResult result = ( ( android.net.wifi.WifiScanner.OperationResult ) ( response.obj ) ) ; assertEquals ( "response.obj.reason" , expectedErrorReason , result.reason ) ; assertEquals ( "response.obj.description" , expectedErrorDescription , result.description ) ; } }

Target:
private static void assertFailedResponse ( int arg2 , int expectedErrorReason , java.lang.String expectedErrorDescription , android.os.Message response ) { if ( ( response.what ) == ( android.net.wifi.WifiScanner.CMD_OP_SUCCEEDED ) ) { org.junit.Assert.fail ( "response indicates success" ) ; } else { org.junit.Assert.assertEquals ( "response.what" , WifiScanner.CMD_OP_FAILED , response.what ) ; org.junit.Assert.assertEquals ( "response.arg2" , arg2 , response.arg2 ) ; android.net.wifi.WifiScanner.OperationResult result = ( ( android.net.wifi.WifiScanner.OperationResult ) ( response.obj ) ) ; org.junit.Assert.assertEquals ( "response.obj.reason" , expectedErrorReason , result.reason ) ; org.junit.Assert.assertEquals ( "response.obj.description" , expectedErrorDescription , result.description ) ; } }
Source:
protected boolean setOperationParameterImpl ( android.hardware.SensorAdditionalInfo parameter ) { return ( android.hardware.SystemSensorManager.nativeSetOperationParameter ( mNativeInstance , parameter.type , parameter.floatValues , parameter.intValues ) ) == 0 ; }

Target:
protected boolean setOperationParameterImpl ( android.hardware.SensorAdditionalInfo parameter ) { int handle = - 1 ; if ( ( parameter.sensor ) != null ) handle = parameter.sensor.getHandle ( ) ; return ( android.hardware.SystemSensorManager.nativeSetOperationParameter ( mNativeInstance , handle , parameter.type , parameter.floatValues , parameter.intValues ) ) == 0 ; }
Source:
public static org.jetbrains.jps.builders.java.dependencyView.TypeRepr.AbstractType [ ] getType ( final org.jetbrains.jps.builders.java.dependencyView.DependencyContext context , final org.jetbrains.asm4.Type [ ] t ) { if ( ( t.length ) == 0 ) return org.jetbrains.jps.builders.java.dependencyView.TypeRepr.AbstractType.EMPTY_TYPE_ARRAY ; final org.jetbrains.jps.builders.java.dependencyView.TypeRepr.AbstractType [ ] r = new org.jetbrains.jps.builders.java.dependencyView.TypeRepr.AbstractType [ t.length ] ; for ( int i = 0 ; i < ( r.length ) ; i ++ ) { r [ i ] = org.jetbrains.jps.builders.java.dependencyView.TypeRepr.getType ( context , t [ i ] ) ; } return r ; }

Target:
public static org.jetbrains.jps.builders.java.dependencyView.TypeRepr.AbstractType [ ] getType ( final org.jetbrains.jps.builders.java.dependencyView.DependencyContext context , final org.jetbrains.org.objectweb.asm.Type [ ] t ) { if ( ( t.length ) == 0 ) return org.jetbrains.jps.builders.java.dependencyView.TypeRepr.AbstractType.EMPTY_TYPE_ARRAY ; final org.jetbrains.jps.builders.java.dependencyView.TypeRepr.AbstractType [ ] r = new org.jetbrains.jps.builders.java.dependencyView.TypeRepr.AbstractType [ t.length ] ; for ( int i = 0 ; i < ( r.length ) ; i ++ ) { r [ i ] = org.jetbrains.jps.builders.java.dependencyView.TypeRepr.getType ( context , t [ i ] ) ; } return r ; }
Source:
com.android.internal.telephony.gsm.GsmSmsAddress getAddress ( ) { com.android.internal.telephony.gsm.GsmSmsAddress ret ; int addressLength = ( pdu [ cur ] ) & 255 ; int lengthBytes = 2 + ( ( addressLength + 1 ) / 2 ) ; ret = new com.android.internal.telephony.gsm.GsmSmsAddress ( pdu , cur , lengthBytes ) ; cur += lengthBytes ; return ret ; }

Target:
com.android.internal.telephony.gsm.GsmSmsAddress getAddress ( ) { com.android.internal.telephony.gsm.GsmSmsAddress ret ; int addressLength = ( pdu [ cur ] ) & 255 ; int lengthBytes = 2 + ( ( addressLength + 1 ) / 2 ) ; try { ret = new com.android.internal.telephony.gsm.GsmSmsAddress ( pdu , cur , lengthBytes ) ; } catch ( java.text.ParseException e ) { android.telephony.Rlog.e ( com.android.internal.telephony.gsm.SmsMessage.LOG_TAG , e.getMessage ( ) ) ; ret = null ; } cur += lengthBytes ; return ret ; }
Source:
public void testApfAgainstBpf ( ) throws java.lang.Exception { java.lang.String [ ] tcpdump_filters = new java.lang.String [ ] { "udp" , "tcp" , "icmp" , "icmp6" , "udp port 53" , "arp" , "dst 239.255.255.250" , "arp or tcp or udp port 53" , "net 192.168.1.0/24" , "arp or icmp6 or portrange 53-54" , "portrange 53-54 or portrange 100-50000" , "tcp[tcpflags] & (tcp-ack|tcp-fin) != 0 and (ip[2:2] > 57 or icmp)" } ; java.lang.String pcap_filename = stageFile ( R.raw.apf ) ; for ( java.lang.String tcpdump_filter : tcpdump_filters ) { byte [ ] apf_program = android.net.apf.Bpf2Apf.convert ( android.net.apf.ApfTest.compileToBpf ( tcpdump_filter ) ) ; assertTrue ( ( "Failed to match for filter: " + tcpdump_filter ) , android.net.apf.ApfTest.compareBpfApf ( tcpdump_filter , pcap_filename , apf_program ) ) ; } }

Target:
public void testApfAgainstBpf ( ) throws java.lang.Exception { java.lang.String [ ] tcpdump_filters = new java.lang.String [ ] { "udp" , "tcp" , "icmp" , "icmp6" , "udp port 53" , "arp" , "dst 239.255.255.250" , "arp or tcp or udp port 53" , "net 192.168.1.0/24" , "arp or icmp6 or portrange 53-54" , "portrange 53-54 or portrange 100-50000" , "tcp[tcpflags] & (tcp-ack|tcp-fin) != 0 and (ip[2:2] > 57 or icmp)" } ; java.lang.String pcap_filename = stageFile ( R.raw.apf ) ; for ( java.lang.String tcpdump_filter : tcpdump_filters ) { byte [ ] apf_program = android.net.apf.Bpf2Apf.convert ( android.net.apf.ApfTest.compileToBpf ( tcpdump_filter ) ) ; org.junit.Assert.assertTrue ( ( "Failed to match for filter: " + tcpdump_filter ) , android.net.apf.ApfTest.compareBpfApf ( tcpdump_filter , pcap_filename , apf_program ) ) ; } }
Source:
public void shouldCacheFalse ( ) throws java.lang.Exception { mRequest.setShouldCache ( false ) ; mNetworkQueue.add ( mRequest ) ; mNetworkQueue.waitUntilEmpty ( com.android.volley.NetworkDispatcherTest.TIMEOUT_MILLIS ) ; assertFalse ( mCache.putCalled ) ; }

Target:
public void shouldCacheFalse ( ) throws java.lang.Exception { mRequest.setShouldCache ( false ) ; mDispatcher.processRequest ( mRequest ) ; org.mockito.Mockito.verify ( mCache , org.mockito.Mockito.never ( ) ) . put ( org.mockito.ArgumentMatchers.anyString ( ) , org.mockito.ArgumentMatchers.any ( Cache.Entry.class ) ) ; }
Source:
private int getItemForPosition ( int y ) { int adjustedy = ( y - ( mDragPoint ) ) - 32 ; int pos = myPointToPosition ( 0 , adjustedy ) ; if ( pos >= 0 ) { if ( pos <= ( mFirstDragPos ) ) { pos += 1 ; } } else if ( adjustedy < 0 ) { pos = 0 ; } return pos ; }

Target:
private int getItemForPosition ( int y ) { int adjustedy = ( y - ( mDragPoint ) ) - ( mItemHeightHalf ) ; int pos = myPointToPosition ( 0 , adjustedy ) ; if ( pos >= 0 ) { if ( pos <= ( mFirstDragPos ) ) { pos += 1 ; } } else if ( adjustedy < 0 ) { pos = 0 ; } return pos ; }
Source:
public void accept ( int result ) { if ( result == ( android.app.Activity.RESULT_OK ) ) { logFail ( ) ; status = FAIL ; } else { if ( ( ( mNm.getEffectsSuppressor ( ) ) == null ) || ( ! ( mNm.getEffectsSuppressor ( ) . equals ( MockListener.COMPONENT_NAME ) ) ) ) { status = PASS ; } else { logFail ( ) ; status = RETEST ; delay ( ) ; } } next ( ) ; }

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 void testSet1_IndexOutOfBoundsException ( ) { try { java.util.concurrent.CopyOnWriteArrayList c = new java.util.concurrent.CopyOnWriteArrayList ( ) ; c.set ( ( - 1 ) , "qwerty" ) ; shouldThrow ( ) ; } catch ( java.lang.IndexOutOfBoundsException success ) { } }

Target:
public void testSet1_IndexOutOfBoundsException ( ) { java.util.concurrent.CopyOnWriteArrayList c = jsr166.CopyOnWriteArrayListTest.populatedArray ( 5 ) ; java.util.List [ ] lists = new java.util.List [ ] { c , c.subList ( 1 , ( ( c.size ( ) ) - 1 ) ) } ; for ( java.util.List list : lists ) { try { list.set ( ( - 1 ) , "qwerty" ) ; shouldThrow ( ) ; } catch ( java.lang.IndexOutOfBoundsException success ) { } } }
Source:
public void testAesGcm96Udp6 ( ) throws java.lang.Exception { android.net.IpSecAlgorithm authCrypt = new android.net.IpSecAlgorithm ( android.net.IpSecAlgorithm.AUTH_CRYPT_AES_GCM , android.net.cts.IpSecManagerTest.getKey ( 288 ) , 96 ) ; checkTransform ( android.system.OsConstants.IPPROTO_UDP , android.net.cts.IpSecManagerTest.IPV6_LOOPBACK , null , null , authCrypt , false , 1 , false ) ; checkTransform ( android.system.OsConstants.IPPROTO_UDP , android.net.cts.IpSecManagerTest.IPV6_LOOPBACK , null , null , authCrypt , false , 1 , true ) ; }

Target:
public void testCryptTcp6 ( ) throws java.lang.Exception { android.net.IpSecAlgorithm crypt = new android.net.IpSecAlgorithm ( android.net.IpSecAlgorithm.CRYPT_AES_CBC , android.net.cts.IpSecManagerTest.CRYPT_KEY ) ; checkTransform ( android.system.OsConstants.IPPROTO_TCP , android.net.cts.IpSecManagerTest.IPV6_LOOPBACK , crypt , null , false , 1 , false ) ; checkTransform ( android.system.OsConstants.IPPROTO_TCP , android.net.cts.IpSecManagerTest.IPV6_LOOPBACK , crypt , null , false , 1 , true ) ; }
Source:
public static java.io.InputStream readEmbeddedFileAsStream ( java.lang.String filepath ) { try { java.net.URL url = com.android.ide.eclipse.adt.AdtPlugin.getEmbeddedFileUrl ( ( ( AndroidConstants.WS_SEP ) + filepath ) ) ; if ( url != null ) { return url.openStream ( ) ; } } catch ( java.net.MalformedURLException e ) { com.android.ide.eclipse.adt.AdtPlugin.log ( e , "Failed to read stream '%s'" , filepath ) ; } catch ( java.io.IOException e ) { com.android.ide.eclipse.adt.AdtPlugin.log ( e , "Failed to read stream '%s'" , filepath ) ; } return null ; }

Target:
public static java.io.InputStream readEmbeddedFileAsStream ( java.lang.String filepath ) { try { java.net.URL url = com.android.ide.eclipse.adt.AdtPlugin.getEmbeddedFileUrl ( ( ( AdtConstants.WS_SEP ) + filepath ) ) ; if ( url != null ) { return url.openStream ( ) ; } } catch ( java.net.MalformedURLException e ) { com.android.ide.eclipse.adt.AdtPlugin.log ( e , "Failed to read stream '%s'" , filepath ) ; } catch ( java.io.IOException e ) { com.android.ide.eclipse.adt.AdtPlugin.log ( e , "Failed to read stream '%s'" , filepath ) ; } return null ; }
Source:
public void onFeatureReady ( ) { android.util.Log.i ( com.android.internal.telephony.ims.MmTelFeatureCompatAdapter.TAG , "onFeatureReady called!" ) ; android.content.IntentFilter intentFilter = new android.content.IntentFilter ( com.android.ims.ImsManager.ACTION_IMS_INCOMING_CALL ) ; mContext.registerReceiver ( mReceiver , intentFilter ) ; try { mSessionId = mCompatFeature.startSession ( createIncomingCallPendingIntent ( ) , null ) ; mCompatFeature.addRegistrationListener ( mListener ) ; mCompatFeature.addRegistrationListener ( mRegCompatAdapter.getRegistrationListener ( ) ) ; } catch ( android.os.RemoteException e ) { android.util.Log.e ( com.android.internal.telephony.ims.MmTelFeatureCompatAdapter.TAG , ( "Couldn't start compat feature: " + ( e.getMessage ( ) ) ) ) ; } }

Target:
public void setUiTtyMode ( int mode , android.os.Message onCompleteMessage ) { try { mCompatFeature.setUiTTYMode ( mode , onCompleteMessage ) ; } catch ( android.os.RemoteException e ) { throw new java.lang.RuntimeException ( e.getMessage ( ) ) ; } }
Source:
private void onDensityChange ( ) { int index = mDensity.getSelectionIndex ( ) ; if ( index != ( - 1 ) ) { mSelectedConfiguration.setPixelDensityQualifier ( new com.android.ide.eclipse.adt.internal.resources.configurations.PixelDensityQualifier ( com.android.resources.Density.getByIndex ( index ) ) ) ; } else { mSelectedConfiguration.setPixelDensityQualifier ( new com.android.ide.eclipse.adt.internal.resources.configurations.PixelDensityQualifier ( ) ) ; } onChange ( true ) ; }

Target:
private void onDensityChange ( ) { int index = mDensity.getSelectionIndex ( ) ; if ( index != ( - 1 ) ) { mSelectedConfiguration.setPixelDensityQualifier ( new com.android.ide.common.resources.configuration.PixelDensityQualifier ( com.android.resources.Density.getByIndex ( index ) ) ) ; } else { mSelectedConfiguration.setPixelDensityQualifier ( new com.android.ide.common.resources.configuration.PixelDensityQualifier ( ) ) ; } onChange ( true ) ; }
Source:
public void testAesCbcHmacSha384Tcp4 ( ) 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_SHA384 , getAuthKey ( 384 ) , 192 ) ; checkTransform ( android.system.OsConstants.IPPROTO_TCP , android.net.cts.IpSecManagerTest.IPV4_LOOPBACK , crypt , auth , false , 1 , false ) ; checkTransform ( android.system.OsConstants.IPPROTO_TCP , android.net.cts.IpSecManagerTest.IPV4_LOOPBACK , crypt , auth , false , 1 , true ) ; }

Target:
public void testAesCbcHmacSha384Udp6 ( ) throws java.lang.Exception { android.net.IpSecAlgorithm crypt = new android.net.IpSecAlgorithm ( android.net.IpSecAlgorithm.CRYPT_AES_CBC , CRYPT_KEY ) ; android.net.IpSecAlgorithm auth = new android.net.IpSecAlgorithm ( android.net.IpSecAlgorithm.AUTH_HMAC_SHA384 , getKey ( 384 ) , 192 ) ; checkTransform ( android.system.OsConstants.IPPROTO_UDP , android.net.cts.IPV6_LOOPBACK , crypt , auth , null , false , 1 , false ) ; checkTransform ( android.system.OsConstants.IPPROTO_UDP , android.net.cts.IPV6_LOOPBACK , crypt , auth , null , false , 1 , true ) ; }
Source:
public com.android.dialer.assisteddialing.TransformationInfo getAssistedDialingExtras ( ) { if ( isAssistedDialed ( ) ) { return com.android.dialer.assisteddialing.TransformationInfo.newInstanceFromBundle ( getIntentExtras ( ) . getBundle ( TelephonyManagerCompat.ASSISTED_DIALING_EXTRAS ) ) ; } return null ; }

Target:
public boolean isAssistedDialed ( ) { if ( ( getIntentExtras ( ) ) != null ) { if ( ( ( getIntentExtras ( ) . getBoolean ( TelephonyManagerCompat.USE_ASSISTED_DIALING , false ) ) && ( ( getAssistedDialingExtras ( ) ) != null ) ) && ( ( android.os.Build.VERSION.SDK_INT ) <= ( com.android.dialer.assisteddialing.ConcreteCreator.BUILD_CODE_CEILING ) ) ) { return true ; } } if ( ( hasProperty ( TelephonyManagerCompat.PROPERTY_ASSISTED_DIALING_USED ) ) && ( ( android.os.Build.VERSION.SDK_INT ) > ( com.android.dialer.assisteddialing.ConcreteCreator.BUILD_CODE_CEILING ) ) ) { return true ; } return false ; }
Source:
public static com.android.tv.dvr.ScheduledRecording createTestRecordingWithIdAndPriorityAndPeriod ( long id , long channelId , long priority , long startTime , long endTime ) { return com.android.tv.dvr.ScheduledRecording.builder ( com.android.tv.testing.dvr.RecordingTestUtils.INPUT_ID , com.android.tv.testing.dvr.RecordingTestUtils.CHANNEL_ID , startTime , endTime ) . setId ( id ) . setChannelId ( channelId ) . setPriority ( priority ) . build ( ) ; }

Target:
public static com.android.tv.dvr.data.ScheduledRecording createTestRecordingWithIdAndPriorityAndPeriod ( long id , long channelId , long priority , long startTime , long endTime ) { return com.android.tv.dvr.data.ScheduledRecording.builder ( com.android.tv.testing.dvr.RecordingTestUtils.INPUT_ID , com.android.tv.testing.dvr.RecordingTestUtils.CHANNEL_ID , startTime , endTime ) . setId ( id ) . setChannelId ( channelId ) . setPriority ( priority ) . build ( ) ; }
Source:
public boolean hasResources ( com.android.ide.eclipse.adt.internal.resources.ResourceType type ) { if ( ( mResourcesMap ) != null ) { java.util.List < com.android.ide.eclipse.adt.internal.resources.ResourceItem > items = mResourcesMap.get ( type ) ; return ( items != null ) && ( ( items.size ( ) ) > 0 ) ; } return false ; }

Target:
public boolean hasResources ( com.android.resources.ResourceType type ) { if ( ( mResourcesMap ) != null ) { java.util.List < com.android.ide.eclipse.adt.internal.resources.ResourceItem > items = mResourcesMap.get ( type ) ; return ( items != null ) && ( ( items.size ( ) ) > 0 ) ; } return false ; }
Source:
void copy3DRangeFromUnchecked ( int xoff , int yoff , int zoff , int w , int h , int d , byte [ ] data ) { mRS.validate ( ) ; validate3DRange ( xoff , yoff , zoff , w , h , d ) ; mRS.nAllocationData3D ( getIDSafe ( ) , xoff , yoff , zoff , mSelectedLOD , w , h , d , data , data.length ) ; }

Target:
public void copy3DRangeFrom ( int xoff , int yoff , int zoff , int w , int h , int d , java.lang.Object array ) { copy3DRangeFromUnchecked ( xoff , yoff , zoff , w , h , d , array , validateObjectIsPrimitiveArray ( array , true ) , java.lang.reflect.Array.getLength ( array ) ) ; }
Source:
private void broadcastHandshake ( android.bluetooth.BluetoothDevice device , int status ) { android.content.Intent intent = new android.content.Intent ( android.bluetooth.BluetoothInputDevice.ACTION_HANDSHAKE ) ; intent.putExtra ( BluetoothDevice.EXTRA_DEVICE , device ) ; intent.putExtra ( BluetoothInputDevice.EXTRA_STATUS , status ) ; intent.addFlags ( Intent.FLAG_RECEIVER_REGISTERED_ONLY_BEFORE_BOOT ) ; sendBroadcast ( intent , com.android.bluetooth.hid.BLUETOOTH_PERM ) ; }

Target:
private void broadcastHandshake ( android.bluetooth.BluetoothDevice device , int status ) { android.content.Intent intent = new android.content.Intent ( android.bluetooth.BluetoothHidHost.ACTION_HANDSHAKE ) ; intent.putExtra ( BluetoothDevice.EXTRA_DEVICE , device ) ; intent.putExtra ( BluetoothHidHost.EXTRA_STATUS , status ) ; intent.addFlags ( Intent.FLAG_RECEIVER_REGISTERED_ONLY_BEFORE_BOOT ) ; sendBroadcast ( intent , com.android.bluetooth.hid.BLUETOOTH_PERM ) ; }
Source:
public void testAesCbcHmacMd5Tcp6 ( ) 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_MD5 , getAuthKey ( 128 ) , 96 ) ; checkTransform ( android.system.OsConstants.IPPROTO_TCP , android.net.cts.IpSecManagerTest.IPV6_LOOPBACK , crypt , auth , false , 1 , false ) ; checkTransform ( android.system.OsConstants.IPPROTO_TCP , android.net.cts.IpSecManagerTest.IPV6_LOOPBACK , crypt , auth , false , 1 , true ) ; }

Target:
public void testAesCbcHmacSha256Tcp4UdpEncap ( ) 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 , android.net.cts.IpSecManagerTest.getKey ( 256 ) , 128 ) ; checkTransform ( android.system.OsConstants.IPPROTO_TCP , android.net.cts.IpSecManagerTest.IPV4_LOOPBACK , crypt , auth , null , true , 1 , false ) ; checkTransform ( android.system.OsConstants.IPPROTO_TCP , android.net.cts.IpSecManagerTest.IPV4_LOOPBACK , crypt , auth , null , true , 1 , true ) ; }
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.BuildConfigImpl that = ( ( com.android.builder.internal.BuildConfigImpl ) ( 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 ) ) ; return mBuildConfigLines.equals ( that.mBuildConfigLines ) ; }
Source:
public void handleMessage ( android.os.Message msg ) { if ( ( msg.what ) == ( android.preference.SeekBarVolumizer.H.UPDATE_SLIDER ) ) { if ( ( mSeekBar ) != null ) { mLastProgress = msg.arg1 ; mLastAudibleStreamVolume = java.lang.Math.abs ( msg.arg2 ) ; final boolean muted = ( msg.arg2 ) < 0 ; if ( muted != ( mMuted ) ) { mMuted = muted ; if ( ( mCallback ) != null ) { mCallback.onMuted ( mMuted , isZenMuted ( ) ) ; } } updateSeekBar ( ) ; } } }

Target:
public void handleMessage ( android.os.Message msg ) { if ( ( msg.what ) == ( android.preference.SeekBarVolumizer.H.UPDATE_SLIDER ) ) { if ( ( mSeekBar ) != null ) { mLastProgress = msg.arg1 ; mLastAudibleStreamVolume = msg.arg2 ; final boolean muted = ( ( java.lang.Boolean ) ( msg.obj ) ) . booleanValue ( ) ; if ( muted != ( mMuted ) ) { mMuted = muted ; if ( ( mCallback ) != null ) { mCallback.onMuted ( mMuted , isZenMuted ( ) ) ; } } updateSeekBar ( ) ; } } }
Source:
private long getSuggestedRetryDelay ( android.os.AsyncResult ar ) throws java.lang.Exception { java.lang.Class [ ] cArgs = new java.lang.Class [ 1 ] ; cArgs [ 0 ] = android.os.AsyncResult.class ; java.lang.reflect.Method method = com.android.internal.telephony.dataconnection.DataConnection.class . getDeclaredMethod ( "getSuggestedRetryDelay" , cArgs ) ; method.setAccessible ( true ) ; return ( ( long ) ( method.invoke ( mDc , ar ) ) ) ; }

Target:
private long getSuggestedRetryDelay ( android.telephony.data.DataCallResponse response ) throws java.lang.Exception { java.lang.Class [ ] cArgs = new java.lang.Class [ 1 ] ; cArgs [ 0 ] = android.telephony.data.DataCallResponse.class ; java.lang.reflect.Method method = com.android.internal.telephony.dataconnection.DataConnection.class . getDeclaredMethod ( "getSuggestedRetryDelay" , cArgs ) ; method.setAccessible ( true ) ; return ( ( long ) ( method.invoke ( mDc , response ) ) ) ; }
Source:
private void broadcastIdleTime ( android.bluetooth.BluetoothDevice device , int idleTime ) { android.content.Intent intent = new android.content.Intent ( android.bluetooth.BluetoothHidHost.ACTION_IDLE_TIME_CHANGED ) ; intent.putExtra ( BluetoothDevice.EXTRA_DEVICE , device ) ; intent.putExtra ( BluetoothHidHost.EXTRA_IDLE_TIME , idleTime ) ; intent.addFlags ( Intent.FLAG_RECEIVER_REGISTERED_ONLY_BEFORE_BOOT ) ; sendBroadcast ( intent , com.android.bluetooth.hid.BLUETOOTH_PERM ) ; if ( com.android.bluetooth.hid.HidHostService.DBG ) { log ( ( ( ( "Idle time (" + device ) + "): " ) + idleTime ) ) ; } }

Target:
private void broadcastIdleTime ( android.bluetooth.BluetoothDevice device , int idleTime ) { android.content.Intent intent = new android.content.Intent ( android.bluetooth.BluetoothHidHost.ACTION_IDLE_TIME_CHANGED ) ; intent.putExtra ( BluetoothDevice.EXTRA_DEVICE , device ) ; intent.putExtra ( BluetoothHidHost.EXTRA_IDLE_TIME , idleTime ) ; intent.addFlags ( Intent.FLAG_RECEIVER_REGISTERED_ONLY_BEFORE_BOOT ) ; sendBroadcast ( intent , com.android.bluetooth.hid.BLUETOOTH_PERM ) ; if ( com.android.bluetooth.hid.HidHostService.DBG ) { android.util.Log.d ( com.android.bluetooth.hid.HidHostService.TAG , ( ( ( "Idle time (" + device ) + "): " ) + idleTime ) ) ; } }
Source:
public void getEuiccInfo2 ( android.telephony.euicc.EuiccCardManager.ResultCallback < byte [ ] > callback ) { try { getIEuiccCardController ( ) . getEuiccInfo2 ( mContext.getOpPackageName ( ) , new com.android.internal.telephony.euicc.IGetEuiccInfo2Callback.Stub ( ) { @ java.lang.Override public void onComplete ( int resultCode , byte [ ] info ) { callback.onComplete ( resultCode , info ) ; } } ) ; } catch ( android.os.RemoteException e ) { android.util.Log.e ( android.telephony.euicc.EuiccCardManager.TAG , "Error calling getEuiccInfo2" , e ) ; throw e.rethrowFromSystemServer ( ) ; } }

Target:
public void getEuiccInfo2 ( java.lang.String cardId , android.telephony.euicc.EuiccCardManager.ResultCallback < byte [ ] > callback ) { try { getIEuiccCardController ( ) . getEuiccInfo2 ( mContext.getOpPackageName ( ) , cardId , new com.android.internal.telephony.euicc.IGetEuiccInfo2Callback.Stub ( ) { @ java.lang.Override public void onComplete ( int resultCode , byte [ ] info ) { callback.onComplete ( resultCode , info ) ; } } ) ; } catch ( android.os.RemoteException e ) { android.util.Log.e ( android.telephony.euicc.EuiccCardManager.TAG , "Error calling getEuiccInfo2" , e ) ; throw e.rethrowFromSystemServer ( ) ; } }
Source:
private static java.lang.String toUnsignedString ( int i , int shift ) { char [ ] buf = new char [ 32 ] ; int charPos = 32 ; int radix = 1 << shift ; int mask = radix - 1 ; do { buf [ ( -- charPos ) ] = java.lang.Integer.digits [ ( i & mask ) ] ; i >>>= shift ; } while ( i != 0 ) ; return new java.lang.String ( buf , charPos , ( 32 - charPos ) ) ; }

Target:
private static java.lang.String toUnsignedString0 ( int i , int shift ) { char [ ] buf = new char [ 32 ] ; int charPos = 32 ; int radix = 1 << shift ; int mask = radix - 1 ; do { buf [ ( -- charPos ) ] = java.lang.Integer.digits [ ( i & mask ) ] ; i >>>= shift ; } while ( i != 0 ) ; return new java.lang.String ( buf , charPos , ( 32 - charPos ) ) ; }
Source:
private android.hardware.cts.helpers.sensorverification.StandardDeviationVerification getVerification ( float [ ] threshold , float [ ] ... values ) { android.hardware.cts.helpers.sensorverification.StandardDeviationVerification verification = new android.hardware.cts.helpers.sensorverification.StandardDeviationVerification ( threshold ) ; for ( float [ ] value : values ) { verification.addSensorEvent ( new android.hardware.cts.helpers.TestSensorEvent ( null , 0 , 0 , value ) ) ; } return verification ; }

Target:
private static android.hardware.cts.helpers.sensorverification.StandardDeviationVerification getVerification ( float [ ] threshold , float [ ] ... values ) { java.util.Collection < android.hardware.cts.helpers.TestSensorEvent > events = new java.util.ArrayList < > ( values.length ) ; for ( float [ ] value : values ) { events.add ( new android.hardware.cts.helpers.TestSensorEvent ( null , 0 , 0 , value ) ) ; } android.hardware.cts.helpers.sensorverification.StandardDeviationVerification verification = new android.hardware.cts.helpers.sensorverification.StandardDeviationVerification ( threshold ) ; verification.addSensorEvents ( events ) ; return verification ; }
Source:
public static void recordLinearCountHistogram ( java.lang.String name , int sample , int min , int max , int numBuckets ) { if ( ( org.chromium.base.metrics.RecordHistogram.sDisabledBy ) != null ) return ; long key = org.chromium.base.metrics.RecordHistogram.getCachedHistogramKey ( name ) ; long result = org.chromium.base.metrics.RecordHistogram.nativeRecordLinearCountHistogram ( name , key , sample , min , max , numBuckets ) ; if ( result != key ) org.chromium.base.metrics.RecordHistogram.sCache.put ( name , result ) ; }

Target:
public static void recordPercentageHistogram ( java.lang.String name , int sample ) { if ( org.chromium.base.metrics.RecordHistogram.sIsDisabledForTests ) return ; long key = org.chromium.base.metrics.RecordHistogram.getCachedHistogramKey ( name ) ; long result = org.chromium.base.metrics.RecordHistogram.nativeRecordEnumeratedHistogram ( name , key , sample , 101 ) ; if ( result != key ) org.chromium.base.metrics.RecordHistogram.sCache.put ( name , result ) ; }
Source:
private static void removeUser ( java.util.prefs.Preferences prefs , java.lang.String user ) { java.lang.String allUsersString = prefs.get ( com.google.gct.login.GoogleLoginPrefs.USERS , "" ) ; java.util.List < java.lang.String > allUsers = new java.util.ArrayList < java.lang.String > ( ) ; for ( java.lang.String scope : allUsersString.split ( com.google.gct.login.GoogleLoginPrefs.DELIMITER ) ) { allUsers.add ( scope ) ; } allUsers.remove ( user ) ; com.google.common.base.Joiner joiner = com.google.common.base.Joiner.on ( com.google.gct.login.GoogleLoginPrefs.DELIMITER ) ; prefs.put ( com.google.gct.login.GoogleLoginPrefs.USERS , joiner.join ( allUsers ) ) ; }

Target:
private static void removeUser ( java.util.prefs.Preferences prefs , java.lang.String user ) { java.lang.String allUsersString = prefs.get ( com.google.gct.login.GoogleLoginPrefs.USERS , "" ) ; java.util.List < java.lang.String > allUsers = com.google.common.collect.Lists.newArrayList ( ) ; for ( java.lang.String scope : allUsersString.split ( com.google.gct.login.GoogleLoginPrefs.DELIMITER ) ) { allUsers.add ( scope ) ; } allUsers.remove ( user ) ; com.google.common.base.Joiner joiner = com.google.common.base.Joiner.on ( com.google.gct.login.GoogleLoginPrefs.DELIMITER ) ; prefs.put ( com.google.gct.login.GoogleLoginPrefs.USERS , joiner.join ( allUsers ) ) ; }