auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
public com.google.doclava.FieldInfo cloneForClass ( com.google.doclava.ClassInfo newContainingClass ) { return new com.google.doclava.FieldInfo ( name ( ) , newContainingClass , realContainingClass ( ) , isPublic ( ) , isProtected ( ) , isPackagePrivate ( ) , isPrivate ( ) , isFinal ( ) , isStatic ( ) , isTransient ( ) , isVolatile ( ) , isSynthetic ( ) , mType , getRawCommentText ( ) , mConstantValue , position ( ) , annotations ( ) ) ; }

Target:
public com.google.doclava.FieldInfo cloneForClass ( com.google.doclava.ClassInfo newContainingClass ) { if ( newContainingClass == ( containingClass ( ) ) ) { return this ; } return new com.google.doclava.FieldInfo ( name ( ) , newContainingClass , realContainingClass ( ) , isPublic ( ) , isProtected ( ) , isPackagePrivate ( ) , isPrivate ( ) , isFinal ( ) , isStatic ( ) , isTransient ( ) , isVolatile ( ) , isSynthetic ( ) , mType , getRawCommentText ( ) , mConstantValue , position ( ) , annotations ( ) ) ; }
Source:
public void testCanEncodeCharSequence ( ) { assertTrue ( org.apache.harmony.tests.java.nio.charset.ASCIICharsetEncoderTest.encoder.canEncode ( "w" ) ) ; assertFalse ( org.apache.harmony.tests.java.nio.charset.ASCIICharsetEncoderTest.encoder.canEncode ( "슣" ) ) ; assertFalse ( org.apache.harmony.tests.java.nio.charset.ASCIICharsetEncoderTest.encoder.canEncode ( "𐀀" ) ) ; try { org.apache.harmony.tests.java.nio.charset.ASCIICharsetEncoderTest.encoder.canEncode ( null ) ; } catch ( java.lang.NullPointerException e ) { } assertTrue ( org.apache.harmony.tests.java.nio.charset.ASCIICharsetEncoderTest.encoder.canEncode ( "" ) ) ; }

Target:
public void testCanEncodeCharSequence ( ) { assertTrue ( encoder.canEncode ( "w" ) ) ; assertFalse ( encoder.canEncode ( "슣" ) ) ; assertFalse ( encoder.canEncode ( "𐀀" ) ) ; try { encoder.canEncode ( null ) ; } catch ( java.lang.NullPointerException e ) { } assertTrue ( encoder.canEncode ( "" ) ) ; }
Source:
protected void clean ( org.eclipse.core.runtime.IProgressMonitor monitor ) throws org.eclipse.core.runtime.CoreException { super . clean ( monitor ) ; org.eclipse.core.resources.IProject project = getProject ( ) ; com.android.ide.eclipse.adt.AdtPlugin.printBuildToConsole ( BuildVerbosity.VERBOSE , project , Messages.Removing_Generated_Classes ) ; removeDerivedResources ( mGenFolder , monitor ) ; removeMarkersFromProject ( project , AndroidConstants.MARKER_AAPT_COMPILE ) ; removeMarkersFromProject ( project , AndroidConstants.MARKER_XML ) ; removeMarkersFromProject ( project , AndroidConstants.MARKER_AIDL ) ; }

Target:
protected void clean ( org.eclipse.core.runtime.IProgressMonitor monitor ) throws org.eclipse.core.runtime.CoreException { super . clean ( monitor ) ; doClean ( getProject ( ) , monitor ) ; if ( ( mGenFolder ) != null ) { mGenFolder.refreshLocal ( IResource.DEPTH_INFINITE , monitor ) ; } }
Source:
private java.io.File createDex ( vogar.Action action , java.io.File actionJar ) { java.io.File dex = run.localFile ( action , "classes.dex" ) ; vogar.Classpath classesToDex = vogar.Classpath.of ( actionJar ) ; classesToDex.addAll ( run.classpath ) ; run.androidSdk.dex ( dex , classesToDex ) ; return dex ; }

Target:
private java.io.File createDex ( vogar.Action action , java.io.File actionJar ) { java.io.File dex = run.localFile ( action , "classes.dex" ) ; vogar.Classpath classesToDex = vogar.Classpath.of ( actionJar ) ; classesToDex.addAll ( run.classpath ) ; if ( run.useJack ) { throw new java.lang.UnsupportedOperationException ( "Jack support for --mode=activity not yet implemented" ) ; } run.androidSdk.dex ( dex , classesToDex ) ; return dex ; }
Source:
private void informWifiStateBatteryStats ( int state ) { try { mBatteryStats.noteWifiState ( state , null ) ; } catch ( android.os.RemoteException e ) { android.util.Log.e ( com.android.server.wifi.WifiStateTracker.TAG , ( "Battery stats unreachable " + ( e.getMessage ( ) ) ) ) ; } }

Target:
private void informWifiStateBatteryStats ( int state ) { try { mBatteryStats.noteWifiState ( state , null ) ; } catch ( android.os.RemoteException e ) { android.util.Log.e ( com.android.server.wifi.WifiStateTracker.TAG , ( "Battery stats unreachable " + ( e.getMessage ( ) ) ) ) ; } catch ( java.util.concurrent.RejectedExecutionException e ) { android.util.Log.e ( com.android.server.wifi.WifiStateTracker.TAG , ( "Battery stats executor is being shutdown " + ( e.getMessage ( ) ) ) ) ; } }
Source:
public void getAvailableNetworks ( android.os.Message response ) { com.android.internal.telephony.RILRequest rr = com.android.internal.telephony.RILRequest.obtain ( com.android.internal.telephony.RIL_REQUEST_QUERY_AVAILABLE_NETWORKS , response ) ; if ( com.android.internal.telephony.RIL.RILJ_LOGD ) riljLog ( ( ( ( rr.serialString ( ) ) + "> " ) + ( com.android.internal.telephony.RIL.requestToString ( rr.mRequest ) ) ) ) ; send ( rr ) ; }

Target:
public void getAvailableNetworks ( android.os.Message response ) { com.android.internal.telephony.RILRequest rr = com.android.internal.telephony.RILRequest.obtain ( com.android.internal.telephony.RIL_REQUEST_QUERY_AVAILABLE_NETWORKS , response , mRILDefaultWorkSource ) ; if ( com.android.internal.telephony.RIL.RILJ_LOGD ) riljLog ( ( ( ( rr.serialString ( ) ) + "> " ) + ( com.android.internal.telephony.RIL.requestToString ( rr.mRequest ) ) ) ) ; send ( rr ) ; }
Source:
public com.android.tv.dvr.RecordedProgram addRecordedProgramInternal ( com.android.tv.dvr.RecordedProgram recordedProgram ) { com.android.tv.common.SoftPreconditions.checkState ( ( ( recordedProgram.getId ( ) ) == ( RecordedProgram.ID_NOT_SET ) ) , com.android.tv.dvr.DvrDataManagerInMemoryImpl.TAG , ( ( ( "expected id of " + ( RecordedProgram.ID_NOT_SET ) ) + " but was " ) + recordedProgram ) ) ; recordedProgram = com.android.tv.dvr.RecordedProgram.buildFrom ( recordedProgram ) . setId ( mNextId.incrementAndGet ( ) ) . build ( ) ; mRecordedPrograms.put ( recordedProgram.getId ( ) , recordedProgram ) ; notifyRecordedProgramsAdded ( recordedProgram ) ; return recordedProgram ; }

