auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
private void reportNewProgress ( java.lang.String encodedConfigurationInstance , java.lang.String previousProgress , java.lang.String newProgress ) { newDataReceived = true ; configurationProgress.put ( encodedConfigurationInstance , newProgress ) ; java.lang.String diffProgress = newProgress.substring ( previousProgress.length ( ) ) ; testRunListener.testConfigurationProgress ( com.google.gct.testing.ConfigurationInstance.parseFromEncodedString ( encodedConfigurationInstance ) . getResultsViewerDisplayString ( ) , diffProgress ) ; }

Target:
private void reportNewProgress ( java.lang.String encodedConfigurationInstance , java.lang.String newProgress ) { newDataReceived = true ; getPreviousProgress ( encodedConfigurationInstance ) . add ( newProgress ) ; testRunListener.testConfigurationProgress ( com.google.gct.testing.ConfigurationInstance.parseFromEncodedString ( encodedConfigurationInstance ) . getResultsViewerDisplayString ( ) , newProgress ) ; }
Source:
public int getOffset ( long when ) { long unix = when / 1000 ; int transition = java.util.Arrays.binarySearch ( mTransitions , unix ) ; if ( transition < 0 ) { transition = ( ~ transition ) - 1 ; if ( transition < 0 ) { return mEarliestRawOffset ; } } return ( mRawOffset ) + ( ( mOffsets [ ( ( mTypes [ transition ] ) & 255 ) ] ) * 1000 ) ; }

Target:
public int getOffset ( long when ) { int offsetIndex = findOffsetIndexForTimeInMilliseconds ( when ) ; if ( offsetIndex == ( - 1 ) ) { return mEarliestRawOffset ; } return ( mRawOffset ) + ( ( mOffsets [ offsetIndex ] ) * 1000 ) ; }
Source:
public void sendIntentIfRequested ( android.net.Uri contentUri , android.content.Context context ) { if ( ( ( mPackage ) != null ) && ( ( mClass ) != null ) ) { android.content.Intent intent = new android.content.Intent ( android.provider.Downloads.DOWNLOAD_COMPLETED_ACTION ) ; intent.setClassName ( mPackage , mClass ) ; if ( ( mExtras ) != null ) { intent.putExtra ( Downloads.NOTIFICATION_EXTRAS , mExtras ) ; } intent.setData ( contentUri ) ; context.sendBroadcast ( intent ) ; } }

Target:
public void sendIntentIfRequested ( android.net.Uri contentUri , android.content.Context context ) { if ( ( ( mPackage ) != null ) && ( ( mClass ) != null ) ) { android.content.Intent intent = new android.content.Intent ( android.provider.Downloads.ACTION_DOWNLOAD_COMPLETED ) ; intent.setClassName ( mPackage , mClass ) ; if ( ( mExtras ) != null ) { intent.putExtra ( Downloads.COLUMN_NOTIFICATION_EXTRAS , mExtras ) ; } intent.setData ( contentUri ) ; context.sendBroadcast ( intent ) ; } }
Source:
public void testEmpty ( ) { java.util.concurrent.DelayQueue q = new java.util.concurrent.DelayQueue ( ) ; assertTrue ( q.isEmpty ( ) ) ; assertEquals ( jsr166.DelayQueueTest.NOCAP , q.remainingCapacity ( ) ) ; q.add ( new jsr166.DelayQueueTest.PDelay ( 1 ) ) ; assertFalse ( q.isEmpty ( ) ) ; q.add ( new jsr166.DelayQueueTest.PDelay ( 2 ) ) ; q.remove ( ) ; q.remove ( ) ; assertTrue ( q.isEmpty ( ) ) ; }

Target:
public void testEmpty ( ) { java.util.concurrent.DelayQueue q = new java.util.concurrent.DelayQueue ( ) ; assertTrue ( q.isEmpty ( ) ) ; assertEquals ( java.lang.Integer.MAX_VALUE , q.remainingCapacity ( ) ) ; q.add ( new jsr166.DelayQueueTest.PDelay ( 1 ) ) ; assertFalse ( q.isEmpty ( ) ) ; q.add ( new jsr166.DelayQueueTest.PDelay ( 2 ) ) ; q.remove ( ) ; q.remove ( ) ; assertTrue ( q.isEmpty ( ) ) ; }
Source:
public void visitMethodInsn ( final int opcode , final java.lang.String owner , final java.lang.String name , final java.lang.String desc ) { if ( opcode == ( INVOKEINTERFACE ) ) { minSize += 5 ; maxSize += 5 ; } else { minSize += 3 ; maxSize += 3 ; } if ( ( mv ) != null ) { mv.visitMethodInsn ( opcode , owner , name , desc ) ; } }

Target:
public void visitMethodInsn ( final int opcode , final java.lang.String owner , final java.lang.String name , final java.lang.String desc , final boolean itf ) { if ( ( api ) < ( org.objectweb.asm.Opcodes.ASM5 ) ) { super . visitMethodInsn ( opcode , owner , name , desc , itf ) ; return ; } doVisitMethodInsn ( opcode , owner , name , desc , itf ) ; }
Source:
public void render ( long delay ) { com.android.ide.eclipse.adt.internal.editors.layout.gle2.RenderPreview.RenderJob job = mJob ; if ( job != null ) { job.cancel ( ) ; } job = new com.android.ide.eclipse.adt.internal.editors.layout.gle2.RenderPreview.RenderJob ( ) ; job.schedule ( delay ) ; job.addJobChangeListener ( this ) ; mJob = job ; }

Target:
public void render ( long delay ) { org.eclipse.core.runtime.jobs.Job job = mJob ; if ( job != null ) { job.cancel ( ) ; } if ( com.android.ide.eclipse.adt.internal.editors.layout.gle2.RenderPreview.RENDER_ASYNC ) { job = new com.android.ide.eclipse.adt.internal.editors.layout.gle2.RenderPreview.AsyncRenderJob ( ) ; } else { job = new com.android.ide.eclipse.adt.internal.editors.layout.gle2.RenderPreview.RenderJob ( ) ; } job.schedule ( delay ) ; job.addJobChangeListener ( this ) ; mJob = job ; }
Source:
static void nativeSetPixel ( long nativeBitmap , int x , int y , int color ) { android.graphics.Bitmap_Delegate delegate = android.graphics.Bitmap_Delegate.sManager.getDelegate ( nativeBitmap ) ; if ( delegate == null ) { return ; } delegate.getImage ( ) . setRGB ( x , y , color ) ; }

Target:
static void nativeSetPixel ( long nativeBitmap , int x , int y , int color , boolean isPremultiplied ) { android.graphics.Bitmap_Delegate delegate = android.graphics.Bitmap_Delegate.sManager.getDelegate ( nativeBitmap ) ; if ( delegate == null ) { return ; } delegate.getImage ( ) . setRGB ( x , y , color ) ; }
Source:
public boolean generate ( java.lang.String key , int uid , int flags ) { try { return ( mBinder.generate ( key , uid , flags ) ) == ( android.security.KeyStore.NO_ERROR ) ; } catch ( android.os.RemoteException e ) { android.util.Log.w ( android.security.KeyStore.TAG , "Cannot connect to keystore" , e ) ; return false ; } }

Target:
public boolean generate ( java.lang.String key , int uid , int keyType , int keySize , int flags , byte [ ] [ ] args ) { try { return ( mBinder.generate ( key , uid , keyType , keySize , flags , args ) ) == ( android.security.KeyStore.NO_ERROR ) ; } catch ( android.os.RemoteException e ) { android.util.Log.w ( android.security.KeyStore.TAG , "Cannot connect to keystore" , e ) ; return false ; } }
Source:
public boolean isSimPinEnabled ( ) { try { com.android.internal.telephony.ITelephony telephony = getITelephony ( ) ; if ( telephony != null ) return telephony.isSimPinEnabled ( getOpPackageName ( ) ) ; } catch ( android.os.RemoteException e ) { android.util.Log.e ( android.telephony.TelephonyManager.TAG , "Error calling ITelephony#isSimPinEnabled" , e ) ; } return false ; }

Target:
public boolean isDataConnectivityPossible ( ) { try { com.android.internal.telephony.ITelephony telephony = getITelephony ( ) ; if ( telephony != null ) return telephony.isDataConnectivityPossible ( getSubId ( android.telephony.SubscriptionManager.getDefaultDataSubscriptionId ( ) ) ) ; } catch ( android.os.RemoteException e ) { android.util.Log.e ( android.telephony.TelephonyManager.TAG , "Error calling ITelephony#isDataAllowed" , e ) ; } return false ; }
Source:
default void sort ( java.util.Comparator < ? super E > c ) { java.util.Collections.sort ( this , c ) ; }

Target:
default void sort ( java.util.Comparator < ? super E > c ) { java.lang.Object [ ] a = this . toArray ( ) ; java.util.Arrays.sort ( a , ( ( java.util.Comparator ) ( c ) ) ) ; java.util.ListIterator < E > i = this . listIterator ( ) ; for ( java.lang.Object e : a ) { i.next ( ) ; i.set ( ( ( E ) ( e ) ) ) ; } }
Source:
private void writeBufferedData ( ) throws java.io.IOException { stopBufferedWriteAlarm ( ) ; mSharedStore.writeBufferedRawData ( ) ; mUserStore.writeBufferedRawData ( ) ; }

Target:
private void writeBufferedData ( ) throws java.io.IOException { stopBufferedWriteAlarm ( ) ; long writeStartTime = mClock.getElapsedSinceBootMillis ( ) ; mSharedStore.writeBufferedRawData ( ) ; mUserStore.writeBufferedRawData ( ) ; long writeTime = ( mClock.getElapsedSinceBootMillis ( ) ) - writeStartTime ; android.util.Log.d ( com.android.server.wifi.WifiConfigStore.TAG , ( ( "Writing to stores completed in " + writeTime ) + " ms." ) ) ; }
Source:
public void remove ( ) { if ( ( lastRet ) < 0 ) throw new java.lang.IllegalStateException ( ) ; java.lang.Object x = array [ lastRet ] ; lastRet = - 1 ; lock.lock ( ) ; try { for ( java.util.Iterator it = q.iterator ( ) ; it.hasNext ( ) ; ) { if ( ( it.next ( ) ) == x ) { it.remove ( ) ; return ; } } } finally { lock.unlock ( ) ; } }

Target:
public void remove ( ) { if ( ( lastRet ) < 0 ) throw new java.lang.IllegalStateException ( ) ; removeEQ ( array [ lastRet ] ) ; lastRet = - 1 ; }
Source:
private java.util.List < com.android.jack.dx.io.FieldId > readFieldIds ( ) { com.android.jack.dx.io.DexBuffer.Section fieldIds = open ( tableOfContents.fieldIds.off ) ; com.android.jack.dx.io.FieldId [ ] result = new com.android.jack.dx.io.FieldId [ tableOfContents.fieldIds.size ] ; for ( int i = 0 ; i < ( tableOfContents.fieldIds.size ) ; ++ i ) { result [ i ] = fieldIds.readFieldId ( ) ; } return java.util.Arrays.asList ( result ) ; }

Target:
private java.util.List < com.android.jack.dx.io.FieldId > readFieldIds ( ) { com.android.jack.dx.io.DexBuffer.Section fieldIds = openInternal ( tableOfContents.fieldIds.off ) ; com.android.jack.dx.io.FieldId [ ] result = new com.android.jack.dx.io.FieldId [ tableOfContents.fieldIds.size ] ; for ( int i = 0 ; i < ( tableOfContents.fieldIds.size ) ; ++ i ) { result [ i ] = fieldIds.readFieldId ( ) ; } return java.util.Arrays.asList ( result ) ; }
Source:
private void onControlStateChanged ( int local_role , int state , int error , java.lang.String ifname ) { if ( com.android.bluetooth.pan.PanService.DBG ) log ( ( ( ( ( ( "onControlStateChanged: " + state ) + ", error: " ) + error ) + ", ifname: " ) + ifname ) ) ; if ( error == 0 ) mPanIfName = ifname ; }

Target:
private void onControlStateChanged ( int localRole , int state , int error , java.lang.String ifname ) { if ( com.android.bluetooth.pan.PanService.DBG ) log ( ( ( ( ( ( "onControlStateChanged: " + state ) + ", error: " ) + error ) + ", ifname: " ) + ifname ) ) ; if ( error == 0 ) mPanIfName = ifname ; }
Source:
public void onCreate ( android.os.Bundle savedInstanceState ) { super . onCreate ( savedInstanceState ) ; mGLView = new android.openglperf.cts.TextureTestSurfaceView ( this ) ; setContentView ( mGLView ) ; }

Target:
public void onCreate ( android.os.Bundle savedInstanceState ) { super . onCreate ( savedInstanceState ) ; mGLView = new android.openglperf.cts.TextureTestSurfaceView ( this ) ; getWindow ( ) . addFlags ( ( ( ( ( ( WindowManager.LayoutParams.FLAG_DISMISS_KEYGUARD ) | ( WindowManager.LayoutParams.FLAG_TURN_SCREEN_ON ) ) | ( WindowManager.LayoutParams.FLAG_KEEP_SCREEN_ON ) ) | ( WindowManager.LayoutParams.FLAG_FULLSCREEN ) ) | ( WindowManager.LayoutParams.FLAG_SHOW_WHEN_LOCKED ) ) ) ; setContentView ( mGLView ) ; }
Source:
public final void testPkgTypeAddonSysImg ( ) throws java.lang.Exception { com.android.sdklib.repository.descriptors.IPkgCapabilities p = PkgType.PKG_ADDON_SYS_IMAGES ; assertTrue ( p.hasMajorRevision ( ) ) ; assertFalse ( p.hasFullRevision ( ) ) ; assertTrue ( p.hasAndroidVersion ( ) ) ; assertTrue ( p.hasPath ( ) ) ; assertTrue ( p.hasTag ( ) ) ; assertTrue ( p.hasVendor ( ) ) ; assertFalse ( p.hasMinToolsRev ( ) ) ; assertFalse ( p.hasMinPlatformToolsRev ( ) ) ; }