Target:
public com.android.tv.dvr.data.RecordedProgram addRecordedProgramInternal ( com.android.tv.dvr.data.RecordedProgram recordedProgram ) { com.android.tv.common.SoftPreconditions.checkState ( ( ( recordedProgram.getId ( ) ) == ( com.android.tv.dvr.data.RecordedProgram.ID_NOT_SET ) ) , com.android.tv.dvr.DvrDataManagerInMemoryImpl.TAG , ( ( ( "expected id of " + ( com.android.tv.dvr.data.RecordedProgram.ID_NOT_SET ) ) + " but was " ) + recordedProgram ) ) ; recordedProgram = com.android.tv.dvr.data.RecordedProgram.buildFrom ( recordedProgram ) . setId ( mNextId.incrementAndGet ( ) ) . build ( ) ; mRecordedPrograms.put ( recordedProgram.getId ( ) , recordedProgram ) ; notifyRecordedProgramsAdded ( recordedProgram ) ; return recordedProgram ; }
Source:
public boolean connect ( android.bluetooth.BluetoothDevice device ) { com.android.bluetooth.pbapclient.PbapClientService service = getService ( ) ; if ( service == null ) { return false ; } return service.connect ( device ) ; }

Target:
public boolean connect ( android.bluetooth.BluetoothDevice device ) { com.android.bluetooth.pbapclient.PbapClientService service = getService ( ) ; if ( com.android.bluetooth.pbapclient.PbapClientService.DBG ) android.util.Log.d ( com.android.bluetooth.pbapclient.PbapClientService.TAG , "PbapClient Binder connect " ) ; if ( service == null ) { android.util.Log.e ( com.android.bluetooth.pbapclient.PbapClientService.TAG , "PbapClient Binder connect no service" ) ; return false ; } return service.connect ( device ) ; }
Source:
protected java.util.HashMap < java.lang.String , java.lang.Object > getSmsTrackerMap ( java.lang.String destAddr , java.lang.String scAddr , java.lang.String text , com.android.internal.telephony.SmsMessageBase.SubmitPduBase pdu ) { java.util.HashMap < java.lang.String , java.lang.Object > map = new java.util.HashMap < java.lang.String , java.lang.Object > ( ) ; map.put ( "destAddr" , destAddr ) ; map.put ( "scAddr" , scAddr ) ; map.put ( "text" , text ) ; map.put ( "smsc" , pdu.encodedScAddress ) ; map.put ( "pdu" , pdu.encodedMessage ) ; return map ; }

Target:
protected java.util.HashMap < java.lang.String , java.lang.Object > getSmsTrackerMap ( java.lang.String destAddr , java.lang.String scAddr , java.lang.String text , com.android.internal.telephony.SmsMessageBase.SubmitPduBase pdu ) { java.util.HashMap < java.lang.String , java.lang.Object > map = new java.util.HashMap < java.lang.String , java.lang.Object > ( ) ; map.put ( com.android.internal.telephony.SMSDispatcher.MAP_KEY_DEST_ADDR , destAddr ) ; map.put ( com.android.internal.telephony.SMSDispatcher.MAP_KEY_SC_ADDR , scAddr ) ; map.put ( com.android.internal.telephony.SMSDispatcher.MAP_KEY_TEXT , text ) ; map.put ( com.android.internal.telephony.SMSDispatcher.MAP_KEY_SMSC , pdu.encodedScAddress ) ; map.put ( com.android.internal.telephony.SMSDispatcher.MAP_KEY_PDU , pdu.encodedMessage ) ; return map ; }
Source:
public void testEquals_Normal ( ) { tests.api.java.nio.charset.CharsetTest.MockCharset c1 = new tests.api.java.nio.charset.CharsetTest.MockCharset ( "mock" , null ) ; tests.api.java.nio.charset.CharsetTest.MockCharset2 c2 = new tests.api.java.nio.charset.CharsetTest.MockCharset2 ( "mock" , null ) ; assertTrue ( c1.equals ( c2 ) ) ; assertTrue ( c2.equals ( c1 ) ) ; c2 = new tests.api.java.nio.charset.CharsetTest.MockCharset2 ( "Mock" , null ) ; assertFalse ( c1.equals ( c2 ) ) ; assertFalse ( c2.equals ( c1 ) ) ; }

Target:
public void testEquals_Normal ( ) { org.apache.harmony.tests.java.nio.charset.CharsetTest.MockCharset c1 = new org.apache.harmony.tests.java.nio.charset.CharsetTest.MockCharset ( "mock" , null ) ; org.apache.harmony.tests.java.nio.charset.CharsetTest.MockCharset2 c2 = new org.apache.harmony.tests.java.nio.charset.CharsetTest.MockCharset2 ( "mock" , null ) ; assertTrue ( c1.equals ( c2 ) ) ; assertTrue ( c2.equals ( c1 ) ) ; c2 = new org.apache.harmony.tests.java.nio.charset.CharsetTest.MockCharset2 ( "Mock" , null ) ; assertFalse ( c1.equals ( c2 ) ) ; assertFalse ( c2.equals ( c1 ) ) ; }
Source:
private int performDexOptInternal ( java.lang.String packageName , boolean checkProfiles , java.lang.String targetCompilerFilter , boolean force ) { android.content.pm.PackageParser.Package p ; synchronized ( mPackages ) { p = mPackages.get ( packageName ) ; if ( p == null ) { return PackageDexOptimizer.DEX_OPT_FAILED ; } mPackageUsage.write ( false ) ; } long callingId = android.os.Binder.clearCallingIdentity ( ) ; try { synchronized ( mInstallLock ) { return performDexOptInternalWithDependenciesLI ( p , checkProfiles , targetCompilerFilter , force ) ; } } finally { android.os.Binder.restoreCallingIdentity ( callingId ) ; } }

Target:
private int performDexOptInternal ( java.lang.String packageName , boolean checkProfiles , java.lang.String targetCompilerFilter , boolean force ) { android.content.pm.PackageParser.Package p ; synchronized ( mPackages ) { p = mPackages.get ( packageName ) ; if ( p == null ) { return PackageDexOptimizer.DEX_OPT_FAILED ; } mPackageUsage.maybeWriteAsync ( mPackages ) ; mCompilerStats.maybeWriteAsync ( ) ; } long callingId = android.os.Binder.clearCallingIdentity ( ) ; try { synchronized ( mInstallLock ) { return performDexOptInternalWithDependenciesLI ( p , checkProfiles , targetCompilerFilter , force ) ; } } finally { android.os.Binder.restoreCallingIdentity ( callingId ) ; } }
Source:
public void addF64 ( android.support.v8.renderscript.Double4 v ) { if ( android.support.v8.renderscript.RenderScript.shouldThunk ( ) ) { mN.addF64 ( new android.support.v8.renderscript.Double4 ( v.x , v.y , v.z , v.w ) ) ; return ; } addF64 ( v.x ) ; addF64 ( v.y ) ; addF64 ( v.z ) ; addF64 ( v.w ) ; }