Target:
public final void testPkgTypeAddonSysImg ( ) throws java.lang.Exception { com.android.sdklib.repository.descriptors.IPkgCapabilities p = PkgType.PKG_ADDON_SYS_IMAGE ; assertTrue ( p.hasMajorRevision ( ) ) ; assertFalse ( p.hasFullRevision ( ) ) ; assertTrue ( p.hasAndroidVersion ( ) ) ; assertTrue ( p.hasPath ( ) ) ; assertTrue ( p.hasTag ( ) ) ; assertTrue ( p.hasVendor ( ) ) ; assertFalse ( p.hasMinToolsRev ( ) ) ; assertFalse ( p.hasMinPlatformToolsRev ( ) ) ; }
Source:
public void fillOval ( com.android.ide.eclipse.adt.editors.layout.gscripts.Rect r ) { checkGC ( ) ; int x = mHScale.translate ( r.x ) ; int y = mVScale.translate ( r.y ) ; int w = mHScale.scale ( r.w ) ; int h = mVScale.scale ( r.h ) ; getGc ( ) . fillOval ( x , y , w , h ) ; }

Target:
public void fillOval ( com.android.ide.eclipse.adt.editors.layout.gscripts.Rect r ) { checkGC ( ) ; useFillAlpha ( ) ; int x = mHScale.translate ( r.x ) ; int y = mVScale.translate ( r.y ) ; int w = mHScale.scale ( r.w ) ; int h = mVScale.scale ( r.h ) ; getGc ( ) . fillOval ( x , y , w , h ) ; }
Source:
public boolean startWpsPbc ( java.lang.String iface , java.lang.String bssid ) { synchronized ( com.android.server.wifi.WifiNative.sLock ) { if ( android.text.TextUtils.isEmpty ( bssid ) ) { return doBooleanCommandNative ( ( ( "IFNAME=" + iface ) + " WPS_PBC" ) ) ; } else { return doBooleanCommandNative ( ( ( ( "IFNAME=" + iface ) + " WPS_PBC " ) + bssid ) ) ; } } }

Target:
public boolean startWpsPbc ( java.lang.String iface , java.lang.String bssid ) { if ( ( com.android.server.wifi.WifiNative.HIDL_P2P_ENABLE ) && ( ( mSupplicantP2pIfaceHal ) != null ) ) { return mSupplicantP2pIfaceHal.startWpsPbc ( iface , bssid ) ; } else { synchronized ( com.android.server.wifi.WifiNative.sLock ) { if ( android.text.TextUtils.isEmpty ( bssid ) ) { return doBooleanCommandNative ( ( ( "IFNAME=" + iface ) + " WPS_PBC" ) ) ; } else { return doBooleanCommandNative ( ( ( ( "IFNAME=" + iface ) + " WPS_PBC " ) + bssid ) ) ; } } } }
Source:
protected void onPostExecute ( java.lang.Long id ) { if ( id == null ) { android.widget.Toast.makeText ( mActivity , R.string.snapshot_failed , Toast.LENGTH_SHORT ) . show ( ) ; return ; } android.os.Bundle b = new android.os.Bundle ( ) ; b.putLong ( BrowserSnapshotPage.EXTRA_ANIMATE_ID , id ) ; mUi.showComboView ( ComboViews.Snapshots , b ) ; }

Target:
protected void onPostExecute ( java.lang.Long id ) { if ( isCancelled ( ) ) { return ; } mProgressDialog.dismiss ( ) ; if ( id == null ) { android.widget.Toast.makeText ( mActivity , R.string.snapshot_failed , Toast.LENGTH_SHORT ) . show ( ) ; return ; } android.os.Bundle b = new android.os.Bundle ( ) ; b.putLong ( BrowserSnapshotPage.EXTRA_ANIMATE_ID , id ) ; mUi.showComboView ( ComboViews.Snapshots , b ) ; }
Source:
public static java.lang.String toString ( @ android.security.KeyStoreKeyConstraints.PaddingEnum int padding ) { switch ( padding ) { case android.security.KeyStoreKeyConstraints.Padding.NONE : return "NONE" ; case android.security.KeyStoreKeyConstraints.Padding.PKCS7 : return "PKCS#7" ; default : throw new java.lang.IllegalArgumentException ( ( "Unknown padding: " + padding ) ) ; } }

Target:
public static java.lang.String toString ( @ android.security.KeyStoreKeyConstraints.PaddingEnum int padding ) { switch ( padding ) { case android.security.KeyStoreKeyConstraints.Padding.NONE : return "NONE" ; case android.security.KeyStoreKeyConstraints.Padding.PKCS7 : return "PKCS#7" ; case android.security.KeyStoreKeyConstraints.Padding.RSA_PKCS1_ENCRYPTION : return "RSA PKCS#1 (encryption)" ; case android.security.KeyStoreKeyConstraints.Padding.RSA_PKCS1_SIGNATURE : return "RSA PKCS#1 (signature)" ; case android.security.KeyStoreKeyConstraints.Padding.RSA_OAEP : return "RSA OAEP" ; case android.security.KeyStoreKeyConstraints.Padding.RSA_PSS : return "RSA PSS" ; default : throw new java.lang.IllegalArgumentException ( ( "Unknown padding: " + padding ) ) ; } }
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 , Element.DataType.SIGNED_8 ) ; }

Target:
public void copy3DRangeFrom ( int xoff , int yoff , int zoff , int w , int h , int d , java.lang.Object array ) { android.os.Trace.traceBegin ( RenderScript.TRACE_TAG , "copy3DRangeFrom" ) ; copy3DRangeFromUnchecked ( xoff , yoff , zoff , w , h , d , array , validateObjectIsPrimitiveArray ( array , true ) , java.lang.reflect.Array.getLength ( array ) ) ; android.os.Trace.traceEnd ( RenderScript.TRACE_TAG ) ; }
Source:
public void testGetUri ( ) { assertEquals ( "Test 1: Incorrect URI returned;" , tests.api.org.xml.sax.helpers.NamespaceSupportTest.marketUri , ns.getURI ( "bk" ) ) ; assertEquals ( "Test 2: Incorrect URI returned;" , tests.api.org.xml.sax.helpers.NamespaceSupportTest.defaultUri , ns.getURI ( "" ) ) ; assertNull ( "Test 3: Null expected for not-existing prefix." , ns.getURI ( "ck" ) ) ; ns.popContext ( ) ; assertNull ( "Test 4: Null expected for not-existing prefix." , ns.getURI ( "bk" ) ) ; assertEquals ( "Test 5: Incorrect URI returned;" , org.xml.sax.helpers.NamespaceSupport.XMLNS , ns.getURI ( "xml" ) ) ; }

Target:
public void testGetUri ( ) { assertEquals ( "Test 1: Incorrect URI returned;" , org.apache.harmony.tests.org.xml.sax.helpers.NamespaceSupportTest.marketUri , ns.getURI ( "bk" ) ) ; assertEquals ( "Test 2: Incorrect URI returned;" , org.apache.harmony.tests.org.xml.sax.helpers.NamespaceSupportTest.defaultUri , ns.getURI ( "" ) ) ; assertNull ( "Test 3: Null expected for not-existing prefix." , ns.getURI ( "ck" ) ) ; ns.popContext ( ) ; assertNull ( "Test 4: Null expected for not-existing prefix." , ns.getURI ( "bk" ) ) ; assertEquals ( "Test 5: Incorrect URI returned;" , org.xml.sax.helpers.NamespaceSupport.XMLNS , ns.getURI ( "xml" ) ) ; }
Source:
static void setRecommendedVMPolicy ( android.os.StrictMode.VmPolicy vmPenalties ) { com.android.dialer.strictmode.StrictModeUtils.setRecommendedVMPolicy ( vmPenalties , com.android.dialer.strictmode.StrictModeUtils.StrictModeVmConfig.empty ( ) ) ; }

Target:
public static < T > T bypass ( com.android.dialer.function.Supplier < T > supplier ) { if ( ( com.android.dialer.strictmode.StrictModeUtils.isStrictModeAllowed ( ) ) && ( com.android.dialer.strictmode.StrictModeUtils.onMainThread ( ) ) ) { android.os.StrictMode.ThreadPolicy originalPolicy = android.os.StrictMode.getThreadPolicy ( ) ; android.os.StrictMode.setThreadPolicy ( com.android.dialer.strictmode.StrictModeUtils.THREAD_NO_PENALTY ) ; try { return supplier.get ( ) ; } finally { android.os.StrictMode.setThreadPolicy ( originalPolicy ) ; } } return supplier.get ( ) ; }
Source:
public java.lang.String iccTransmitApduBasicChannel ( int subId , int cla , int instruction , int p1 , int p2 , int p3 , java.lang.String data ) { try { com.android.internal.telephony.ITelephony telephony = getITelephony ( ) ; if ( telephony != null ) return telephony.iccTransmitApduBasicChannel ( subId , cla , instruction , p1 , p2 , p3 , data ) ; } catch ( android.os.RemoteException ex ) { } catch ( java.lang.NullPointerException ex ) { } return "" ; }

Target:
public java.lang.String iccTransmitApduBasicChannel ( int subId , int cla , int instruction , int p1 , int p2 , int p3 , java.lang.String data ) { try { com.android.internal.telephony.ITelephony telephony = getITelephony ( ) ; if ( telephony != null ) return telephony.iccTransmitApduBasicChannel ( subId , getOpPackageName ( ) , cla , instruction , p1 , p2 , p3 , data ) ; } catch ( android.os.RemoteException ex ) { } catch ( java.lang.NullPointerException ex ) { } return "" ; }
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 { 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 ( ) ) ; } }

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.server.pm.Installer.InstallerException { if ( ! ( checkBeforeRemote ( ) ) ) return ; try { mInstalld.moveCompleteApp ( fromUuid , toUuid , packageName , dataAppName , appId , seInfo , targetSdkVersion ) ; } catch ( android.os.RemoteException | android.os.ServiceSpecificException e ) { throw com.android.server.pm.Installer.InstallerException.from ( e ) ; } }
Source:
public void testAddAll1_IndexOutOfBoundsException ( ) { try { java.util.concurrent.CopyOnWriteArrayList c = new java.util.concurrent.CopyOnWriteArrayList ( ) ; c.addAll ( ( - 1 ) , new java.util.LinkedList ( ) ) ; shouldThrow ( ) ; } catch ( java.lang.IndexOutOfBoundsException success ) { } }

Target:
public void testAddAll1_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.addAll ( ( - 1 ) , new java.util.LinkedList ( ) ) ; shouldThrow ( ) ; } catch ( java.lang.IndexOutOfBoundsException success ) { } } }
Source:
public void visitRuntimeVisibleParameterAnnotationsAttribute ( proguard.classfile.visitor.Clazz clazz , proguard.classfile.visitor.Method method , proguard.classfile.visitor.RuntimeVisibleParameterAnnotationsAttribute runtimeVisibleParameterAnnotationsAttribute ) { println ( ( ( ( ( visitorInfo ( runtimeVisibleParameterAnnotationsAttribute ) ) + " Runtime visible parameter annotations attribute (parameter count = " ) + ( runtimeVisibleParameterAnnotationsAttribute.u2parametersCount ) ) + "):" ) ) ; indent ( ) ; runtimeVisibleParameterAnnotationsAttribute.annotationsAccept ( clazz , method , this ) ; outdent ( ) ; }

Target:
public void visitRuntimeVisibleParameterAnnotationsAttribute ( proguard.classfile.visitor.Clazz clazz , proguard.classfile.visitor.Method method , proguard.classfile.visitor.RuntimeVisibleParameterAnnotationsAttribute runtimeVisibleParameterAnnotationsAttribute ) { println ( ( ( ( ( visitorInfo ( runtimeVisibleParameterAnnotationsAttribute ) ) + " Runtime visible parameter annotations attribute (parameter count = " ) + ( runtimeVisibleParameterAnnotationsAttribute.u1parametersCount ) ) + "):" ) ) ; indent ( ) ; runtimeVisibleParameterAnnotationsAttribute.annotationsAccept ( clazz , method , this ) ; outdent ( ) ; }
Source:
public void test_SSL_free ( ) throws java.lang.Exception { try { org.conscrypt.NativeCrypto.SSL_free ( org.conscrypt.NativeCryptoTest.NULL ) ; fail ( ) ; } catch ( java.lang.NullPointerException expected ) { } long c = org.conscrypt.NativeCrypto.SSL_CTX_new ( ) ; org.conscrypt.NativeCrypto.SSL_free ( org.conscrypt.NativeCrypto.SSL_new ( c ) ) ; org.conscrypt.NativeCrypto.SSL_CTX_free ( c ) ; }

Target:
public void test_SSL_free ( ) throws java.lang.Exception { try { org.conscrypt.NativeCrypto.SSL_free ( org.conscrypt.NativeCryptoTest.NULL ) ; org.junit.Assert.fail ( ) ; } catch ( java.lang.NullPointerException expected ) { } long c = org.conscrypt.NativeCrypto.SSL_CTX_new ( ) ; org.conscrypt.NativeCrypto.SSL_free ( org.conscrypt.NativeCrypto.SSL_new ( c ) ) ; org.conscrypt.NativeCrypto.SSL_CTX_free ( c ) ; }
Source:
public static int copyNativeBinaries ( com.android.internal.content.NativeLibraryHelper.Handle handle , java.io.File sharedLibraryDir , java.lang.String abi ) { for ( long apkHandle : handle.apkHandles ) { int res = com.android.internal.content.NativeLibraryHelper.nativeCopyNativeBinaries ( apkHandle , sharedLibraryDir.getPath ( ) , abi , handle.extractNativeLibs , com.android.internal.content.NativeLibraryHelper.HAS_NATIVE_BRIDGE ) ; if ( res != ( android.content.pm.PackageManager.INSTALL_SUCCEEDED ) ) { return res ; } } return android.content.pm.PackageManager.INSTALL_SUCCEEDED ; }