Target:
public void addI8 ( android.support.v8.renderscript.Byte2 v ) { if ( android.support.v8.renderscript.RenderScript.shouldThunk ( ) ) { mN.addI8 ( v ) ; return ; } addI8 ( v.x ) ; addI8 ( v.y ) ; }
Source:
private static boolean hasOperand ( lombok.ast.Expression operand , java.util.List < lombok.ast.MethodInvocation > list ) { for ( lombok.ast.MethodInvocation method : list ) { lombok.ast.Expression operand1 = method.astOperand ( ) ; if ( operand.toString ( ) . equals ( operand1.toString ( ) ) ) { return true ; } } return false ; }

Target:
private static boolean hasFirstArgument ( com.intellij.psi.PsiExpression argument , java.util.List < com.intellij.psi.PsiMethodCallExpression > list ) { for ( com.intellij.psi.PsiMethodCallExpression call : list ) { com.intellij.psi.PsiExpression [ ] expressions = call.getArgumentList ( ) . getExpressions ( ) ; if ( ( expressions.length ) > 0 ) { com.intellij.psi.PsiExpression argument2 = expressions [ 0 ] ; if ( argument.getText ( ) . equals ( argument2.getText ( ) ) ) { return true ; } } } return false ; }
Source:
private static org.w3c.dom.Document parse ( @ com.android.annotations.NonNull java.lang.String xml , @ com.android.annotations.NonNull org.xml.sax.InputSource input , boolean checkBom ) throws java.io.IOException , javax.xml.parsers.ParserConfigurationException , org.xml.sax.SAXException { try { javax.xml.parsers.SAXParserFactory factory = javax.xml.parsers.SAXParserFactory.newInstance ( ) ; factory.setFeature ( com.android.utils.PositionXmlParser.NAMESPACE_FEATURE , true ) ; factory.setFeature ( com.android.utils.PositionXmlParser.NAMESPACE_PREFIX_FEATURE , true ) ; factory.setFeature ( com.android.utils.PositionXmlParser.PROVIDE_XMLNS_URIS , true ) ; javax.xml.parsers.SAXParser parser = factory.newSAXParser ( ) ; com.android.utils.PositionXmlParser.DomBuilder handler = new com.android.utils.PositionXmlParser.DomBuilder ( xml ) ; org.xml.sax.XMLReader xmlReader = parser.getXMLReader ( ) ; xmlReader.setProperty ( "http://xml.org/sax/properties/lexical-handler" , handler ) ; parser.parse ( input , handler ) ; return handler.getDocument ( ) ; } catch ( org.xml.sax.SAXException e ) { if ( checkBom && ( e.getMessage ( ) . contains ( "Content is not allowed in prolog" ) ) ) { xml = xml.replaceFirst ( "^([\\W]+)<" , "<" ) ; return com.android.utils.PositionXmlParser.parse ( xml , new org.xml.sax.InputSource ( new java.io.StringReader ( xml ) ) , false ) ; } throw e ; } }

Target:
public static org.w3c.dom.Document parse ( @ com.android.annotations.NonNull java.lang.String xml ) throws java.io.IOException , javax.xml.parsers.ParserConfigurationException , org.xml.sax.SAXException { xml = com.android.utils.XmlUtils.stripBom ( xml ) ; return com.android.utils.PositionXmlParser.parse ( xml , new org.xml.sax.InputSource ( new java.io.StringReader ( xml ) ) , true , true ) ; }
Source:
public void sendSingleScanRequestWithNoResults ( ) throws java.lang.Exception { android.net.wifi.WifiScanner.ScanSettings requestSettings = createRequest ( WifiScanner.WIFI_BAND_BOTH , 0 , 0 , 20 , WifiScanner.REPORT_EVENT_AFTER_EACH_SCAN ) ; doSuccessfulSingleScan ( requestSettings , computeSingleScanNativeSettings ( requestSettings ) , com.android.server.wifi.ScanResults.create ( 0 , new int [ 0 ] ) ) ; }

Target:
public void sendSingleScanRequestWithBadRawResults ( ) throws java.lang.Exception { android.net.wifi.WifiScanner.ScanSettings requestSettings = com.android.server.wifi.ScanTestUtil.createRequest ( WifiScanner.WIFI_BAND_24_GHZ , 0 , 0 , 20 , WifiScanner.REPORT_EVENT_AFTER_EACH_SCAN ) ; com.android.server.wifi.ScanResults results = com.android.server.wifi.ScanResults.createOverflowing ( 0 , 0 , com.android.server.wifi.ScanResults.generateNativeResults ( 0 , 5150 , 5171 ) ) ; doSuccessfulSingleScan ( requestSettings , com.android.server.wifi.ScanTestUtil.computeSingleScanNativeSettings ( requestSettings ) , results ) ; }
Source:
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 , getAuthKey ( 256 ) , 128 ) ; checkTransform ( android.system.OsConstants.IPPROTO_UDP , android.net.cts.IpSecManagerTest.IPV6_LOOPBACK , crypt , auth ) ; }

Target:
public void testAesCbcHmacSha1Tcp4 ( ) 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 , getAuthKey ( 160 ) , 96 ) ; checkTransform ( android.system.OsConstants.IPPROTO_TCP , android.net.cts.IpSecManagerTest.IPV4_LOOPBACK , crypt , auth , false , 1 ) ; }
Source:
public void startSwipe ( android.support.v7.widget.RecyclerView.ViewHolder viewHolder ) { if ( ! ( mCallback.hasSwipeFlag ( mRecyclerView , viewHolder ) ) ) { android.util.Log.e ( android.support.v7.widget.helper.ItemTouchHelper.TAG , "Start swipe has been called but dragging is not enabled" ) ; return ; } if ( ( viewHolder.itemView.getParent ( ) ) != ( mRecyclerView ) ) { android.util.Log.e ( android.support.v7.widget.helper.ItemTouchHelper.TAG , ( "Start swipe has been called with a view holder which is not a child of " + "the RecyclerView controlled by this ItemTouchHelper." ) ) ; return ; } obtainVelocityTracker ( ) ; mDx = mDy = 0.0F ; select ( viewHolder , android.support.v7.widget.helper.ItemTouchHelper.ACTION_STATE_SWIPE ) ; }