Target:
public static int copyNativeBinaries ( com.android.internal.content.NativeLibraryHelper.Handle handle , java.io.File sharedLibraryDir , java.lang.String abi ) { for ( long apkHandle : handle.apkHandles ) { int res = com.android.internal.content.NativeLibraryHelper.nativeCopyNativeBinaries ( apkHandle , sharedLibraryDir.getPath ( ) , abi , handle.extractNativeLibs , com.android.internal.content.NativeLibraryHelper.HAS_NATIVE_BRIDGE , handle.debuggable ) ; if ( res != ( android.content.pm.PackageManager.INSTALL_SUCCEEDED ) ) { return res ; } } return android.content.pm.PackageManager.INSTALL_SUCCEEDED ; }
Source:
public void testMultiFilterWithNoMatch ( ) { java.util.List < com.android.build.VariantOutput > list = com.google.common.collect.Lists.newArrayList ( ) ; list.add ( com.android.ide.common.build.SplitOutputMatcherTest.getOutput ( 320 , "zzz" , 1 ) ) ; list.add ( com.android.ide.common.build.SplitOutputMatcherTest.getOutput ( 160 , "bar" , 2 ) ) ; list.add ( com.android.ide.common.build.SplitOutputMatcherTest.getOutput ( 320 , "foo" , 3 ) ) ; java.util.List < com.android.build.OutputFile > result = com.android.ide.common.build.SplitOutputMatcherTest.computeBestOutput ( list , 160 , "zzz" ) ; assertEquals ( 0 , result.size ( ) ) ; }

Target:
public void testDensityOnlyWithNoMatch ( ) throws com.android.ide.common.process.ProcessException { java.util.List < com.android.build.VariantOutput > list = com.google.common.collect.Lists.newArrayList ( ) ; list.add ( com.android.ide.common.build.SplitOutputMatcherTest.getDensityOutput ( 320 , 1 ) ) ; list.add ( com.android.ide.common.build.SplitOutputMatcherTest.getDensityOutput ( 480 , 2 ) ) ; java.util.List < java.io.File > result = com.android.ide.common.build.SplitOutputMatcherTest.computeBestOutput ( list , 160 , "foo" ) ; assertEquals ( 0 , result.size ( ) ) ; }
Source:
private static java.lang.String getTag ( @ com.android.annotations.NonNull com.android.tools.lint.client.api.JavaParser.ResolvedClass cls ) { java.lang.String tag = null ; for ( java.lang.String s : com.android.tools.lint.checks.RegistrationDetector.sClasses ) { if ( cls.isSubclassOf ( s , false ) ) { tag = com.android.tools.lint.checks.RegistrationDetector.classToTag ( s ) ; break ; } } return tag ; }

Target:
private static java.lang.String getTag ( @ com.android.annotations.NonNull com.android.tools.lint.client.api.JavaEvaluator evaluator , @ com.android.annotations.NonNull com.intellij.psi.PsiClass cls ) { java.lang.String tag = null ; for ( java.lang.String s : com.android.tools.lint.checks.RegistrationDetector.sClasses ) { if ( evaluator.extendsClass ( cls , s , false ) ) { tag = com.android.tools.lint.checks.RegistrationDetector.classToTag ( s ) ; break ; } } return tag ; }
Source:
public void createNewSession ( com.intellij.openapi.project.Project project , org.jetbrains.plugins.terminal.AbstractTerminalRunner terminalRunner ) { com.intellij.openapi.wm.ToolWindow terminal = com.intellij.openapi.wm.ToolWindowManager.getInstance ( project ) . getToolWindow ( "Terminal" ) ; openSession ( terminal , terminalRunner ) ; terminal.activate ( new java.lang.Runnable ( ) { @ java.lang.Override public void run ( ) { } } , true ) ; }

Target:
public void run ( ) { initTerminal ( myProject , myToolWindow ) ; }
Source:
public void onLinkPropertiesChanged ( android.net.Network network , android.net.LinkProperties linkProp ) { setLastCallback ( com.android.server.ConnectivityServiceTest.CallbackState.LINK_PROPERTIES , network , linkProp ) ; }

Target:
void expectAvailableCallbacks ( com.android.server.ConnectivityServiceTest.MockNetworkAgent agent , boolean expectSuspended , int timeoutMs ) { expectCallback ( com.android.server.ConnectivityServiceTest.CallbackState.AVAILABLE , agent , timeoutMs ) ; if ( expectSuspended ) { expectCallback ( com.android.server.ConnectivityServiceTest.CallbackState.SUSPENDED , agent , timeoutMs ) ; } expectCallback ( com.android.server.ConnectivityServiceTest.CallbackState.NETWORK_CAPABILITIES , agent , timeoutMs ) ; expectCallback ( com.android.server.ConnectivityServiceTest.CallbackState.LINK_PROPERTIES , agent , timeoutMs ) ; }
Source:
public void testArtifactSearch ( ) throws java.lang.Exception { assertArtifactSearchResults ( "" , "asm:asm:3.3.1 asm:asm:3.3" , "commons-io:commons-io:2.4" , "jmock:jmock:1.2.0 jmock:jmock:1.1.0 jmock:jmock:1.0.0" , "junit:junit:4.0 junit:junit:3.8.2 junit:junit:3.8.1" , "org.ow2.asm:asm:4.1" ) ; assertArtifactSearchResults ( "j *1*" , "jmock:jmock:1.2.0 jmock:jmock:1.1.0 jmock:jmock:1.0.0" , "junit:junit:3.8.1" ) ; assertArtifactSearchResults ( "junit" , "junit:junit:4.0 junit:junit:3.8.2 junit:junit:3.8.1" ) ; assertArtifactSearchResults ( "junit 3." , "junit:junit:3.8.2 junit:junit:3.8.1" ) ; assertArtifactSearchResults ( "uni 3." , "junit:junit:3.8.2 junit:junit:3.8.1" ) ; assertArtifactSearchResults ( "juni juni 3." , "junit:junit:3.8.2 junit:junit:3.8.1" ) ; assertArtifactSearchResults ( "junit foo" ) ; assertArtifactSearchResults ( "junit:" , "junit:junit:4.0 junit:junit:3.8.2 junit:junit:3.8.1" ) ; assertArtifactSearchResults ( "junit:junit" , "junit:junit:4.0 junit:junit:3.8.2 junit:junit:3.8.1" ) ; assertArtifactSearchResults ( "junit:junit:3." , "junit:junit:3.8.2 junit:junit:3.8.1" ) ; assertArtifactSearchResults ( "junit:junit:4.0" , "junit:junit:4.0" ) ; }

Target:
public void testArtifactSearch ( ) throws java.lang.Exception { assertArtifactSearchResults ( "" , "asm:asm:3.3.1 asm:asm:3.3" , "asm:asm-attrs:2.2.1" , "commons-io:commons-io:2.4" , "jmock:jmock:1.2.0 jmock:jmock:1.1.0 jmock:jmock:1.0.0" , "junit:junit:4.0 junit:junit:3.8.2 junit:junit:3.8.1" , "org.ow2.asm:asm:4.1" ) ; assertArtifactSearchResults ( "j *1*" , "jmock:jmock:1.2.0 jmock:jmock:1.1.0 jmock:jmock:1.0.0" , "junit:junit:3.8.1" ) ; assertArtifactSearchResults ( "junit" , "junit:junit:4.0 junit:junit:3.8.2 junit:junit:3.8.1" ) ; assertArtifactSearchResults ( "junit 3." , "junit:junit:3.8.2 junit:junit:3.8.1" ) ; assertArtifactSearchResults ( "uni 3." , "junit:junit:3.8.2 junit:junit:3.8.1" ) ; assertArtifactSearchResults ( "juni juni 3." , "junit:junit:3.8.2 junit:junit:3.8.1" ) ; assertArtifactSearchResults ( "junit foo" ) ; assertArtifactSearchResults ( "junit:" , "junit:junit:4.0 junit:junit:3.8.2 junit:junit:3.8.1" ) ; assertArtifactSearchResults ( "junit:junit" , "junit:junit:4.0 junit:junit:3.8.2 junit:junit:3.8.1" ) ; assertArtifactSearchResults ( "junit:junit:3." , "junit:junit:3.8.2 junit:junit:3.8.1" ) ; assertArtifactSearchResults ( "junit:junit:4.0" , "junit:junit:4.0" ) ; }
Source:
public void clinit ( ) throws java.lang.Exception { com.android.jack.ir.ast.JDefinedClassOrInterface type = ( ( com.android.jack.ir.ast.JDefinedClassOrInterface ) ( session.getLookup ( ) . getType ( classSignature ) ) ) ; junit.framework.Assert.assertNotNull ( type ) ; com.android.jack.ir.ast.JMethod method = type.getMethod ( "<clinit>" , JPrimitiveTypeEnum.VOID.getType ( ) ) ; junit.framework.Assert.assertNotNull ( method ) ; junit.framework.Assert.assertTrue ( method.isStatic ( ) ) ; }

Target:
public void clinit ( ) throws java.lang.Exception { com.android.jack.ir.ast.JDefinedClassOrInterface type = ( ( com.android.jack.ir.ast.JDefinedClassOrInterface ) ( session.getLookup ( ) . getType ( com.android.jack.frontend.MethodModifierTest.classSignature ) ) ) ; junit.framework.Assert.assertNotNull ( type ) ; com.android.jack.ir.ast.JMethod method = type.getMethod ( "<clinit>" , JPrimitiveTypeEnum.VOID.getType ( ) ) ; junit.framework.Assert.assertNotNull ( method ) ; junit.framework.Assert.assertTrue ( method.isStatic ( ) ) ; }
Source:
public void testApplyingWithoutCriticalFiles ( ) throws java.lang.Exception { com.intellij.updater.PatchFileCreator.create ( myOlderDir , myNewerDir , myFile , java.util.Collections.< java.lang.String > emptyList ( ) , java.util.Collections.< java.lang.String > emptyList ( ) , java.util.Collections.< java.lang.String > emptyList ( ) , com.intellij.updater.TEST_UI ) ; com.intellij.updater.PatchFileCreator.PreparationResult preparationResult = com.intellij.updater.PatchFileCreator.prepareAndValidate ( myFile , myOlderDir , com.intellij.updater.TEST_UI ) ; assertTrue ( com.intellij.updater.PatchFileCreator.apply ( preparationResult , new java.util.HashMap < java.lang.String , com.intellij.updater.ValidationResult.Option > ( ) , com.intellij.updater.TEST_UI ) ) ; }

Target:
public void testApplyingWithoutCriticalFiles ( ) throws java.lang.Exception { com.intellij.updater.PatchFileCreator.create ( myPatchSpec , myFile , com.intellij.updater.TEST_UI ) ; com.intellij.updater.PatchFileCreator.PreparationResult preparationResult = com.intellij.updater.PatchFileCreator.prepareAndValidate ( myFile , myOlderDir , com.intellij.updater.TEST_UI ) ; assertTrue ( com.intellij.updater.PatchFileCreator.apply ( preparationResult , new java.util.HashMap < java.lang.String , com.intellij.updater.ValidationResult.Option > ( ) , com.intellij.updater.TEST_UI ) ) ; }
Source:
public void run ( ) { org.w3c.dom.Node xmlNode = uiNode.getXmlNode ( ) ; org.w3c.dom.Attr attribute = ( ( org.w3c.dom.Element ) ( xmlNode ) ) . getAttributeNodeNS ( com.android.tools.lint.detector.api.LintConstants.TOOLS_URI , com.android.tools.lint.detector.api.LintConstants.ATTR_IGNORE ) ; if ( attribute instanceof org.eclipse.wst.sse.core.internal.provisional.IndexedRegion ) { org.eclipse.wst.sse.core.internal.provisional.IndexedRegion region = ( ( org.eclipse.wst.sse.core.internal.provisional.IndexedRegion ) ( attribute ) ) ; mEditor.getStructuredTextEditor ( ) . selectAndReveal ( region.getStartOffset ( ) , region.getLength ( ) ) ; } }

Target:
public void apply ( org.eclipse.jface.text.IDocument document ) { com.android.ide.eclipse.adt.AdtUtils.setToolsAttribute ( mEditor , mElement , "Suppress Lint Warning" , com.android.tools.lint.detector.api.LintConstants.ATTR_IGNORE , mId , true , true ) ; try { mMarker.delete ( ) ; } catch ( org.eclipse.core.runtime.CoreException e ) { com.android.ide.eclipse.adt.AdtPlugin.log ( e , "Could not add suppress annotation" ) ; } }
Source:
public void onWindowVisibilityChanged ( final int visibility ) { if ( checkNeedsPost ( ) ) { mRunQueue.addTask ( new java.lang.Runnable ( ) { @ java.lang.Override public void run ( ) { onWindowVisibilityChanged ( visibility ) ; } } ) ; return ; } mAwContents.onWindowVisibilityChanged ( visibility ) ; }

Target:
public void onOverScrolled ( final int scrollX , final int scrollY , final boolean clampedX , final boolean clampedY ) { if ( checkNeedsPost ( ) ) { mRunQueue.addTask ( new java.lang.Runnable ( ) { @ java.lang.Override public void run ( ) { onOverScrolled ( scrollX , scrollY , clampedX , clampedY ) ; } } ) ; return ; } mAwContents.onContainerViewOverScrolled ( scrollX , scrollY , clampedX , clampedY ) ; }
Source:
public void checkClass ( @ com.android.annotations.NonNull com.android.tools.lint.detector.api.ClassContext context , @ com.android.annotations.NonNull org.objectweb.asm.tree.ClassNode classNode ) { java.util.List interfaces = classNode.interfaces ; if ( interfaces != null ) { for ( java.lang.Object o : interfaces ) { if ( "android/os/Parcelable" . equals ( o ) ) { if ( ! ( hasCreatorField ( context , classNode ) ) ) { com.android.tools.lint.detector.api.Location location = context.getLocation ( classNode ) ; context.report ( com.android.tools.lint.checks.ParcelDetector.ISSUE , location , "This class implements Parcelable but does not provide a CREATOR field" , null ) ; } break ; } } } }