Target:
public void startSwipe ( android.support.v7.widget.RecyclerView.ViewHolder viewHolder ) { if ( ! ( mCallback.hasSwipeFlag ( mRecyclerView , viewHolder ) ) ) { android.util.Log.e ( android.support.v7.widget.helper.ItemTouchHelper.TAG , "Start swipe has been called but swiping is not enabled" ) ; return ; } if ( ( viewHolder.itemView.getParent ( ) ) != ( mRecyclerView ) ) { android.util.Log.e ( android.support.v7.widget.helper.ItemTouchHelper.TAG , ( "Start swipe has been called with a view holder which is not a child of " + "the RecyclerView controlled by this ItemTouchHelper." ) ) ; return ; } obtainVelocityTracker ( ) ; mDx = mDy = 0.0F ; select ( viewHolder , android.support.v7.widget.helper.ItemTouchHelper.ACTION_STATE_SWIPE ) ; }
Source:
public void testFormattingUncommonTimeZoneAbbreviations ( ) { java.lang.String fmt = "yyyy-MM-dd HH:mm:ss.SSS z" ; java.lang.String date = "1970-01-01 01:00:00.000 CET" ; java.text.SimpleDateFormat sdf = new java.text.SimpleDateFormat ( fmt , java.util.Locale.US ) ; sdf.setTimeZone ( java.util.TimeZone.getTimeZone ( "Europe/Berlin" ) ) ; assertEquals ( date , sdf.format ( new java.util.Date ( 0 ) ) ) ; sdf = new java.text.SimpleDateFormat ( fmt , java.util.Locale.US ) ; sdf.setTimeZone ( java.util.TimeZone.getTimeZone ( "Europe/Zurich" ) ) ; assertEquals ( date , sdf.format ( new java.util.Date ( 0 ) ) ) ; }

Target:
private static void assertCannotParse ( java.util.Locale l , java.lang.String fmt , java.lang.String value ) { java.text.SimpleDateFormat sdf = new java.text.SimpleDateFormat ( fmt , l ) ; java.text.ParsePosition pp = new java.text.ParsePosition ( 0 ) ; java.util.Date d = sdf.parse ( value , pp ) ; assertNull ( ( ( ( ( ( "Value " + value ) + " must not parse in locale " ) + l ) + " with format " ) + fmt ) , d ) ; }
Source:
public java.lang.String getMessage ( ) { com.android.sched.util.location.Location existingSource = existingType.getLocation ( ) ; return ( ( ( ( ( ( ( "Failed to perform import: Type " + ( com.android.jack.Jack.getUserFriendlyFormatter ( ) . getName ( existingType ) ) ) + " from " ) + ( failedToImportSource.getDescription ( ) ) ) + " has already been imported from " ) + ( existingSource.getDescription ( ) ) ) + " (see property '" ) + ( JayceFileImporter.COLLISION_POLICY.getName ( ) ) ) + "' for type collision policy)" ; }

Target:
public java.lang.String getMessage ( ) { com.android.sched.util.location.Location existingSource = existingType.getLocation ( ) ; return ( ( ( ( ( ( ( "Type " + ( com.android.jack.Jack.getUserFriendlyFormatter ( ) . getName ( existingType ) ) ) + " from " ) + ( failedToImportSource.getDescription ( ) ) ) + " has already been imported from " ) + ( existingSource.getDescription ( ) ) ) + " (see property '" ) + ( JayceFileImporter.COLLISION_POLICY.getName ( ) ) ) + "' for type collision policy)" ; }
Source:
public void moveCompleteApp ( java.lang.String fromUuid , java.lang.String toUuid , java.lang.String packageName , java.lang.String dataAppName , int appId , java.lang.String seInfo , int targetSdkVersion ) throws com.android.internal.os.InstallerConnection.InstallerException { checkLock ( ) ; try { mInstalld.moveCompleteApp ( fromUuid , toUuid , packageName , dataAppName , appId , seInfo , targetSdkVersion ) ; } catch ( android.os.RemoteException | android.os.ServiceSpecificException e ) { throw new com.android.internal.os.InstallerConnection.InstallerException ( e.getMessage ( ) ) ; } }

Target:
public void moveCompleteApp ( java.lang.String fromUuid , java.lang.String toUuid , java.lang.String packageName , java.lang.String dataAppName , int appId , java.lang.String seInfo , int targetSdkVersion ) throws com.android.internal.os.InstallerConnection.InstallerException { if ( ! ( checkBeforeRemote ( ) ) ) return ; try { mInstalld.moveCompleteApp ( fromUuid , toUuid , packageName , dataAppName , appId , seInfo , targetSdkVersion ) ; } catch ( android.os.RemoteException | android.os.ServiceSpecificException e ) { throw new com.android.internal.os.InstallerConnection.InstallerException ( e.getMessage ( ) ) ; } }
Source:
public void startsOutAvailable ( ) { mTestedSm = new com.android.server.connectivity.tethering.TetherInterfaceStateMachine ( com.android.server.connectivity.tethering.TetherInterfaceStateMachineTest.IFACE_NAME , mLooper.getLooper ( ) , android.net.ConnectivityManager.TETHERING_BLUETOOTH , mSharedLog , mNMService , mStatsService , mTetherHelper ) ; mTestedSm.start ( ) ; mLooper.dispatchAll ( ) ; org.mockito.Mockito.verify ( mTetherHelper ) . updateInterfaceState ( mTestedSm , com.android.server.connectivity.tethering.IControlsTethering.STATE_AVAILABLE , android.net.ConnectivityManager.TETHER_ERROR_NO_ERROR ) ; org.mockito.Mockito.verify ( mTetherHelper ) . updateLinkProperties ( org.mockito.Matchers.eq ( mTestedSm ) , org.mockito.Matchers.any ( android.net.LinkProperties.class ) ) ; org.mockito.Mockito.verifyNoMoreInteractions ( mTetherHelper , mNMService , mStatsService ) ; }

Target:
public void startsOutAvailable ( ) { mTestedSm = new com.android.server.connectivity.tethering.TetherInterfaceStateMachine ( com.android.server.connectivity.tethering.TetherInterfaceStateMachineTest.IFACE_NAME , mLooper.getLooper ( ) , android.net.ConnectivityManager.TETHERING_BLUETOOTH , mSharedLog , mNMService , mStatsService , mTetherHelper , mTetheringDependencies ) ; mTestedSm.start ( ) ; mLooper.dispatchAll ( ) ; org.mockito.Mockito.verify ( mTetherHelper ) . updateInterfaceState ( mTestedSm , com.android.server.connectivity.tethering.IControlsTethering.STATE_AVAILABLE , android.net.ConnectivityManager.TETHER_ERROR_NO_ERROR ) ; org.mockito.Mockito.verify ( mTetherHelper ) . updateLinkProperties ( org.mockito.Matchers.eq ( mTestedSm ) , org.mockito.Matchers.any ( android.net.LinkProperties.class ) ) ; org.mockito.Mockito.verifyNoMoreInteractions ( mTetherHelper , mNMService , mStatsService ) ; }
Source:
public java.util.List < android.service.carrier.CarrierIdentifier > getAllowedCarriers ( int slotId ) { try { com.android.internal.telephony.ITelephony service = getITelephony ( ) ; if ( service != null ) { return service.getAllowedCarriers ( slotId ) ; } } catch ( android.os.RemoteException e ) { android.util.Log.e ( android.telephony.TelephonyManager.TAG , "Error calling ITelephony#getAllowedCarriers" , e ) ; } catch ( java.lang.NullPointerException e ) { android.util.Log.e ( android.telephony.TelephonyManager.TAG , "Error calling ITelephony#setAllowedCarriers" , e ) ; } return new java.util.ArrayList < android.service.carrier.CarrierIdentifier > ( 0 ) ; }