Target:
public void checkClass ( @ com.android.annotations.NonNull com.android.tools.lint.detector.api.ClassContext context , @ com.android.annotations.NonNull org.objectweb.asm.tree.ClassNode classNode ) { java.util.List interfaces = classNode.interfaces ; if ( interfaces != null ) { for ( java.lang.Object o : interfaces ) { if ( "android/os/Parcelable" . equals ( o ) ) { if ( ! ( com.android.tools.lint.checks.ParcelDetector.hasCreatorField ( context , classNode ) ) ) { com.android.tools.lint.detector.api.Location location = context.getLocation ( classNode ) ; context.report ( com.android.tools.lint.checks.ParcelDetector.ISSUE , location , "This class implements Parcelable but does not provide a CREATOR field" , null ) ; } break ; } } } }
Source:
public java.lang.String toString ( ) { if ( ( prePosition ) == ( - 1 ) ) { return super . toString ( ) ; } return type.get ( new java.util.MapEntry ( enumMap.keys [ prePosition ] , enumMap.values [ prePosition ] ) ) . toString ( ) ; }

Target:
public java.lang.String toString ( ) { if ( ( prePosition ) == ( - 1 ) ) { return super . toString ( ) ; } return type.get ( new java.util.MapEntry < KT , VT > ( enumMap.keys [ prePosition ] , enumMap.values [ prePosition ] ) ) . toString ( ) ; }
Source:
public static void atraceDumpAndSend ( android.content.Context context , java.lang.String tags , int bufferSizeKb ) { java.lang.String format = "yyyy-MM-dd-HH-mm-ss" ; java.lang.String now = new java.text.SimpleDateFormat ( format , java.util.Locale.US ) . format ( new java.util.Date ( ) ) ; com.google.android.traceur.AtraceUtils.ensureBugreportDirectory ( context ) ; java.io.File file = new java.io.File ( java.lang.String.format ( "/bugreports/traceur-%s-%s-%s.txt" , Build.BOARD , Build.ID , now ) ) ; com.google.android.traceur.FileSender.postCaptureNotification ( context , file ) ; com.google.android.traceur.AtraceUtils.atraceDump ( tags , bufferSizeKb , file ) ; com.google.android.traceur.FileSender.postNotification ( context , file ) ; }

Target:
public static void atraceDumpAndSend ( android.content.Context context , java.lang.String tags , int bufferSizeKb ) { java.lang.String format = "yyyy-MM-dd-HH-mm-ss" ; java.lang.String now = new java.text.SimpleDateFormat ( format , java.util.Locale.US ) . format ( new java.util.Date ( ) ) ; com.android.traceur.AtraceUtils.ensureBugreportDirectory ( context ) ; java.io.File file = new java.io.File ( java.lang.String.format ( "/bugreports/traceur-%s-%s-%s.txt" , Build.BOARD , Build.ID , now ) ) ; com.android.traceur.FileSender.postCaptureNotification ( context , file ) ; com.android.traceur.AtraceUtils.atraceDump ( tags , bufferSizeKb , file ) ; com.android.traceur.FileSender.postNotification ( context , file ) ; }
Source:
private void installDataPathStateManagerMocks ( ) throws java.lang.Exception { java.lang.reflect.Field field = com.android.server.wifi.nan.WifiNanStateManager.class . getDeclaredField ( "mDataPathMgr" ) ; field.setAccessible ( true ) ; java.lang.Object mDataPathMgr = field.get ( mDut ) ; field = com.android.server.wifi.nan.WifiNanDataPathStateManager.class . getDeclaredField ( "mNwService" ) ; field.setAccessible ( true ) ; field.set ( mDataPathMgr , mMockNwMgt ) ; field = com.android.server.wifi.nan.WifiNanDataPathStateManager.class . getDeclaredField ( "mNiWrapper" ) ; field.setAccessible ( true ) ; field.set ( mDataPathMgr , mMockNetworkInterface ) ; }

Target:
private void installDataPathStateManagerMocks ( ) throws java.lang.Exception { java.lang.reflect.Field field = com.android.server.wifi.aware.WifiAwareStateManager.class . getDeclaredField ( "mDataPathMgr" ) ; field.setAccessible ( true ) ; java.lang.Object mDataPathMgr = field.get ( mDut ) ; field = com.android.server.wifi.aware.WifiAwareDataPathStateManager.class . getDeclaredField ( "mNwService" ) ; field.setAccessible ( true ) ; field.set ( mDataPathMgr , mMockNwMgt ) ; field = com.android.server.wifi.aware.WifiAwareDataPathStateManager.class . getDeclaredField ( "mNiWrapper" ) ; field.setAccessible ( true ) ; field.set ( mDataPathMgr , mMockNetworkInterface ) ; }
Source:
private void updateRunning ( ) { boolean running = ( mVisible ) && ( mStarted ) ; if ( running != ( mRunning ) ) { if ( running ) { updateText ( android.os.SystemClock.elapsedRealtime ( ) ) ; dispatchChronometerTick ( ) ; mHandler.sendMessageDelayed ( android.os.Message.obtain ( mHandler , android.widget.Chronometer.TICK_WHAT ) , 1000 ) ; } else { mHandler.removeMessages ( android.widget.Chronometer.TICK_WHAT ) ; } mRunning = running ; } }

Target:
private void updateRunning ( ) { boolean running = ( ( mVisible ) && ( mStarted ) ) && ( isShown ( ) ) ; if ( running != ( mRunning ) ) { if ( running ) { updateText ( android.os.SystemClock.elapsedRealtime ( ) ) ; dispatchChronometerTick ( ) ; mHandler.sendMessageDelayed ( android.os.Message.obtain ( mHandler , android.widget.Chronometer.TICK_WHAT ) , 1000 ) ; } else { mHandler.removeMessages ( android.widget.Chronometer.TICK_WHAT ) ; } mRunning = running ; } }
Source:
public long beforeHandshake ( long c ) throws javax.net.ssl.SSLException { long s = super . beforeHandshake ( c ) ; if ( ( privateKey ) != null ) { org.conscrypt.NativeCrypto.SSL_use_PrivateKey ( s , privateKey ) ; } if ( ( certificates ) != null ) { org.conscrypt.NativeCrypto.SSL_use_certificate ( s , certificates ) ; } if ( channelIdEnabled ) { org.conscrypt.NativeCrypto.SSL_enable_tls_channel_id ( s ) ; } return s ; }