Target:
public java.util.List < android.service.carrier.CarrierIdentifier > getAllowedCarriers ( int slotIndex ) { try { com.android.internal.telephony.ITelephony service = getITelephony ( ) ; if ( service != null ) { return service.getAllowedCarriers ( slotIndex ) ; } } catch ( android.os.RemoteException e ) { android.util.Log.e ( android.telephony.TelephonyManager.TAG , "Error calling ITelephony#getAllowedCarriers" , e ) ; } catch ( java.lang.NullPointerException e ) { android.util.Log.e ( android.telephony.TelephonyManager.TAG , "Error calling ITelephony#getAllowedCarriers" , e ) ; } return new java.util.ArrayList < android.service.carrier.CarrierIdentifier > ( 0 ) ; }
Source:
void stopDtmfTone ( com.android.server.telecom.Call call ) { final java.lang.String callId = mCallIdMapper.getCallId ( call ) ; if ( ( callId != null ) && ( isServiceValid ( "stopDtmfTone" ) ) ) { try { logOutgoing ( "stopDtmfTone %s" , callId ) ; mServiceInterface.stopDtmfTone ( callId ) ; } catch ( android.os.RemoteException e ) { } } }

Target:
void playDtmfTone ( com.android.server.telecom.Call call , char digit ) { final java.lang.String callId = mCallIdMapper.getCallId ( call ) ; if ( ( callId != null ) && ( isServiceValid ( "playDtmfTone" ) ) ) { try { logOutgoing ( "playDtmfTone %s %c" , callId , digit ) ; mServiceInterface.playDtmfTone ( callId , digit , android.telecom.Log.getExternalSession ( ) ) ; } catch ( android.os.RemoteException e ) { } } }
Source:
private static android.database.MatrixCursor createHeaderCursor ( android.content.Context context , java.lang.String name , long id ) { android.database.MatrixCursor headerCursor = new android.database.MatrixCursor ( com.android.dialer.searchfragment.directories.DirectoryContactsCursor.PROJECTION , 1 ) ; if ( com.android.contacts.common.compat.DirectoryCompat.isOnlyEnterpriseDirectoryId ( id ) ) { headerCursor.addRow ( new java.lang.Object [ ] { context.getString ( R.string.directory_search_label_work ) , id } ) ; } else { headerCursor.addRow ( new java.lang.Object [ ] { context.getString ( R.string.directory , name ) , id } ) ; } return headerCursor ; }

Target:
private static android.database.MatrixCursor createHeaderCursor ( android.content.Context context , java.lang.String name , long id ) { android.database.MatrixCursor headerCursor = new android.database.MatrixCursor ( com.android.dialer.searchfragment.directories.DirectoryContactsCursor.PROJECTION , 1 ) ; if ( com.android.dialer.common.cp2.DirectoryCompat.isOnlyEnterpriseDirectoryId ( id ) ) { headerCursor.addRow ( new java.lang.Object [ ] { context.getString ( R.string.directory_search_label_work ) , id } ) ; } else { headerCursor.addRow ( new java.lang.Object [ ] { context.getString ( R.string.directory , name ) , id } ) ; } return headerCursor ; }
Source:
public com.android.build.gradle.tasks.PackageApplication getPackageApplication ( ) { return getApkVariantData ( ) . packageApplicationTask ; }

Target:
public void setOutputFile ( @ com.android.annotations.NonNull java.io.File outputFile ) { com.android.build.gradle.internal.variant.ApkVariantOutputData variantOutputData = getApkVariantData ( ) . getOutputs ( ) . get ( 0 ) ; if ( ( variantOutputData.zipAlignTask ) != null ) { variantOutputData.zipAlignTask.setOutputFile ( outputFile ) ; } else { variantOutputData.packageApplicationTask.setOutputFile ( outputFile ) ; } variantOutputData.setOutputFile ( outputFile ) ; }
Source:
public void severe ( java.lang.String msg ) { if ( ( java.util.logging.Level.SEVERE.intValue ( ) ) < ( levelValue ) ) { return ; } log ( java.util.logging.Level.SEVERE , msg ) ; }

Target:
public void logrb ( java.util.logging.Level level , java.lang.String sourceClass , java.lang.String sourceMethod , java.lang.String bundleName , java.lang.String msg , java.lang.Throwable thrown ) { if ( ! ( isLoggable ( level ) ) ) { return ; } java.util.logging.LogRecord lr = new java.util.logging.LogRecord ( level , msg ) ; lr.setSourceClassName ( sourceClass ) ; lr.setSourceMethodName ( sourceMethod ) ; lr.setThrown ( thrown ) ; doLog ( lr , bundleName ) ; }
Source:
private int parseDayOfWeek ( java.lang.String string , int offset , java.lang.String [ ] longs , java.lang.String [ ] shorts ) { int index = parseText ( string , offset , longs , java.util.Calendar.DAY_OF_WEEK ) ; if ( index < 0 ) { index = parseText ( string , offset , shorts , java.util.Calendar.DAY_OF_WEEK ) ; } return index ; }

Target:
private int parseDayOfWeek ( java.lang.String string , int offset , boolean standAlone ) { libcore.icu.LocaleData ld = formatData.localeData ; int index = parseText ( string , offset , ( standAlone ? ld.longStandAloneWeekdayNames : formatData.weekdays ) , java.util.Calendar.DAY_OF_WEEK ) ; if ( index < 0 ) { index = parseText ( string , offset , ( standAlone ? ld.shortStandAloneWeekdayNames : formatData.shortWeekdays ) , java.util.Calendar.DAY_OF_WEEK ) ; } return index ; }
Source:
void loadIcons ( int [ ] recordNumbers , android.os.Message msg ) { if ( ( ( recordNumbers == null ) || ( ( recordNumbers.length ) == 0 ) ) || ( msg == null ) ) { return ; } mEndMsg = msg ; mIcons = new android.graphics.Bitmap [ recordNumbers.length ] ; mRecordNumbers = recordNumbers ; mCurrentRecordIndex = 0 ; mState = com.android.internal.telephony.gsm.stk.IconLoader.STATE_MULTI_ICONS ; startLoadingIcon ( recordNumbers [ 0 ] ) ; }

Target:
void loadIcons ( int [ ] recordNumbers , android.os.Message msg ) { if ( ( ( recordNumbers == null ) || ( ( recordNumbers.length ) == 0 ) ) || ( msg == null ) ) { return ; } mEndMsg = msg ; mIcons = new android.graphics.Bitmap [ recordNumbers.length ] ; mRecordNumbers = recordNumbers ; mCurrentRecordIndex = 0 ; mState = com.android.internal.telephony.cat.IconLoader.STATE_MULTI_ICONS ; startLoadingIcon ( recordNumbers [ 0 ] ) ; }
Source:
private void addError ( org.eclipse.swt.widgets.Composite parent , java.lang.String message ) { if ( ( mError ) == null ) { mError = com.android.ide.eclipse.adt.AdtPlugin.getImageLoader ( ) . loadImage ( com.android.ide.eclipse.adt.internal.wizards.export.ProjectCheckPage.IMG_ERROR , mDisplay ) ; } new org.eclipse.swt.widgets.Label ( parent , org.eclipse.swt.SWT.NONE ) . setImage ( mError ) ; org.eclipse.swt.widgets.Label label = new org.eclipse.swt.widgets.Label ( parent , org.eclipse.swt.SWT.NONE ) ; label.setLayoutData ( new org.eclipse.swt.layout.GridData ( org.eclipse.swt.layout.GridData.FILL_HORIZONTAL ) ) ; label.setText ( message ) ; setErrorMessage ( "Application cannot be exported due to the error(s) below." ) ; setPageComplete ( false ) ; mHasMessage = true ; }

Target:
private void addError ( org.eclipse.swt.widgets.Composite parent , java.lang.String message ) { if ( ( mError ) == null ) { mError = com.android.ide.eclipse.adt.internal.editors.IconFactory.getInstance ( ) . getIcon ( com.android.ide.eclipse.adt.internal.wizards.export.ProjectCheckPage.IMG_ERROR ) ; } new org.eclipse.swt.widgets.Label ( parent , org.eclipse.swt.SWT.NONE ) . setImage ( mError ) ; org.eclipse.swt.widgets.Label label = new org.eclipse.swt.widgets.Label ( parent , org.eclipse.swt.SWT.NONE ) ; label.setLayoutData ( new org.eclipse.swt.layout.GridData ( org.eclipse.swt.layout.GridData.FILL_HORIZONTAL ) ) ; label.setText ( message ) ; setErrorMessage ( "Application cannot be exported due to the error(s) below." ) ; setPageComplete ( false ) ; mHasMessage = true ; }
Source:
public void testPackageOverridePackageFromFlavorWithSuffix2 ( ) { com.android.builder.AndroidBuilder builder = new com.android.builder.AndroidBuilder ( new com.android.builder.DefaultSdkParser ( "" ) , new com.android.utils.StdLogger ( StdLogger.Level.ERROR ) , false ) ; mFlavor.setPackageName ( "foo.bar" ) ; mDebug.setPackageNameSuffix ( "fortytwo" ) ; builder.setBuildVariant ( mMain , mFlavor , mDebug ) ; assertEquals ( "foo.bar.fortytwo" , builder.getPackageOverride ( "" ) ) ; }

Target:
public void testPackageOverridePackageFromFlavor ( ) { com.android.builder.AndroidBuilder builder = new com.android.builder.AndroidBuilderTest.AndroidBuilderMock ( new com.android.builder.DefaultSdkParser ( "" ) , new com.android.utils.StdLogger ( StdLogger.Level.ERROR ) , false ) ; mFlavor.getProductFlavor ( ) . setPackageName ( "foo.bar" ) ; builder.setBuildVariant ( mMain , mDebug ) ; builder.addProductFlavor ( mFlavor ) ; assertEquals ( "foo.bar" , builder.getPackageOverride ( "" ) ) ; }
Source:
private void setCallState ( android.bluetooth.BluetoothHeadsetClientCall c , int state ) { if ( state == ( c.getState ( ) ) ) { return ; } if ( state == ( android.bluetooth.BluetoothHeadsetClientCall.CALL_STATE_TERMINATED ) ) { if ( ( mAudioManager.getMode ( ) ) != ( android.media.AudioManager.MODE_NORMAL ) ) { mAudioManager.setMode ( AudioManager.MODE_NORMAL ) ; android.util.Log.d ( com.android.bluetooth.hfpclient.HeadsetClientStateMachine.TAG , "abandonAudioFocus " ) ; mAudioManager.abandonAudioFocusForCall ( ) ; } } c.setState ( state ) ; sendCallChangedIntent ( c ) ; }

Target:
public void doQuit ( ) { android.util.Log.d ( com.android.bluetooth.hfpclient.HeadsetClientStateMachine.TAG , "doQuit" ) ; if ( ( mAudioManager ) != null ) { mAudioManager.setParameters ( "hfp_enable=false" ) ; } quitNow ( ) ; }
Source:
public com.android.ahat.DocString render ( com.android.ahat.heapdump.PathElement element ) { if ( element == null ) { return com.android.ahat.DocString.link ( com.android.ahat.DocString.uri ( "rooted" ) , com.android.ahat.DocString.text ( "ROOT" ) ) ; } else { com.android.ahat.DocString label = com.android.ahat.DocString.text ( "→ " ) ; label.append ( com.android.ahat.Summarizer.summarize ( element.instance ) ) ; label.append ( element.field ) ; return label ; } }

Target:
public com.android.ahat.DocString render ( com.android.ahat.heapdump.PathElement element ) { if ( element == root ) { return com.android.ahat.DocString.link ( com.android.ahat.DocString.uri ( "rooted" ) , com.android.ahat.DocString.text ( "ROOT" ) ) ; } else { com.android.ahat.DocString label = com.android.ahat.DocString.text ( "→ " ) ; label.append ( com.android.ahat.Summarizer.summarize ( element.instance ) ) ; label.append ( element.field ) ; return label ; } }
Source:
public void setUp ( ) throws java.lang.Exception { super . setUp ( ) ; getActivity ( ) ; }

Target:
public void mismatchInCheck ( ) { expectedException.expect ( junit.framework.AssertionFailedError.class ) ; expectedException.expect ( stackTraceContainsThisClass ( ) ) ; android.support.test.espresso.Espresso.onView ( android.support.test.espresso.matcher.ViewMatchers.isRoot ( ) ) . check ( android.support.test.espresso.assertion.ViewAssertions.matches ( org.hamcrest.Matchers.not ( android.support.test.espresso.matcher.ViewMatchers.isDisplayed ( ) ) ) ) ; }
Source:
public void testConnectivityChanged_manifestRequestOnly_shouldNotReceiveIntent ( ) { android.net.cts.ConnectivityReceiver.prepare ( ) ; toggleWifi ( ) ; android.content.Intent finalIntent = new android.content.Intent ( ConnectivityReceiver.FINAL_ACTION ) ; finalIntent.setClass ( mContext , android.net.cts.ConnectivityReceiver.class ) ; mContext.sendBroadcast ( finalIntent ) ; assertFalse ( android.net.cts.ConnectivityReceiver.waitForBroadcast ( ) ) ; }