Target:
public long beforeHandshake ( long c ) throws javax.net.ssl.SSLException { long s = super . beforeHandshake ( c ) ; if ( ( privateKey ) != null ) { org.conscrypt.NativeCrypto.SSL_use_PrivateKey ( s , privateKey.getPkeyContext ( ) ) ; } if ( ( certificates ) != null ) { org.conscrypt.NativeCrypto.SSL_use_certificate ( s , certificates ) ; } if ( channelIdEnabled ) { org.conscrypt.NativeCrypto.SSL_enable_tls_channel_id ( s ) ; } return s ; }
Source:
public void testTypeTextInFocusedView ( ) { android.support.test.espresso.Espresso.onView ( android.support.test.espresso.matcher.ViewMatchers.withId ( org.hamcrest.Matchers.is ( R.id.send_data_to_call_edit_text ) ) ) . perform ( android.support.test.espresso.action.ViewActions.typeText ( "Hello World How Are You Today? I have alot of text to type." ) ) ; android.support.test.espresso.Espresso.onView ( android.support.test.espresso.matcher.ViewMatchers.withId ( org.hamcrest.Matchers.is ( R.id.send_data_to_call_edit_text ) ) ) . perform ( android.support.test.espresso.action.ViewActions.typeTextIntoFocusedView ( "Jolly good!" ) ) ; android.support.test.espresso.Espresso.onView ( android.support.test.espresso.matcher.ViewMatchers.withId ( org.hamcrest.Matchers.is ( R.id.send_data_to_call_edit_text ) ) ) . check ( android.support.test.espresso.assertion.ViewAssertions.matches ( android.support.test.espresso.matcher.ViewMatchers.withText ( "Hello World How Are You Today? I have alot of text to type.Jolly good!" ) ) ) ; }

Target:
public void typeTextInFocusedView ( ) { android.support.test.espresso.Espresso.onView ( android.support.test.espresso.matcher.ViewMatchers.withId ( org.hamcrest.Matchers.is ( R.id.send_data_to_call_edit_text ) ) ) . perform ( android.support.test.espresso.action.ViewActions.typeText ( "Hello World How Are You Today? I have alot of text to type." ) ) ; android.support.test.espresso.Espresso.onView ( android.support.test.espresso.matcher.ViewMatchers.withId ( org.hamcrest.Matchers.is ( R.id.send_data_to_call_edit_text ) ) ) . perform ( android.support.test.espresso.action.ViewActions.typeTextIntoFocusedView ( "Jolly good!" ) ) ; android.support.test.espresso.Espresso.onView ( android.support.test.espresso.matcher.ViewMatchers.withId ( org.hamcrest.Matchers.is ( R.id.send_data_to_call_edit_text ) ) ) . check ( android.support.test.espresso.assertion.ViewAssertions.matches ( android.support.test.espresso.matcher.ViewMatchers.withText ( "Hello World How Are You Today? I have alot of text to type.Jolly good!" ) ) ) ; }
Source:
private static java.lang.String decodeLatin ( byte [ ] data , int offset , int numFields ) throws com.android.internal.telephony.cdma.sms.BearerData.CodingException { if ( ( numFields < 0 ) || ( ( numFields + offset ) > ( data.length ) ) ) { throw new com.android.internal.telephony.cdma.sms.BearerData.CodingException ( "ISO-8859-1 decode failed: offset or length out of range" ) ; } try { return new java.lang.String ( data , offset , numFields , "ISO-8859-1" ) ; } catch ( java.io.UnsupportedEncodingException ex ) { throw new com.android.internal.telephony.cdma.sms.BearerData.CodingException ( ( "ISO-8859-1 decode failed: " + ex ) ) ; } }

Target:
private static java.lang.String decodeShiftJis ( byte [ ] data , int offset , int numFields ) throws com.android.internal.telephony.cdma.sms.BearerData.CodingException { try { return new java.lang.String ( data , offset , ( numFields - offset ) , "Shift_JIS" ) ; } catch ( java.io.UnsupportedEncodingException ex ) { throw new com.android.internal.telephony.cdma.sms.BearerData.CodingException ( ( "Shift_JIS decode failed: " + ex ) ) ; } }
Source:
public void onANQPResponse ( long bssid , java.util.Map < com.android.server.wifi.hotspot2.anqp.Constants.ANQPElementType , com.android.server.wifi.hotspot2.anqp.ANQPElement > anqpElements ) { }

Target:
public void onANQPResponse ( long bssid , java.util.Map < com.android.server.wifi.hotspot2.anqp.Constants.ANQPElementType , com.android.server.wifi.hotspot2.anqp.ANQPElement > anqpElements ) { com.android.server.wifi.hotspot2.ANQPNetworkKey anqpKey = mPendingAnqpQueries.remove ( bssid ) ; if ( anqpElements == null ) { return ; } if ( anqpKey == null ) { return ; } mAnqpCache.addEntry ( anqpKey , anqpElements ) ; }
Source:
public static short readMaxFragmentLengthExtension ( byte [ ] extensionData ) throws java.io.IOException { if ( extensionData == null ) { throw new java.lang.IllegalArgumentException ( "'extensionData' cannot be null" ) ; } if ( ( extensionData.length ) != 1 ) { throw new org.bouncycastle.crypto.tls.TlsFatalAlert ( AlertDescription.decode_error ) ; } short maxFragmentLength = ( ( short ) ( extensionData [ 0 ] ) ) ; if ( ! ( org.bouncycastle.crypto.tls.MaxFragmentLength.isValid ( maxFragmentLength ) ) ) { throw new org.bouncycastle.crypto.tls.TlsFatalAlert ( AlertDescription.illegal_parameter ) ; } return maxFragmentLength ; }

Target:
public static short readMaxFragmentLengthExtension ( byte [ ] extensionData ) throws java.io.IOException { if ( extensionData == null ) { throw new java.lang.IllegalArgumentException ( "'extensionData' cannot be null" ) ; } if ( ( extensionData.length ) != 1 ) { throw new org.bouncycastle.crypto.tls.TlsFatalAlert ( AlertDescription.decode_error ) ; } return org.bouncycastle.crypto.tls.TlsUtils.readUint8 ( extensionData , 0 ) ; }
Source:
private boolean is4gLtePrefEnabled ( android.content.Context context , android.os.PersistableBundle carrierConfig ) { return ( ( ( mTelephonyManager.getCallState ( ) ) == ( android.telephony.TelephonyManager.CALL_STATE_IDLE ) ) && ( com.android.ims.ImsManager.isNonTtyOrTtyOnVolteEnabled ( context ) ) ) && ( carrierConfig.getBoolean ( CarrierConfigManager.KEY_EDITABLE_ENHANCED_4G_LTE_BOOL ) ) ; }

Target:
private boolean is4gLtePrefEnabled ( android.os.PersistableBundle carrierConfig ) { return ( ( ( ( mTelephonyManager.getCallState ( ) ) == ( android.telephony.TelephonyManager.CALL_STATE_IDLE ) ) && ( ( mImsMgr ) != null ) ) && ( mImsMgr.isNonTtyOrTtyOnVolteEnabled ( ) ) ) && ( carrierConfig.getBoolean ( CarrierConfigManager.KEY_EDITABLE_ENHANCED_4G_LTE_BOOL ) ) ; }
Source:
private java.util.Properties loadProperties ( ) { try { java.io.InputStream in = getPropertiesStream ( ) ; java.util.Properties properties = new java.util.Properties ( ) ; properties.load ( in ) ; in.close ( ) ; return properties ; } catch ( java.io.IOException e ) { throw new java.lang.RuntimeException ( e ) ; } }

Target:
public static java.util.Properties loadProperties ( ) { try { java.io.InputStream in = vogar.target.TestRunner.getPropertiesStream ( ) ; java.util.Properties properties = new java.util.Properties ( ) ; properties.load ( in ) ; in.close ( ) ; return properties ; } catch ( java.io.IOException e ) { throw new java.lang.RuntimeException ( e ) ; } }