Target:
public void testConnectivityChanged_manifestRequestOnly_shouldNotReceiveIntent ( ) { if ( ! ( mPackageManager.hasSystemFeature ( PackageManager.FEATURE_WIFI ) ) ) { android.util.Log.i ( android.net.cts.ConnectivityManagerTest.TAG , "testConnectivityChanged_manifestRequestOnly_shouldNotReceiveIntent cannot execute unless device supports WiFi" ) ; return ; } android.net.cts.ConnectivityReceiver.prepare ( ) ; toggleWifi ( ) ; android.content.Intent finalIntent = new android.content.Intent ( ConnectivityReceiver.FINAL_ACTION ) ; finalIntent.setClass ( mContext , android.net.cts.ConnectivityReceiver.class ) ; mContext.sendBroadcast ( finalIntent ) ; assertFalse ( android.net.cts.ConnectivityReceiver.waitForBroadcast ( ) ) ; }
Source:
public boolean isNonDefault ( ) { return ( ( ( mSupport5gBand ) || ( ( mMasterPreference ) != 0 ) ) || ( ( mClusterLow ) != ( android.net.wifi.aware.ConfigRequest.CLUSTER_ID_MIN ) ) ) || ( ( mClusterHigh ) != ( android.net.wifi.aware.ConfigRequest.CLUSTER_ID_MAX ) ) ; }

Target:
public void writeToParcel ( android.os.Parcel dest , int flags ) { dest.writeInt ( ( mSupport5gBand ? 1 : 0 ) ) ; dest.writeInt ( mMasterPreference ) ; dest.writeInt ( mClusterLow ) ; dest.writeInt ( mClusterHigh ) ; dest.writeIntArray ( mDiscoveryWindowInterval ) ; }
Source:
void updateNavigationBar ( boolean isDialpadVisible ) { if ( ! ( com.android.dialer.compat.ActivityCompat.isInMultiWindowMode ( inCallActivity ) ) ) { android.view.View navigationBarBackground = inCallActivity.getWindow ( ) . findViewById ( R.id.navigation_bar_background ) ; if ( navigationBarBackground != null ) { navigationBarBackground.setVisibility ( ( isDialpadVisible ? android.view.View.VISIBLE : android.view.View.GONE ) ) ; } } }

Target:
private void performHideDialpadFragment ( ) { android.support.v4.app.FragmentManager fragmentManager = inCallActivity.getDialpadFragmentManager ( ) ; if ( fragmentManager == null ) { com.android.dialer.common.LogUtil.e ( "InCallActivityCommon.performHideDialpadFragment" , "child fragment manager is null" ) ; return ; } android.support.v4.app.Fragment fragment = fragmentManager.findFragmentByTag ( com.android.incallui.InCallActivityCommon.TAG_DIALPAD_FRAGMENT ) ; if ( fragment != null ) { android.support.v4.app.FragmentTransaction transaction = fragmentManager.beginTransaction ( ) ; transaction.hide ( fragment ) ; transaction.commitAllowingStateLoss ( ) ; fragmentManager.executePendingTransactions ( ) ; } inCallActivity.updateNavigationBar ( false ) ; }
Source:
public void resetMemory ( java.lang.String cardId , @ android.telephony.euicc.EuiccCardManager.ResetOption int options , android.telephony.euicc.EuiccCardManager.ResultCallback < java.lang.Void > callback ) { try { getIEuiccCardController ( ) . resetMemory ( mContext.getOpPackageName ( ) , cardId , options , new com.android.internal.telephony.euicc.IResetMemoryCallback.Stub ( ) { @ java.lang.Override public void onComplete ( int resultCode ) { callback.onComplete ( resultCode , null ) ; } } ) ; } catch ( android.os.RemoteException e ) { android.util.Log.e ( android.telephony.euicc.EuiccCardManager.TAG , "Error calling resetMemory" , e ) ; throw e.rethrowFromSystemServer ( ) ; } }

Target:
public void requestDefaultSmdpAddress ( java.lang.String cardId , java.util.concurrent.Executor executor , android.telephony.euicc.EuiccCardManager.ResultCallback < java.lang.String > callback ) { try { getIEuiccCardController ( ) . getDefaultSmdpAddress ( mContext.getOpPackageName ( ) , cardId , new com.android.internal.telephony.euicc.IGetDefaultSmdpAddressCallback.Stub ( ) { @ java.lang.Override public void onComplete ( int resultCode , java.lang.String address ) { executor.execute ( ( ) -> callback.onComplete ( resultCode , address ) ) ; } } ) ; } catch ( android.os.RemoteException e ) { android.util.Log.e ( android.telephony.euicc.EuiccCardManager.TAG , "Error calling getDefaultSmdpAddress" , e ) ; throw e.rethrowFromSystemServer ( ) ; } }
Source:
public void clearAppData ( java.lang.String uuid , java.lang.String packageName , int userId , int flags , long ceDataInode ) throws com.android.internal.os.InstallerConnection.InstallerException { checkLock ( ) ; try { mInstalld.clearAppData ( uuid , packageName , userId , flags , ceDataInode ) ; } catch ( android.os.RemoteException | android.os.ServiceSpecificException e ) { throw new com.android.internal.os.InstallerConnection.InstallerException ( e.getMessage ( ) ) ; } }

Target:
public void migrateAppData ( java.lang.String uuid , java.lang.String packageName , int userId , int flags ) throws com.android.internal.os.InstallerConnection.InstallerException { if ( ! ( checkBeforeRemote ( ) ) ) return ; try { mInstalld.migrateAppData ( uuid , packageName , userId , flags ) ; } catch ( android.os.RemoteException | android.os.ServiceSpecificException e ) { throw new com.android.internal.os.InstallerConnection.InstallerException ( e.getMessage ( ) ) ; } }
Source:
protected com.android.volley.Request < android.graphics.Bitmap > makeImageRequest ( java.lang.String requestUrl , int maxWidth , int maxHeight , final java.lang.String cacheKey ) { return new com.android.volley.toolbox.ImageRequest ( requestUrl , new com.android.volley.Response.Listener < android.graphics.Bitmap > ( ) { @ java.lang.Override public void onResponse ( android.graphics.Bitmap response ) { onGetImageSuccess ( cacheKey , response ) ; } } , maxWidth , maxHeight , android.graphics.Bitmap.Config.RGB_565 , new com.android.volley.Response.ErrorListener ( ) { @ java.lang.Override public void onErrorResponse ( com.android.volley.VolleyError error ) { onGetImageError ( cacheKey , error ) ; } } ) ; }

Target:
protected com.android.volley.Request < android.graphics.Bitmap > makeImageRequest ( java.lang.String requestUrl , int maxWidth , int maxHeight , android.widget.ImageView.ScaleType scaleType , final java.lang.String cacheKey ) { return new com.android.volley.toolbox.ImageRequest ( requestUrl , new com.android.volley.Response.Listener < android.graphics.Bitmap > ( ) { @ java.lang.Override public void onResponse ( android.graphics.Bitmap response ) { onGetImageSuccess ( cacheKey , response ) ; } } , maxWidth , maxHeight , scaleType , android.graphics.Bitmap.Config.RGB_565 , new com.android.volley.Response.ErrorListener ( ) { @ java.lang.Override public void onErrorResponse ( com.android.volley.VolleyError error ) { onGetImageError ( cacheKey , error ) ; } } ) ; }
Source:
public void testAesCbcHmacSha256Tcp4 ( ) 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_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 testAesCbcHmacMd5Udp4UdpEncap ( ) 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 , android.net.cts.IpSecManagerTest.getKey ( 128 ) , 96 ) ; checkTransform ( android.system.OsConstants.IPPROTO_UDP , android.net.cts.IpSecManagerTest.IPV4_LOOPBACK , crypt , auth , null , true , 1 , false ) ; checkTransform ( android.system.OsConstants.IPPROTO_UDP , android.net.cts.IpSecManagerTest.IPV4_LOOPBACK , crypt , auth , null , true , 1 , true ) ; }
Source:
public int getAttributeValueType ( int index ) throws com.android.apksigner.AndroidBinXmlParser.XmlParserException { int type = getAttribute ( index ) . getValueType ( ) ; switch ( type ) { case com.android.apksigner.AndroidBinXmlParser.Attribute.TYPE_STRING : return com.android.apksigner.AndroidBinXmlParser.VALUE_TYPE_STRING ; case com.android.apksigner.AndroidBinXmlParser.Attribute.TYPE_INT_DEC : case com.android.apksigner.AndroidBinXmlParser.Attribute.TYPE_INT_HEX : case com.android.apksigner.AndroidBinXmlParser.Attribute.TYPE_REFERENCE : return com.android.apksigner.AndroidBinXmlParser.VALUE_TYPE_INT ; case com.android.apksigner.AndroidBinXmlParser.Attribute.TYPE_INT_BOOLEAN : return com.android.apksigner.AndroidBinXmlParser.VALUE_TYPE_BOOLEAN ; default : return com.android.apksigner.AndroidBinXmlParser.VALUE_TYPE_UNSUPPORTED ; } }

Target:
public int getAttributeValueType ( int index ) throws com.android.apksig.apk.AndroidBinXmlParser.XmlParserException { int type = getAttribute ( index ) . getValueType ( ) ; switch ( type ) { case com.android.apksig.apk.AndroidBinXmlParser.Attribute.TYPE_STRING : return com.android.apksig.apk.AndroidBinXmlParser.VALUE_TYPE_STRING ; case com.android.apksig.apk.AndroidBinXmlParser.Attribute.TYPE_INT_DEC : case com.android.apksig.apk.AndroidBinXmlParser.Attribute.TYPE_INT_HEX : case com.android.apksig.apk.AndroidBinXmlParser.Attribute.TYPE_REFERENCE : return com.android.apksig.apk.AndroidBinXmlParser.VALUE_TYPE_INT ; case com.android.apksig.apk.AndroidBinXmlParser.Attribute.TYPE_INT_BOOLEAN : return com.android.apksig.apk.AndroidBinXmlParser.VALUE_TYPE_BOOLEAN ; default : return com.android.apksig.apk.AndroidBinXmlParser.VALUE_TYPE_UNSUPPORTED ; } }
Source:
private static boolean hasLooperConstructorParameter ( @ com.android.annotations.NonNull com.android.tools.lint.client.api.JavaParser.ResolvedClass cls ) { for ( com.android.tools.lint.client.api.JavaParser.ResolvedMethod constructor : cls.getConstructors ( ) ) { for ( int i = 0 , n = constructor.getArgumentCount ( ) ; i < n ; i ++ ) { com.android.tools.lint.client.api.JavaParser.TypeDescriptor type = constructor.getArgumentType ( i ) ; if ( type.matchesSignature ( com.android.tools.lint.checks.HandlerDetector.LOOPER_CLS ) ) { return true ; } } } return false ; }

Target:
private static boolean hasLooperConstructorParameter ( @ com.android.annotations.NonNull com.intellij.psi.PsiClass cls ) { for ( com.intellij.psi.PsiMethod constructor : cls.getConstructors ( ) ) { for ( com.intellij.psi.PsiParameter parameter : constructor.getParameterList ( ) . getParameters ( ) ) { com.intellij.psi.PsiType type = parameter.getType ( ) ; if ( com.android.tools.lint.checks.HandlerDetector.LOOPER_CLS.equals ( type.getCanonicalText ( ) ) ) { return true ; } } } return false ; }
Source:
protected void install ( byte [ ] content , int version ) throws java.io.IOException { boolean valid = installer.install ( content ) ; android.util.Slog.i ( com.android.server.updates.TzDataInstallReceiver.TAG , ( "Timezone data install valid for this device: " + valid ) ) ; super . install ( content , version ) ; }

Target:
protected void install ( byte [ ] content , int version ) throws java.io.IOException { com.android.timezone.distro.TimeZoneDistro distro = new com.android.timezone.distro.TimeZoneDistro ( content ) ; boolean valid = installer.install ( distro ) ; android.util.Slog.i ( com.android.server.updates.TzDataInstallReceiver.TAG , ( "Timezone data install valid for this device: " + valid ) ) ; super . install ( content , version ) ; }
Source:
private static com.android.server.wifi.hotspot2.PasspointProvider generateProvider ( android.net.wifi.WifiConfiguration config ) { com.android.server.wifi.hotspot2.PasspointProvider provider = org.mockito.Mockito.mock ( com.android.server.wifi.hotspot2.PasspointProvider.class ) ; org.mockito.Mockito.when ( provider.getWifiConfig ( ) ) . thenReturn ( config ) ; return provider ; }

Target:
private static com.android.server.wifi.hotspot2.PasspointProvider generateProvider ( android.net.wifi.WifiConfiguration config ) { com.android.server.wifi.hotspot2.PasspointProvider provider = org.mockito.Mockito.mock ( com.android.server.wifi.hotspot2.PasspointProvider.class ) ; android.net.wifi.hotspot2.PasspointConfiguration passpointConfig = new android.net.wifi.hotspot2.PasspointConfiguration ( ) ; android.net.wifi.hotspot2.pps.HomeSp homeSp = new android.net.wifi.hotspot2.pps.HomeSp ( ) ; homeSp.setFqdn ( config.FQDN ) ; passpointConfig.setHomeSp ( homeSp ) ; org.mockito.Mockito.when ( provider.getConfig ( ) ) . thenReturn ( passpointConfig ) ; org.mockito.Mockito.when ( provider.getWifiConfig ( ) ) . thenReturn ( config ) ; return provider ; }